Package net.minecraft.block
Class ChestBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.ChestBlock
- All Implemented Interfaces:
BlockEntityProvider
- Mappings:
Namespace Name official akeintermediary net/minecraft/class_118named net/minecraft/block/ChestBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectionPropertyprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxfinal ChestBlock.TypeFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPoscreateBlockEntity(World world, int id) getBlockRenderType(BlockState state) getCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetComparatorOutput(BlockState state, World world, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workgetStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an idbooleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) booleanmethod_11566(BlockState state) booleanmethod_11577(BlockState state) method_11583(World world, BlockPos blockPos) booleanmethod_421(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity, Hand hand, ItemStack itemStack, Direction direction, float float2, float float3, float float4) voidmethod_8641(BlockState blockState, World world, BlockPos blockPos, Block block) intmethod_8653(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) intmethod_8664(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) method_8701(World world, BlockPos blockPos, BlockState blockState) method_8702(World world, BlockPos blockPos, boolean bool) method_8703(World world, BlockPos blockPos, BlockState blockState) private booleanmethod_8704(World world, BlockPos blockPos) private booleanmethod_8705(World world, BlockPos blockPos) private booleanmethod_8706(World world, BlockPos blockPos) private booleanmethod_8707(World world, BlockPos blockPos) voidonBreaking(World world, BlockPos pos, BlockState state) Runs when the block is removed (by an entity or explosion).voidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).voidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entitystateFromData(int data) Returns a blockstate of the current block from it's idwithMirror(BlockState state, BlockMirror mirror) withRotation(BlockState state, BlockRotation rotation) Methods inherited from class net.minecraft.block.BlockWithEntity
method_435, method_8602, method_8603Methods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, appendItemStacks, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isLeafBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11568, method_11575, method_11576, method_414, method_8638, method_8640, method_8651, method_8654, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, useNeighbourLight
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLake;a:Larp;intermediary field_9334Lnet/minecraft/class_118;field_9334:Lnet/minecraft/class_2244;named FACINGLnet/minecraft/block/ChestBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
field_12616
- Mappings:
Namespace Name Mixin selector official bLake;b:Lbbf;intermediary field_12616Lnet/minecraft/class_118;field_12616:Lnet/minecraft/class_231;named field_12616Lnet/minecraft/block/ChestBlock;field_12616:Lnet/minecraft/util/math/Box;
-
field_12617
- Mappings:
Namespace Name Mixin selector official cLake;c:Lbbf;intermediary field_12617Lnet/minecraft/class_118;field_12617:Lnet/minecraft/class_231;named field_12617Lnet/minecraft/block/ChestBlock;field_12617:Lnet/minecraft/util/math/Box;
-
field_12618
- Mappings:
Namespace Name Mixin selector official dLake;d:Lbbf;intermediary field_12618Lnet/minecraft/class_118;field_12618:Lnet/minecraft/class_231;named field_12618Lnet/minecraft/block/ChestBlock;field_12618:Lnet/minecraft/util/math/Box;
-
field_12619
- Mappings:
Namespace Name Mixin selector official eLake;e:Lbbf;intermediary field_12619Lnet/minecraft/class_118;field_12619:Lnet/minecraft/class_231;named field_12619Lnet/minecraft/block/ChestBlock;field_12619:Lnet/minecraft/util/math/Box;
-
field_12620
- Mappings:
Namespace Name Mixin selector official fLake;f:Lbbf;intermediary field_12620Lnet/minecraft/class_118;field_12620:Lnet/minecraft/class_231;named field_12620Lnet/minecraft/block/ChestBlock;field_12620:Lnet/minecraft/util/math/Box;
-
field_12621
- Mappings:
Namespace Name Mixin selector official gLake;g:Lake$a;intermediary field_12621Lnet/minecraft/class_118;field_12621:Lnet/minecraft/class_118$class_2719;named field_12621Lnet/minecraft/block/ChestBlock;field_12621:Lnet/minecraft/block/ChestBlock$Type;
-
-
Constructor Details
-
ChestBlock
-
-
Method Details
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
getBlockRenderType
- Overrides:
getBlockRenderTypein classBlockWithEntity- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;)Laob;intermediary method_11552Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;named getBlockRenderTypeLnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lahx;Lcl;)Lbbf;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLajt;c(Laht;Lcl;Lard;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getStateFromData
public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an id- Overrides:
getStateFromDatain classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lcs;FFFILsa;)Lard;intermediary method_8645Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;named getStateFromDataLnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entity- Overrides:
onPlacedin classBlock- Parameters:
world- The world that the block is inpos- The block's positionstate- The block's BlockStateplacer- The entity who placed the blockitemStack- ItemStack instance- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;Lsa;Ladq;)Vintermediary method_419Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)Vnamed onPlacedLnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
-
method_8701
- Mappings:
Namespace Name Mixin selector official eLake;e(Laht;Lcl;Lard;)Lard;intermediary method_8701Lnet/minecraft/class_118;method_8701(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;named method_8701Lnet/minecraft/block/ChestBlock;method_8701(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
method_8703
- Mappings:
Namespace Name Mixin selector official fLake;f(Laht;Lcl;Lard;)Lard;intermediary method_8703Lnet/minecraft/class_118;method_8703(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_2232;named method_8703Lnet/minecraft/block/ChestBlock;method_8703(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8704
- Mappings:
Namespace Name Mixin selector official dLake;d(Laht;Lcl;)Zintermediary method_8704Lnet/minecraft/class_118;method_8704(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8704Lnet/minecraft/block/ChestBlock;method_8704(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8641
- Overrides:
method_8641in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;Lajt;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)Vnamed method_8641Lnet/minecraft/block/Block;method_8641(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
-
onBreaking
Runs when the block is removed (by an entity or explosion).- Overrides:
onBreakingin classBlockWithEntity- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official bLajt;b(Laht;Lcl;Lard;)Vintermediary method_8659Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onBreakingLnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
method_421
public boolean method_421(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity, Hand hand, @Nullable ItemStack itemStack, Direction direction, float float2, float float3, float float4) - Overrides:
method_421in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;Lzj;Lqm;Ladq;Lcs;FFF)Zintermediary method_421Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;Lnet/minecraft/class_1071;Lnet/minecraft/class_1354;FFF)Znamed method_421Lnet/minecraft/block/Block;method_421(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;FFF)Z
-
method_11583
- Mappings:
Namespace Name Mixin selector official cLake;c(Laht;Lcl;)Lqs;intermediary method_11583Lnet/minecraft/class_118;method_11583(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2610;named method_11583Lnet/minecraft/block/ChestBlock;method_11583(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/LockableScreenHandlerFactory;
-
method_8702
@Nullable public LockableScreenHandlerFactory method_8702(World world, BlockPos blockPos, boolean bool) - Mappings:
Namespace Name Mixin selector official aLake;a(Laht;Lcl;Z)Lqs;intermediary method_8702Lnet/minecraft/class_118;method_8702(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Z)Lnet/minecraft/class_2610;named method_8702Lnet/minecraft/block/ChestBlock;method_8702(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)Lnet/minecraft/block/entity/LockableScreenHandlerFactory;
-
createBlockEntity
- Mappings:
Namespace Name Mixin selector official aLalg;a(Laht;I)Lapv;intermediary method_309Lnet/minecraft/class_1451;method_309(Lnet/minecraft/class_1150;I)Lnet/minecraft/class_226;named createBlockEntityLnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/world/World;I)Lnet/minecraft/block/entity/BlockEntity;
-
method_11566
- Overrides:
method_11566in classBlock- Mappings:
Namespace Name Mixin selector official gLajt;g(Lard;)Zintermediary method_11566Lnet/minecraft/class_197;method_11566(Lnet/minecraft/class_2232;)Znamed method_11566Lnet/minecraft/block/Block;method_11566(Lnet/minecraft/block/BlockState;)Z
-
method_8653
public int method_8653(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) - Overrides:
method_8653in classBlock- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;Lahx;Lcl;Lcs;)Iintermediary method_8653Lnet/minecraft/class_197;method_8653(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Inamed method_8653Lnet/minecraft/block/Block;method_8653(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
method_8664
public int method_8664(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) - Overrides:
method_8664in classBlock- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;Lahx;Lcl;Lcs;)Iintermediary method_8664Lnet/minecraft/class_197;method_8664(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Inamed method_8664Lnet/minecraft/block/Block;method_8664(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
method_8705
- Mappings:
Namespace Name Mixin selector official eLake;e(Laht;Lcl;)Zintermediary method_8705Lnet/minecraft/class_118;method_8705(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8705Lnet/minecraft/block/ChestBlock;method_8705(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8706
- Mappings:
Namespace Name Mixin selector official iLake;i(Laht;Lcl;)Zintermediary method_8706Lnet/minecraft/class_118;method_8706(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8706Lnet/minecraft/block/ChestBlock;method_8706(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8707
- Mappings:
Namespace Name Mixin selector official jLake;j(Laht;Lcl;)Zintermediary method_8707Lnet/minecraft/class_118;method_8707(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8707Lnet/minecraft/block/ChestBlock;method_8707(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_11577
- Overrides:
method_11577in classBlock- Mappings:
Namespace Name Mixin selector official vLajt;v(Lard;)Zintermediary method_11577Lnet/minecraft/class_197;method_11577(Lnet/minecraft/class_2232;)Znamed method_11577Lnet/minecraft/block/Block;method_11577(Lnet/minecraft/block/BlockState;)Z
-
getComparatorOutput
- Overrides:
getComparatorOutputin classBlock- Mappings:
Namespace Name Mixin selector official dLajt;d(Lard;Laht;Lcl;)Iintermediary method_8686Lnet/minecraft/class_197;method_8686(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Inamed getComparatorOutputLnet/minecraft/block/Block;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLajt;a(I)Lard;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official eLajt;e(Lard;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
withRotation
- Overrides:
withRotationin classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laoe;)Lard;intermediary method_11556Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;named withRotationLnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
withMirror
- Overrides:
withMirrorin classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lamr;)Lard;intermediary method_11555Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;named withMirrorLnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLajt;b()Lare;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-