Package net.frozenblock.wilderwild.block
Class StoneChestBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.AbstractChestBlock<net.minecraft.world.level.block.entity.ChestBlockEntity>
net.minecraft.world.level.block.ChestBlock
net.frozenblock.wilderwild.block.StoneChestBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,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
public class StoneChestBlock
extends net.minecraft.world.level.block.ChestBlock
-
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.OffsetFunction, 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>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final floatstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final floatstatic final intstatic final floatstatic final floatstatic final intstatic final floatstatic final net.minecraft.world.level.block.state.properties.BooleanPropertystatic final net.minecraft.world.level.block.DoubleBlockCombiner.Combiner<net.minecraft.world.level.block.entity.ChestBlockEntity, Optional<net.minecraft.world.MenuProvider>> Fields inherited from class net.minecraft.world.level.block.ChestBlock
AABB, AABB_HEIGHT, AABB_OFFSET, EAST_AABB, EVENT_SET_OPEN_COUNT, FACING, NORTH_AABB, SOUTH_AABB, TYPE, WATERLOGGED, WEST_AABBFields inherited from class net.minecraft.world.level.block.AbstractChestBlock
blockEntityTypeFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, 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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionStoneChestBlock(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings, @NotNull Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends net.minecraft.world.level.block.entity.ChestBlockEntity>> supplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanInteract(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.DoubleBlockCombiner.NeighborCombineResult<? extends net.minecraft.world.level.block.entity.ChestBlockEntity> combine(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level2, @NotNull net.minecraft.core.BlockPos pos2, boolean ignoreBlocked) protected voidcreateBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block, net.minecraft.world.level.block.state.BlockState> builder) intgetAnalogOutputSignal(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.DoubleBlockCombiner.NeighborCombineResult<? extends net.minecraft.world.level.block.entity.ChestBlockEntity> getBlockEntitySourceIgnoreLid(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level2, net.minecraft.core.BlockPos pos2, boolean ignoreBlocked) @Nullable net.minecraft.world.MenuProvidergetMenuProvider(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) static @Nullable StoneChestBlockEntitygetOtherChest(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.level.block.state.BlockStategetStateForPlacement(@NotNull net.minecraft.world.item.context.BlockPlaceContext ctx) <T extends net.minecraft.world.level.block.entity.BlockEntity>
@Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.block.entity.BlockEntityType<T> type) booleanhasAnalogOutputSignal(@NotNull net.minecraft.world.level.block.state.BlockState state) static booleanhasLid(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos) static booleanhasLid(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) static booleanisStoneChestBlocked(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos) static booleanisStoneChestBlockedNoLid(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos) net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) voidonRemove(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState newState, boolean moved) static voidspawnBreakParticles(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.core.BlockPos pos) voidupdateBubbles(@NotNull net.minecraft.world.level.block.state.BlockState oldState, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos currentPos) @NotNull net.minecraft.world.level.block.state.BlockStateupdateShape(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.Direction direction, @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos currentPos, @NotNull net.minecraft.core.BlockPos neighborPos) @NotNull net.minecraft.world.InteractionResultuse(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand, @NotNull net.minecraft.world.phys.BlockHitResult hit) Methods inherited from class net.minecraft.world.level.block.ChestBlock
blockEntityType, getBlockType, getConnectedDirection, getContainer, getFluidState, getOpenChestStat, getRenderShape, getShape, isBlockedChestByBlock, isCatSittingOnChest, isChestBlockedAt, isPathfindable, mirror, opennessCombiner, rotate, setPlacedBy, tickMethods inherited from class net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, triggerEventMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getVisualShape, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, neighborChanged, onPlace, onProjectileHit, randomTick, requiredFeatures, skipRendering, spawnAfterBreak, updateIndirectNeighbourShapes, useShapeForLightOcclusionMethods 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.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
MIN_OPENABLE_PROGRESS
public static final float MIN_OPENABLE_PROGRESS- See Also:
-
MAX_OPENABLE_PROGRESS
public static final float MAX_OPENABLE_PROGRESS- See Also:
-
LIFT_AMOUNT
public static final float LIFT_AMOUNT- See Also:
-
MAX_LIFT_AMOUNT_UNDER_SOLID_BLOCK
public static final float MAX_LIFT_AMOUNT_UNDER_SOLID_BLOCK- See Also:
-
BREAK_PARTICLE_Y_OFFSET
public static final double BREAK_PARTICLE_Y_OFFSET- See Also:
-
BREAK_PARTICLE_OFFSET
public static final float BREAK_PARTICLE_OFFSET- See Also:
-
BREAK_PARTICLE_SPEED
public static final double BREAK_PARTICLE_SPEED- See Also:
-
MIN_BREAK_PARTICLES
public static final int MIN_BREAK_PARTICLES- See Also:
-
MAX_BREAK_PARTICLES
public static final int MAX_BREAK_PARTICLES- See Also:
-
ITEM_DELTA_TRIANGLE_B
public static final double ITEM_DELTA_TRIANGLE_B- See Also:
-
ITEM_DELTA_TRIANGLE_A_Y
public static final double ITEM_DELTA_TRIANGLE_A_Y- See Also:
-
ITEM_DELTA_TRIANGLE_A_XZ
public static final double ITEM_DELTA_TRIANGLE_A_XZ- See Also:
-
ANCIENT
public static final net.minecraft.world.level.block.state.properties.BooleanProperty ANCIENT -
SCULK
public static final net.minecraft.world.level.block.state.properties.BooleanProperty SCULK -
STONE_NAME_RETRIEVER
public static final net.minecraft.world.level.block.DoubleBlockCombiner.Combiner<net.minecraft.world.level.block.entity.ChestBlockEntity,Optional<net.minecraft.world.MenuProvider>> STONE_NAME_RETRIEVER
-
-
Constructor Details
-
StoneChestBlock
public StoneChestBlock(@NotNull @NotNull net.minecraft.world.level.block.state.BlockBehaviour.Properties settings, @NotNull @NotNull Supplier<net.minecraft.world.level.block.entity.BlockEntityType<? extends net.minecraft.world.level.block.entity.ChestBlockEntity>> supplier)
-
-
Method Details
-
hasLid
public static boolean hasLid(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
canInteract
public static boolean canInteract(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
hasLid
public static boolean hasLid(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
isStoneChestBlocked
public static boolean isStoneChestBlocked(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
isStoneChestBlockedNoLid
public static boolean isStoneChestBlockedNoLid(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
spawnBreakParticles
public static void spawnBreakParticles(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.core.BlockPos pos) -
getOtherChest
@Nullable public static @Nullable StoneChestBlockEntity getOtherChest(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) -
use
@NotNull public @NotNull net.minecraft.world.InteractionResult use(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand, @NotNull @NotNull net.minecraft.world.phys.BlockHitResult hit) - Overrides:
usein classnet.minecraft.world.level.block.ChestBlock
-
newBlockEntity
public net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Specified by:
newBlockEntityin interfacenet.minecraft.world.level.block.EntityBlock- Overrides:
newBlockEntityin classnet.minecraft.world.level.block.ChestBlock
-
getTicker
@Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> @Nullable net.minecraft.world.level.block.entity.BlockEntityTicker<T> getTicker(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.block.entity.BlockEntityType<T> type) - Specified by:
getTickerin interfacenet.minecraft.world.level.block.EntityBlock- Overrides:
getTickerin classnet.minecraft.world.level.block.ChestBlock
-
getMenuProvider
@Nullable public @Nullable net.minecraft.world.MenuProvider getMenuProvider(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) - Overrides:
getMenuProviderin classnet.minecraft.world.level.block.ChestBlock
-
combine
@NotNull public net.minecraft.world.level.block.DoubleBlockCombiner.NeighborCombineResult<? extends net.minecraft.world.level.block.entity.ChestBlockEntity> combine(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level2, @NotNull @NotNull net.minecraft.core.BlockPos pos2, boolean ignoreBlocked) - Overrides:
combinein classnet.minecraft.world.level.block.ChestBlock
-
getBlockEntitySourceIgnoreLid
@NotNull public net.minecraft.world.level.block.DoubleBlockCombiner.NeighborCombineResult<? extends net.minecraft.world.level.block.entity.ChestBlockEntity> getBlockEntitySourceIgnoreLid(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level2, net.minecraft.core.BlockPos pos2, boolean ignoreBlocked) -
updateShape
@NotNull public @NotNull net.minecraft.world.level.block.state.BlockState updateShape(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState neighborState, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos currentPos, @NotNull @NotNull net.minecraft.core.BlockPos neighborPos) - Overrides:
updateShapein classnet.minecraft.world.level.block.ChestBlock
-
updateBubbles
public void updateBubbles(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState oldState, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos currentPos) -
getStateForPlacement
public net.minecraft.world.level.block.state.BlockState getStateForPlacement(@NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext ctx) - Overrides:
getStateForPlacementin classnet.minecraft.world.level.block.ChestBlock
-
onRemove
public void onRemove(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState newState, boolean moved) - Overrides:
onRemovein classnet.minecraft.world.level.block.ChestBlock
-
hasAnalogOutputSignal
public boolean hasAnalogOutputSignal(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Overrides:
hasAnalogOutputSignalin classnet.minecraft.world.level.block.ChestBlock
-
getAnalogOutputSignal
public int getAnalogOutputSignal(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) - Overrides:
getAnalogOutputSignalin classnet.minecraft.world.level.block.ChestBlock
-
createBlockStateDefinition
protected void createBlockStateDefinition(@NotNull 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.ChestBlock
-