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.BlockStatePairKey

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static final float
     
    static final double
     
    static final double
     
    static final double
     
    static final double
     
    static final double
     
    static final float
     
    static final int
     
    static final float
     
    static final float
     
    static final int
     
    static final float
     
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
    static 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_AABB

    Fields inherited from class net.minecraft.world.level.block.AbstractChestBlock

    blockEntityType

    Fields 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_DROPS

    Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    StoneChestBlock(@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 Type
    Method
    Description
    static boolean
    canInteract(@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 void
    createBlockStateDefinition(net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.state.BlockState> builder)
     
    int
    getAnalogOutputSignal(@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.MenuProvider
    getMenuProvider(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos)
     
    static @Nullable StoneChestBlockEntity
    getOtherChest(@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.BlockState
    getStateForPlacement(@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)
     
    boolean
    hasAnalogOutputSignal(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    hasLid(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos)
     
    static boolean
    hasLid(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos)
     
    static boolean
    isStoneChestBlocked(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos)
     
    static boolean
    isStoneChestBlockedNoLid(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
    void
    onRemove(@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 void
    spawnBreakParticles(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.core.BlockPos pos)
     
    void
    updateBubbles(@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.BlockState
    updateShape(@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.InteractionResult
    use(@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, tick

    Methods inherited from class net.minecraft.world.level.block.BaseEntityBlock

    createTickerHelper, triggerEvent

    Methods 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, withPropertiesOf

    Methods 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, useShapeForLightOcclusion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.block.EntityBlock

    getListener

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods 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:
      use in class net.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:
      newBlockEntity in interface net.minecraft.world.level.block.EntityBlock
      Overrides:
      newBlockEntity in class net.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:
      getTicker in interface net.minecraft.world.level.block.EntityBlock
      Overrides:
      getTicker in class net.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:
      getMenuProvider in class net.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:
      combine in class net.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:
      updateShape in class net.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:
      getStateForPlacement in class net.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:
      onRemove in class net.minecraft.world.level.block.ChestBlock
    • hasAnalogOutputSignal

      public boolean hasAnalogOutputSignal(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      hasAnalogOutputSignal in class net.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:
      getAnalogOutputSignal in class net.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:
      createBlockStateDefinition in class net.minecraft.world.level.block.ChestBlock