Class NixieTubeBlock
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.level.block.Block>
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.HorizontalDirectionalBlock
com.simibubi.create.content.logistics.block.redstone.DoubleFaceAttachedBlock
com.simibubi.create.content.logistics.block.redstone.NixieTubeBlock
- All Implemented Interfaces:
IWrenchable,ISpecialBlockItemRequirement,ITE<NixieTubeTileEntity>,net.minecraft.world.level.block.BucketPickup,net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.block.LiquidBlockContainer,net.minecraft.world.level.block.SimpleWaterloggedBlock,net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeBlock,net.minecraftforge.common.extensions.IForgeBucketPickup,net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
public class NixieTubeBlock
extends DoubleFaceAttachedBlock
implements ITE<NixieTubeTileEntity>, IWrenchable, net.minecraft.world.level.block.SimpleWaterloggedBlock, ISpecialBlockItemRequirement
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.content.logistics.block.redstone.DoubleFaceAttachedBlock
DoubleFaceAttachedBlock.DoubleAttachFaceNested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicateNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>> -
Field Summary
FieldsFields inherited from class com.simibubi.create.content.logistics.block.redstone.DoubleFaceAttachedBlock
FACEFields inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlock
FACINGFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, RANDOM, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS, UPDATE_SUPPRESS_LIGHTFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionNixieTubeBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, net.minecraft.world.item.DyeColor color) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareNixieBlocksEqual(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.state.BlockState otherState) booleancanConnectRedstone(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) static net.minecraft.world.item.DyeColorcolorOf(net.minecraft.world.level.block.state.BlockState blockState) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) net.minecraft.world.item.ItemStackgetCloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) net.minecraft.world.item.ItemStackgetCloneItemStack(net.minecraft.world.level.BlockGetter p_185473_1_, net.minecraft.core.BlockPos p_185473_2_, net.minecraft.world.level.block.state.BlockState p_185473_3_) net.minecraft.world.item.DyeColorgetColor()static net.minecraft.core.DirectiongetFacing(net.minecraft.world.level.block.state.BlockState sideState) net.minecraft.world.level.material.FluidStategetFluidState(net.minecraft.world.level.block.state.BlockState state) getRequiredItems(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity te) net.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.phys.shapes.CollisionContext pContext) net.minecraft.world.level.block.state.BlockStategetStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) net.minecraft.world.level.block.entity.BlockEntityType<? extends NixieTubeTileEntity>booleanisPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.pathfinder.PathComputationType type) voidneighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block p_220069_4_, net.minecraft.core.BlockPos p_220069_5_, boolean p_220069_6_) voidonPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, boolean isMoving) voidonRemove(net.minecraft.world.level.block.state.BlockState p_196243_1_, net.minecraft.world.level.Level p_196243_2_, net.minecraft.core.BlockPos p_196243_3_, net.minecraft.world.level.block.state.BlockState p_196243_4_, boolean p_196243_5_) voidtick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel worldIn, net.minecraft.core.BlockPos pos, Random r) net.minecraft.world.level.block.state.BlockStateupdateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos neighbourPos) net.minecraft.world.InteractionResultuse(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult ray) static voidwalkNixies(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos start, BiConsumer<net.minecraft.core.BlockPos, Integer> callback) static net.minecraft.world.level.block.state.BlockStatewithColor(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.DyeColor color) Methods inherited from class com.simibubi.create.content.logistics.block.redstone.DoubleFaceAttachedBlock
getConnectedDirectionMethods inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlock
mirror, rotateMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isSignalSource, onProjectileHit, randomTick, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, useShapeForLightOcclusionMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListenerMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onCaughtFire, onDestroyedByPlayer, onNeighborChange, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHidingMethods inherited from interface net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSoundMethods inherited from interface com.simibubi.create.foundation.block.ITE
getTicker, getTileEntity, getTileEntityOptional, newBlockEntity, onTileEntityUse, withTileEntityDoMethods inherited from interface com.simibubi.create.content.contraptions.wrench.IWrenchable
getRotatedBlockState, onSneakWrenched, onWrenched, playRemoveSound, playRotateSound, updateAfterWrenchedMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
color
protected final net.minecraft.world.item.DyeColor color
-
-
Constructor Details
-
NixieTubeBlock
public NixieTubeBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, net.minecraft.world.item.DyeColor color)
-
-
Method Details
-
use
public net.minecraft.world.InteractionResult use(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult ray) - Overrides:
usein classnet.minecraft.world.level.block.state.BlockBehaviour
-
walkNixies
public static void walkNixies(net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos start, BiConsumer<net.minecraft.core.BlockPos, Integer> callback) -
createBlockStateDefinition
protected void createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) - Overrides:
createBlockStateDefinitionin classnet.minecraft.world.level.block.Block
-
onRemove
public void onRemove(net.minecraft.world.level.block.state.BlockState p_196243_1_, net.minecraft.world.level.Level p_196243_2_, net.minecraft.core.BlockPos p_196243_3_, net.minecraft.world.level.block.state.BlockState p_196243_4_, boolean p_196243_5_) - Overrides:
onRemovein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getCloneItemStack
public net.minecraft.world.item.ItemStack getCloneItemStack(net.minecraft.world.level.BlockGetter p_185473_1_, net.minecraft.core.BlockPos p_185473_2_, net.minecraft.world.level.block.state.BlockState p_185473_3_) - Overrides:
getCloneItemStackin classnet.minecraft.world.level.block.Block
-
getRequiredItems
public ItemRequirement getRequiredItems(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity te) - Specified by:
getRequiredItemsin interfaceISpecialBlockItemRequirement
-
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.level.BlockGetter pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.phys.shapes.CollisionContext pContext) - Overrides:
getShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getCloneItemStack
public net.minecraft.world.item.ItemStack getCloneItemStack(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) - Specified by:
getCloneItemStackin interfacenet.minecraftforge.common.extensions.IForgeBlock
-
getFluidState
public net.minecraft.world.level.material.FluidState getFluidState(net.minecraft.world.level.block.state.BlockState state) - Overrides:
getFluidStatein classnet.minecraft.world.level.block.state.BlockBehaviour
-
updateShape
public net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos neighbourPos) - Overrides:
updateShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getStateForPlacement
public net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) - Overrides:
getStateForPlacementin classDoubleFaceAttachedBlock
-
neighborChanged
public void neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block p_220069_4_, net.minecraft.core.BlockPos p_220069_5_, boolean p_220069_6_) - Overrides:
neighborChangedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
tick
public void tick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel worldIn, net.minecraft.core.BlockPos pos, Random r) - Overrides:
tickin classnet.minecraft.world.level.block.state.BlockBehaviour
-
onPlace
public void onPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, boolean isMoving) - Overrides:
onPlacein classnet.minecraft.world.level.block.state.BlockBehaviour
-
isPathfindable
public boolean isPathfindable(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.pathfinder.PathComputationType type) - Overrides:
isPathfindablein classnet.minecraft.world.level.block.state.BlockBehaviour
-
canConnectRedstone
public boolean canConnectRedstone(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) - Specified by:
canConnectRedstonein interfacenet.minecraftforge.common.extensions.IForgeBlock
-
getTileEntityClass
- Specified by:
getTileEntityClassin interfaceITE<NixieTubeTileEntity>
-
getTileEntityType
public net.minecraft.world.level.block.entity.BlockEntityType<? extends NixieTubeTileEntity> getTileEntityType()- Specified by:
getTileEntityTypein interfaceITE<NixieTubeTileEntity>
-
getColor
public net.minecraft.world.item.DyeColor getColor() -
areNixieBlocksEqual
public static boolean areNixieBlocksEqual(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.state.BlockState otherState) -
withColor
public static net.minecraft.world.level.block.state.BlockState withColor(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.DyeColor color) -
colorOf
public static net.minecraft.world.item.DyeColor colorOf(net.minecraft.world.level.block.state.BlockState blockState) -
getFacing
public static net.minecraft.core.Direction getFacing(net.minecraft.world.level.block.state.BlockState sideState)
-