Package net.minecraft.block.entity
Class DispenserBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LockableContainerBlockEntity
net.minecraft.block.entity.class_2737
net.minecraft.block.entity.DispenserBlockEntity
- All Implemented Interfaces:
LockableScreenHandlerFactory,class_2964,Inventory,NamedScreenHandlerFactory,Nameable
- Direct Known Subclasses:
DropperBlockEntity
- Mappings:
Namespace Name official bjqintermediary net/minecraft/class_218named net/minecraft/block/entity/DispenserBlockEntity
-
Field Summary
FieldsFields 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 TypeMethodDescriptionintcreateScreenHandler(PlayerInventory inventory, PlayerEntity player) voidfromNbt(NbtCompound nbt) getId()intintbooleanisEmpty()protected DefaultedList<ItemStack>protected voidmethod_16834(DefaultedList<ItemStack> defaultedList) intmethod_514(ItemStack itemStack) method_541(NbtCompound nbtCompound) 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, onInvClose, onInvOpen, 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, onBlockAction, 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
-
RANDOM
- Mappings:
Namespace Name Mixin selector official aLbjq;a:Ljava/util/Random;intermediary field_9852Lnet/minecraft/class_218;field_9852:Ljava/util/Random;named RANDOMLnet/minecraft/block/entity/DispenserBlockEntity;RANDOM:Ljava/util/Random;
-
field_15153
- Mappings:
Namespace Name Mixin selector official eLbjq;e:Lez;intermediary field_15153Lnet/minecraft/class_218;field_15153:Lnet/minecraft/class_3114;named field_15153Lnet/minecraft/block/entity/DispenserBlockEntity;field_15153:Lnet/minecraft/util/collection/DefaultedList;
-
-
Constructor Details
-
DispenserBlockEntity
-
DispenserBlockEntity
public DispenserBlockEntity()
-
-
Method Details
-
getInvSize
public int getInvSize()- 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()- Mappings:
Namespace Name Mixin selector official P_Lade;P_()Zintermediary method_13922Lnet/minecraft/class_849;method_13922()Znamed isEmptyLnet/minecraft/inventory/Inventory;isEmpty()Z
-
chooseNonEmptySlot
public int chooseNonEmptySlot()- Mappings:
Namespace Name Mixin selector official pLbjq;p()Iintermediary method_515Lnet/minecraft/class_218;method_515()Inamed chooseNonEmptySlotLnet/minecraft/block/entity/DispenserBlockEntity;chooseNonEmptySlot()I
-
method_514
- Mappings:
Namespace Name Mixin selector official aLbjq;a(Late;)Iintermediary method_514Lnet/minecraft/class_218;method_514(Lnet/minecraft/class_1071;)Inamed method_514Lnet/minecraft/block/entity/DispenserBlockEntity;method_514(Lnet/minecraft/item/ItemStack;)I
-
method_15540
- 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()- Mappings:
Namespace Name Mixin selector official fLade;f()Iintermediary method_2389Lnet/minecraft/class_849;method_2389()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
getId
- 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
- 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
-