Package net.minecraft.block.entity
Class ChestBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LockableContainerBlockEntity
net.minecraft.block.entity.class_2737
net.minecraft.block.entity.ChestBlockEntity
- All Implemented Interfaces:
LockableScreenHandlerFactory,class_2964,class_3743,Inventory,NamedScreenHandlerFactory,Nameable,Tickable
- Direct Known Subclasses:
class_3746
@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=class_3743.class))
public class ChestBlockEntity
extends class_2737
implements class_3743, Tickable
- Mappings:
Namespace Name official bjlintermediary net/minecraft/class_216named net/minecraft/block/entity/ChestBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprivate DefaultedList<ItemStack>protected floatprivate intprotected intFields inherited from class net.minecraft.block.entity.class_2737
field_12852, field_12853, field_18643Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateScreenHandler(PlayerInventory inventory, PlayerEntity player) voidfromNbt(NbtCompound nbt) getId()intintbooleanisEmpty()protected DefaultedList<ItemStack>static intmethod_16792(BlockView blockView, BlockPos blockPos) static voidmethod_16793(ChestBlockEntity chestBlockEntity, ChestBlockEntity chestBlockEntity2) private voidmethod_16794(SoundEvent soundEvent) protected voidfloatmethod_16830(float float2) protected voidmethod_16834(DefaultedList<ItemStack> defaultedList) method_541(NbtCompound nbtCompound) booleanonBlockAction(int int2, int int3) voidonInvClose(PlayerEntity player) voidonInvOpen(PlayerEntity player) voidtick()Methods inherited from class net.minecraft.block.entity.class_2737
canPlayerUseInv, clear, getInvStack, getLootTableId, getProperties, getProperty, hasCustomName, isValidInvStack, method_11660, method_11661, method_11662, method_11663, method_15541, method_16833, method_16835, removeInvStack, setInvStack, setProperty, takeInvStackMethods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
getLock, hasLock, setLockMethods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, getEntityWorld, getPos, getSquaredDistance, getSquaredRenderDistance, getUpdatePacket, hasWorld, isRemoved, markDirty, markRemoved, method_11646, method_13321, method_13322, method_16780, method_16781, method_16783, populateCrashReport, resetBlock, setPosition, setWorld, shouldNotCopyNbtFromItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
getHeight, markDirty, method_11260Methods inherited from interface net.minecraft.text.Nameable
method_6344
-
Field Details
-
field_15152
- Mappings:
Namespace Name Mixin selector official jLbjl;j:Lez;intermediary field_15152Lnet/minecraft/class_216;field_15152:Lnet/minecraft/class_3114;named field_15152Lnet/minecraft/block/entity/ChestBlockEntity;field_15152:Lnet/minecraft/util/collection/DefaultedList;
-
animationAngle
protected float animationAngle- Mappings:
Namespace Name Mixin selector official aLbjl;a:Fintermediary field_522Lnet/minecraft/class_216;field_522:Fnamed animationAngleLnet/minecraft/block/entity/ChestBlockEntity;animationAngle:F
-
field_523
protected float field_523- Mappings:
Namespace Name Mixin selector official eLbjl;e:Fintermediary field_523Lnet/minecraft/class_216;field_523:Fnamed field_523Lnet/minecraft/block/entity/ChestBlockEntity;field_523:F
-
viewerCount
protected int viewerCount- Mappings:
Namespace Name Mixin selector official fLbjl;f:Iintermediary field_524Lnet/minecraft/class_216;field_524:Inamed viewerCountLnet/minecraft/block/entity/ChestBlockEntity;viewerCount:I
-
ticksOpen
private int ticksOpen- Mappings:
Namespace Name Mixin selector official kLbjl;k:Iintermediary field_526Lnet/minecraft/class_216;field_526:Inamed ticksOpenLnet/minecraft/block/entity/ChestBlockEntity;ticksOpen:I
-
-
Constructor Details
-
ChestBlockEntity
-
ChestBlockEntity
public ChestBlockEntity()
-
-
Method Details
-
getInvSize
public int getInvSize()- Specified by:
getInvSizein interfaceInventory- Mappings:
Namespace Name Mixin selector official T_Lade;T_()Iintermediary method_2388Lnet/minecraft/class_849;method_2388()Inamed getInvSizeLnet/minecraft/inventory/Inventory;getInvSize()I
-
isEmpty
public boolean isEmpty() -
method_15540
- Specified by:
method_15540in interfaceNameable- Mappings:
Namespace Name Mixin selector official N_Ladr;N_()Lij;intermediary method_15540Lnet/minecraft/class_2611;method_15540()Lnet/minecraft/class_1982;named method_15540Lnet/minecraft/text/Nameable;method_15540()Lnet/minecraft/text/Text;
-
fromNbt
- Overrides:
fromNbtin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official bLbji;b(Lgy;)Vintermediary method_537Lnet/minecraft/class_226;method_537(Lnet/minecraft/class_322;)Vnamed fromNbtLnet/minecraft/block/entity/BlockEntity;fromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
method_541
- Overrides:
method_541in classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLbji;a(Lgy;)Lgy;intermediary method_541Lnet/minecraft/class_226;method_541(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;named method_541Lnet/minecraft/block/entity/BlockEntity;method_541(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
getInvMaxStackAmount
public int getInvMaxStackAmount()- Specified by:
getInvMaxStackAmountin interfaceInventory- Mappings:
Namespace Name Mixin selector official fLade;f()Iintermediary method_2389Lnet/minecraft/class_849;method_2389()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
tick
public void tick() -
method_16794
- Mappings:
Namespace Name Mixin selector official aLbjl;a(Lwi;)Vintermediary method_16794Lnet/minecraft/class_216;method_16794(Lnet/minecraft/class_2926;)Vnamed method_16794Lnet/minecraft/block/entity/ChestBlockEntity;method_16794(Lnet/minecraft/client/sound/SoundEvent;)V
-
onBlockAction
public boolean onBlockAction(int int2, int int3) - Overrides:
onBlockActionin classBlockEntity- Mappings:
Namespace Name Mixin selector official cLbji;c(II)Zintermediary method_4838Lnet/minecraft/class_226;method_4838(II)Znamed onBlockActionLnet/minecraft/block/entity/BlockEntity;onBlockAction(II)Z
-
onInvOpen
- Specified by:
onInvOpenin interfaceInventory- Overrides:
onInvOpenin classclass_2737- Mappings:
Namespace Name Mixin selector official bLade;b(Laog;)Vintermediary method_10894Lnet/minecraft/class_849;method_10894(Lnet/minecraft/class_988;)Vnamed onInvOpenLnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onInvClose
- Specified by:
onInvClosein interfaceInventory- Overrides:
onInvClosein classclass_2737- Mappings:
Namespace Name Mixin selector official cLade;c(Laog;)Vintermediary method_10895Lnet/minecraft/class_849;method_10895(Lnet/minecraft/class_988;)Vnamed onInvCloseLnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_16795
protected void method_16795()- Mappings:
Namespace Name Mixin selector official pLbjl;p()Vintermediary method_16795Lnet/minecraft/class_216;method_16795()Vnamed method_16795Lnet/minecraft/block/entity/ChestBlockEntity;method_16795()V
-
getId
- Specified by:
getIdin interfaceNamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official lLadl;l()Ljava/lang/String;intermediary method_10906Lnet/minecraft/class_2608;method_10906()Ljava/lang/String;named getIdLnet/minecraft/screen/NamedScreenHandlerFactory;getId()Ljava/lang/String;
-
createScreenHandler
- Specified by:
createScreenHandlerin interfaceNamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official aLadl;a(Laof;Laog;)Lapv;intermediary method_10905Lnet/minecraft/class_2608;method_10905(Lnet/minecraft/class_987;Lnet/minecraft/class_988;)Lnet/minecraft/class_1002;named createScreenHandlerLnet/minecraft/screen/NamedScreenHandlerFactory;createScreenHandler(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
-
method_13730
- Specified by:
method_13730in classclass_2737- Mappings:
Namespace Name Mixin selector official qLbka;q()Lez;intermediary method_13730Lnet/minecraft/class_2737;method_13730()Lnet/minecraft/class_3114;named method_13730Lnet/minecraft/block/entity/class_2737;method_13730()Lnet/minecraft/util/collection/DefaultedList;
-
method_16834
- Specified by:
method_16834in classclass_2737- Mappings:
Namespace Name Mixin selector official aLbka;a(Lez;)Vintermediary method_16834Lnet/minecraft/class_2737;method_16834(Lnet/minecraft/class_3114;)Vnamed method_16834Lnet/minecraft/block/entity/class_2737;method_16834(Lnet/minecraft/util/collection/DefaultedList;)V
-
method_16830
- Specified by:
method_16830in interfaceclass_3743- Mappings:
Namespace Name Mixin selector official aLbjy;a(F)Fintermediary method_16830Lnet/minecraft/class_3743;method_16830(F)Fnamed method_16830Lnet/minecraft/class_3743;method_16830(F)F
-
method_16792
- Mappings:
Namespace Name Mixin selector official aLbjl;a(Laxk;Lel;)Iintermediary method_16792Lnet/minecraft/class_216;method_16792(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Inamed method_16792Lnet/minecraft/block/entity/ChestBlockEntity;method_16792(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
-
method_16793
public static void method_16793(ChestBlockEntity chestBlockEntity, ChestBlockEntity chestBlockEntity2) - Mappings:
Namespace Name Mixin selector official aLbjl;a(Lbjl;Lbjl;)Vintermediary method_16793Lnet/minecraft/class_216;method_16793(Lnet/minecraft/class_216;Lnet/minecraft/class_216;)Vnamed method_16793Lnet/minecraft/block/entity/ChestBlockEntity;method_16793(Lnet/minecraft/block/entity/ChestBlockEntity;Lnet/minecraft/block/entity/ChestBlockEntity;)V
-