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 asiintermediary 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, nameFields inherited from class net.minecraft.block.entity.BlockEntity
block, pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcreateScreenHandler(PlayerInventory inventory, PlayerEntity player) voidfromNbt(NbtCompound nbt) getId()intintbooleanisEmpty()static voidmethod_13326(class_2934 class_2934) protected DefaultedList<ItemStack>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_13729, onInvClose, onInvOpen, removeInvStack, setInvStack, setProperty, takeInvStackMethods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
getLock, hasLock, method_6344, setLockMethods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, create, getBlock, getDataValue, getEntityWorld, getIdentifier, getPos, getSquaredDistance, getSquaredRenderDistance, getUpdatePacket, hasWorld, isRemoved, markDirty, markRemoved, method_11646, method_13321, method_13322, method_13323, onBlockAction, populateCrashReport, resetBlock, setPosition, setWorld, shouldNotCopyNbtFromItem
-
Field Details
-
RANDOM
- Mappings:
Namespace Name Mixin selector official aLasi;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 fLasi;f:Ldd;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
public DispenserBlockEntity()
-
-
Method Details
-
getInvSize
public int getInvSize()- Mappings:
Namespace Name Mixin selector official v_Lrc;v_()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 w_Lrc;w_()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 oLasi;o()Iintermediary method_515Lnet/minecraft/class_218;method_515()Inamed chooseNonEmptySlotLnet/minecraft/block/entity/DispenserBlockEntity;chooseNonEmptySlot()I
-
method_514
- Mappings:
Namespace Name Mixin selector official aLasi;a(Lafj;)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
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector official h_Lrp;h_()Ljava/lang/String;intermediary method_2518Lnet/minecraft/class_2611;method_2518()Ljava/lang/String;named getTranslationKeyLnet/minecraft/text/Nameable;getTranslationKey()Ljava/lang/String;
-
method_13326
- Mappings:
Namespace Name Mixin selector official aLasi;a(Lph;)Vintermediary method_13326Lnet/minecraft/class_218;method_13326(Lnet/minecraft/class_2934;)Vnamed method_13326Lnet/minecraft/block/entity/DispenserBlockEntity;method_13326(Lnet/minecraft/class_2934;)V
-
fromNbt
- Overrides:
fromNbtin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLasc;a(Ldu;)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 bLasc;b(Ldu;)Ldu;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 y_Lrc;y_()Iintermediary method_2389Lnet/minecraft/class_849;method_2389()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
getId
- Mappings:
Namespace Name Mixin selector official lLrj;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 aLrj;a(Laax;Laay;)Lacl;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 qLast;q()Ldd;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;
-