Package net.minecraft.block
Class TrappedChestBlock
- All Implemented Interfaces:
BlockEntityProvider
,FluidDrainable
,FluidFillable
,Waterloggable
,ItemConvertible
public class TrappedChestBlock extends ChestBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Fields inherited from class net.minecraft.block.ChestBlock
CHEST_TYPE, DOUBLE_EAST_SHAPE, DOUBLE_NORTH_SHAPE, DOUBLE_SOUTH_SHAPE, DOUBLE_WEST_SHAPE, FACING, SINGLE_SHAPE, WATERLOGGED
Fields inherited from class net.minecraft.block.AbstractChestBlock
entityTypeRetriever
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
Constructors Constructor Description TrappedChestBlock(AbstractBlock.Settings settings)
-
Method Summary
Modifier and Type Method Description BlockEntity
createBlockEntity(BlockView world)
boolean
emitsRedstonePower(BlockState state)
protected Stat<Identifier>
getOpenStat()
int
getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
int
getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
Methods inherited from class net.minecraft.block.ChestBlock
appendProperties, canPathfindThrough, createScreenHandlerFactory, getAnimationProgressRetriever, getBlockEntitySource, getComparatorOutput, getDoubleBlockType, getFacing, getFluidState, getInventory, getOutlineShape, getPlacementState, getRenderType, getStateForNeighborUpdate, hasComparatorOutput, isChestBlocked, mirror, onPlaced, onStateReplaced, onUse, rotate
Methods inherited from class net.minecraft.block.BlockWithEntity
onSyncedBlockEvent
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getVisualShape, hasBlockEntity, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, prepare, randomTick, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, tryDrainFluid, tryFillWithFluid
-
Constructor Details
-
TrappedChestBlock
-
-
Method Details
-
createBlockEntity
- Specified by:
createBlockEntity
in interfaceBlockEntityProvider
- Overrides:
createBlockEntity
in classChestBlock
-
getOpenStat
- Overrides:
getOpenStat
in classChestBlock
-
emitsRedstonePower
- Overrides:
emitsRedstonePower
in classAbstractBlock
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)- Overrides:
getWeakRedstonePower
in classAbstractBlock
-
getStrongRedstonePower
public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)- Overrides:
getStrongRedstonePower
in classAbstractBlock
-