类 DispenserBlockEntity
- java.lang.Object
-
- net.minecraft.block.entity.BlockEntity
-
- net.minecraft.block.entity.LockableContainerBlockEntity
-
- net.minecraft.block.entity.LootableContainerBlockEntity
-
- net.minecraft.block.entity.DispenserBlockEntity
-
- 所有已实现的接口:
Inventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- 直接已知子类:
DropperBlockEntity
public class DispenserBlockEntity extends LootableContainerBlockEntity
- Mappings:
Namespace Name official cibintermediary net/minecraft/class_2601named net/minecraft/block/entity/DispenserBlockEntity
-
-
字段概要
字段 修饰符和类型 字段 说明 static intfield_31340private DefaultedList<ItemStack>inventoryprivate static RandomRANDOM-
从类继承的字段 net.minecraft.block.entity.LootableContainerBlockEntity
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY, lootTableId, lootTableSeed
-
从类继承的字段 net.minecraft.block.entity.BlockEntity
pos, removed, world
-
从接口继承的字段 net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK
-
-
构造器概要
构造器 限定符 构造器 说明 protectedDispenserBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state)DispenserBlockEntity(BlockPos pos, BlockState state)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intaddToFirstFreeSlot(ItemStack stack)intchooseNonEmptySlot()protected ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory)protected TextgetContainerName()protected DefaultedList<ItemStack>getInvStackList()voidreadNbt(CompoundTag nbt)protected voidsetInvStackList(DefaultedList<ItemStack> list)intsize()CompoundTagwriteNbt(CompoundTag nbt)-
从类继承的方法 net.minecraft.block.entity.LootableContainerBlockEntity
canPlayerUse, checkLootInteraction, checkUnlocked, clear, createMenu, deserializeLootTable, getStack, isEmpty, removeStack, removeStack, serializeLootTable, setLootTable, setLootTable, setStack
-
从类继承的方法 net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, getCustomName, getDisplayName, getName, setCustomName
-
从类继承的方法 net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt, toUpdatePacket
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.inventory.Inventory
containsAny, count, getMaxCountPerStack, isValid, markDirty, onClose, onOpen
-
从接口继承的方法 net.minecraft.util.Nameable
hasCustomName
-
-
-
-
字段详细资料
-
RANDOM
private static final Random RANDOM
- Mappings:
Namespace Name Mixin selector official cLcib;c:Ljava/util/Random;intermediary field_11944Lnet/minecraft/class_2601;field_11944:Ljava/util/Random;named RANDOMLnet/minecraft/block/entity/DispenserBlockEntity;RANDOM:Ljava/util/Random;
-
field_31340
public static final int field_31340
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLcib;b:Iintermediary field_31340Lnet/minecraft/class_2601;field_31340:Inamed field_31340Lnet/minecraft/block/entity/DispenserBlockEntity;field_31340:I
-
inventory
private DefaultedList<ItemStack> inventory
- Mappings:
Namespace Name Mixin selector official fLcib;f:Lgn;intermediary field_11945Lnet/minecraft/class_2601;field_11945:Lnet/minecraft/class_2371;named inventoryLnet/minecraft/block/entity/DispenserBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
-
构造器详细资料
-
DispenserBlockEntity
protected DispenserBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lchp;<init>(Lchr;Lgb;Lcjr;)Vintermediary <init>Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/BlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
DispenserBlockEntity
public DispenserBlockEntity(BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lcib;<init>(Lgb;Lcjr;)Vintermediary <init>Lnet/minecraft/class_2601;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/DispenserBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
方法详细资料
-
size
public int size()
- Mappings:
Namespace Name Mixin selector official ab_Laqz;ab_()Iintermediary method_5439Lnet/minecraft/class_1263;method_5439()Inamed sizeLnet/minecraft/inventory/Inventory;size()I
-
chooseNonEmptySlot
public int chooseNonEmptySlot()
- Mappings:
Namespace Name Mixin selector official hLcib;h()Iintermediary method_11076Lnet/minecraft/class_2601;method_11076()Inamed chooseNonEmptySlotLnet/minecraft/block/entity/DispenserBlockEntity;chooseNonEmptySlot()I
-
addToFirstFreeSlot
public int addToFirstFreeSlot(ItemStack stack)
- Mappings:
Namespace Name Mixin selector official aLcib;a(Lbpr;)Iintermediary method_11075Lnet/minecraft/class_2601;method_11075(Lnet/minecraft/class_1799;)Inamed addToFirstFreeSlotLnet/minecraft/block/entity/DispenserBlockEntity;addToFirstFreeSlot(Lnet/minecraft/item/ItemStack;)I
-
getContainerName
protected Text getContainerName()
- 指定者:
getContainerName在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official gLchj;g()Lon;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
readNbt
public void readNbt(CompoundTag nbt)
- 覆盖:
readNbt在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLchp;a(Lmv;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
writeNbt
public CompoundTag writeNbt(CompoundTag nbt)
- 覆盖:
writeNbt在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official bLchp;b(Lmv;)Lmv;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getInvStackList
protected DefaultedList<ItemStack> getInvStackList()
- 指定者:
getInvStackList在类中LootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official fLcim;f()Lgn;intermediary method_11282Lnet/minecraft/class_2621;method_11282()Lnet/minecraft/class_2371;named getInvStackListLnet/minecraft/block/entity/LootableContainerBlockEntity;getInvStackList()Lnet/minecraft/util/collection/DefaultedList;
-
setInvStackList
protected void setInvStackList(DefaultedList<ItemStack> list)
- 指定者:
setInvStackList在类中LootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLcim;a(Lgn;)Vintermediary method_11281Lnet/minecraft/class_2621;method_11281(Lnet/minecraft/class_2371;)Vnamed setInvStackListLnet/minecraft/block/entity/LootableContainerBlockEntity;setInvStackList(Lnet/minecraft/util/collection/DefaultedList;)V
-
createScreenHandler
protected ScreenHandler createScreenHandler(int syncId, PlayerInventory playerInventory)
- 指定者:
createScreenHandler在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLchj;a(ILbje;)Lbll;intermediary method_5465Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;named createScreenHandlerLnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-
-