类 DispenserBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
net.minecraft.world.level.block.entity.DispenserBlockEntity
- 所有已实现的接口:
Clearable
,Container
,MenuConstructor
,MenuProvider
,Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
- 直接已知子类:
DropperBlockEntity
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段从类继承的字段 net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG, lootTable, lootTableSeed
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
构造器概要
构造器限定符构造器说明DispenserBlockEntity
(BlockPos pPos, BlockState pBlockState) protected
DispenserBlockEntity
(BlockEntityType<?> pType, BlockPos pPos, BlockState pBlockState) -
方法概要
修饰符和类型方法说明int
protected AbstractContainerMenu
createMenu
(int pId, Inventory pPlayer) int
protected Component
protected NonNullList<ItemStack>
getItems()
int
getRandomSlot
(RandomSource pRandom) void
load
(CompoundTag pTag) protected void
saveAdditional
(CompoundTag pTag) protected void
setItems
(NonNullList<ItemStack> pItems) 从类继承的方法 net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
canOpen, clearContent, createMenu, getItem, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTable, stillValid, tryLoadLootTable, trySaveLootTable, unpackLootTable
从类继承的方法 net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, createUnSidedHandler, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps, setCustomName
从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpen
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
从接口继承的方法 net.minecraft.world.Nameable
hasCustomName
-
字段详细资料
-
CONTAINER_SIZE
public static final int CONTAINER_SIZE- 另请参阅:
-
items
-
-
构造器详细资料
-
DispenserBlockEntity
-
DispenserBlockEntity
-
-
方法详细资料
-
getContainerSize
public int getContainerSize() -
getRandomSlot
-
addItem
-
getDefaultName
- 指定者:
getDefaultName
在类中BaseContainerBlockEntity
-
load
- 覆盖:
load
在类中BaseContainerBlockEntity
-
saveAdditional
-
getItems
- 指定者:
getItems
在类中RandomizableContainerBlockEntity
-
setItems
- 指定者:
setItems
在类中RandomizableContainerBlockEntity
-
createMenu
- 指定者:
createMenu
在类中BaseContainerBlockEntity
-