Class AbstractChuteBlock
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
com.simibubi.create.content.logistics.block.chute.AbstractChuteBlock
- All Implemented Interfaces:
IWrenchable,ITE<ChuteTileEntity>,net.minecraft.world.level.block.EntityBlock,net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeBlock,net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
- Direct Known Subclasses:
ChuteBlock,SmartChuteBlock
public abstract class AbstractChuteBlock
extends net.minecraft.world.level.block.Block
implements IWrenchable, ITE<ChuteTileEntity>
-
Nested Class Summary
Nested 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
Fields 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
ConstructorsConstructorDescriptionAbstractChuteBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties p_i48440_1_) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.core.DirectiongetChuteFacing(net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.phys.shapes.VoxelShapegetCollisionShape(net.minecraft.world.level.block.state.BlockState p_220071_1_, net.minecraft.world.level.BlockGetter p_220071_2_, net.minecraft.core.BlockPos p_220071_3_, net.minecraft.world.phys.shapes.CollisionContext p_220071_4_) net.minecraft.core.DirectiongetFacing(net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.level.block.state.BlockState p_220053_1_, net.minecraft.world.level.BlockGetter p_220053_2_, net.minecraft.core.BlockPos p_220053_3_, net.minecraft.world.phys.shapes.CollisionContext p_220053_4_) voidinitializeClient(Consumer<net.minecraftforge.client.IBlockRenderProperties> consumer) static booleanisChute(net.minecraft.world.level.block.state.BlockState state) booleanisOpen(net.minecraft.world.level.block.state.BlockState state) static booleanisOpenChute(net.minecraft.world.level.block.state.BlockState state) booleanisTransparent(net.minecraft.world.level.block.state.BlockState state) static booleanisTransparentChute(net.minecraft.world.level.block.state.BlockState state) voidneighborChanged(net.minecraft.world.level.block.state.BlockState p_220069_1_, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block p_220069_4_, net.minecraft.core.BlockPos neighbourPos, boolean p_220069_6_) voidonPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState p_220082_4_, boolean p_220082_5_) voidonRemove(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState p_196243_4_, boolean p_196243_5_) voidsetPlacedBy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.LivingEntity pPlacer, net.minecraft.world.item.ItemStack pStack) abstract net.minecraft.world.level.block.state.BlockStateupdateChuteState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState above, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos) protected voidupdateDiagonalNeighbour(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) voidupdateEntityAfterFallOn(net.minecraft.world.level.BlockGetter worldIn, net.minecraft.world.entity.Entity entityIn) 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 above, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos p_196271_6_) net.minecraft.world.InteractionResultuse(net.minecraft.world.level.block.state.BlockState p_225533_1_, 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 p_225533_6_) Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isSignalSource, mirror, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, tick, 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, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getCloneItemStack, 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 com.simibubi.create.foundation.block.ITE
getTicker, getTileEntity, getTileEntityOptional, getTileEntityType, newBlockEntity, onTileEntityUse, withTileEntityDoMethods inherited from interface com.simibubi.create.content.contraptions.wrench.IWrenchable
getRotatedBlockState, onSneakWrenched, onWrenched, playRemoveSound, playRotateSound, updateAfterWrenched
-
Constructor Details
-
AbstractChuteBlock
public AbstractChuteBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties p_i48440_1_)
-
-
Method Details
-
initializeClient
- Overrides:
initializeClientin classnet.minecraft.world.level.block.Block
-
isChute
public static boolean isChute(net.minecraft.world.level.block.state.BlockState state) -
isOpenChute
public static boolean isOpenChute(net.minecraft.world.level.block.state.BlockState state) -
isTransparentChute
public static boolean isTransparentChute(net.minecraft.world.level.block.state.BlockState state) -
getChuteFacing
@Nullable public static net.minecraft.core.Direction getChuteFacing(net.minecraft.world.level.block.state.BlockState state) -
getFacing
public net.minecraft.core.Direction getFacing(net.minecraft.world.level.block.state.BlockState state) -
isOpen
public boolean isOpen(net.minecraft.world.level.block.state.BlockState state) -
isTransparent
public boolean isTransparent(net.minecraft.world.level.block.state.BlockState state) -
setPlacedBy
public void setPlacedBy(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.entity.LivingEntity pPlacer, net.minecraft.world.item.ItemStack pStack) - Overrides:
setPlacedByin classnet.minecraft.world.level.block.Block
-
updateEntityAfterFallOn
public void updateEntityAfterFallOn(net.minecraft.world.level.BlockGetter worldIn, net.minecraft.world.entity.Entity entityIn) - Overrides:
updateEntityAfterFallOnin classnet.minecraft.world.level.block.Block
-
onPlace
public void onPlace(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState p_220082_4_, boolean p_220082_5_) - Overrides:
onPlacein classnet.minecraft.world.level.block.state.BlockBehaviour
-
updateDiagonalNeighbour
protected void updateDiagonalNeighbour(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) -
onRemove
public void onRemove(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState p_196243_4_, boolean p_196243_5_) - Overrides:
onRemovein 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 above, net.minecraft.world.level.LevelAccessor world, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos p_196271_6_) - Overrides:
updateShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
neighborChanged
public void neighborChanged(net.minecraft.world.level.block.state.BlockState p_220069_1_, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block p_220069_4_, net.minecraft.core.BlockPos neighbourPos, boolean p_220069_6_) - Overrides:
neighborChangedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
updateChuteState
public abstract net.minecraft.world.level.block.state.BlockState updateChuteState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState above, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos) -
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState p_220053_1_, net.minecraft.world.level.BlockGetter p_220053_2_, net.minecraft.core.BlockPos p_220053_3_, net.minecraft.world.phys.shapes.CollisionContext p_220053_4_) - Overrides:
getShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getCollisionShape
public net.minecraft.world.phys.shapes.VoxelShape getCollisionShape(net.minecraft.world.level.block.state.BlockState p_220071_1_, net.minecraft.world.level.BlockGetter p_220071_2_, net.minecraft.core.BlockPos p_220071_3_, net.minecraft.world.phys.shapes.CollisionContext p_220071_4_) - Overrides:
getCollisionShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getTileEntityClass
- Specified by:
getTileEntityClassin interfaceITE<ChuteTileEntity>
-
use
public net.minecraft.world.InteractionResult use(net.minecraft.world.level.block.state.BlockState p_225533_1_, 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 p_225533_6_) - Overrides:
usein classnet.minecraft.world.level.block.state.BlockBehaviour
-