类 RandomizableContainerBlockEntity
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
- 所有已实现的接口:
Clearable
,Container
,MenuConstructor
,MenuProvider
,Nameable
,RandomizableContainer
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,IForgeBlockEntity
- 直接已知子类:
BarrelBlockEntity
,ChestBlockEntity
,CrafterBlockEntity
,DispenserBlockEntity
,HopperBlockEntity
,ShulkerBoxBlockEntity
public abstract class RandomizableContainerBlockEntity
extends BaseContainerBlockEntity
implements RandomizableContainer
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInput
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
从接口继承的字段 net.minecraft.world.RandomizableContainer
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG
-
构造器概要
构造器限定符构造器说明protected
RandomizableContainerBlockEntity
(BlockEntityType<?> p_155629_, BlockPos p_155630_, BlockState p_155631_) -
方法概要
修饰符和类型方法说明protected void
boolean
protected void
createMenu
(int p_59637_, Inventory p_59638_, Player p_59639_) getItem
(int p_59611_) long
boolean
isEmpty()
void
removeComponentsFromTag
(CompoundTag p_331651_) removeItem
(int p_59613_, int p_59614_) removeItemNoUpdate
(int p_59630_) void
void
setLootTable
(ResourceKey<LootTable> p_328444_) void
setLootTableSeed
(long p_311658_) 从类继承的方法 net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, clearContent, createMenu, createUnSidedHandler, getCapability, getCustomName, getDefaultName, getDisplayName, getItems, getName, invalidateCaps, loadAdditional, reviveCaps, saveAdditional, setItems, stillValid
从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, parseCustomNameSafe, saveCustomAndMetadata, saveCustomOnly, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.Clearable
clearContent
从接口继承的方法 net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getContainerSize, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stillValid, stopOpen
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockEntity
getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate
从接口继承的方法 net.minecraft.world.Nameable
hasCustomName
从接口继承的方法 net.minecraft.world.RandomizableContainer
getBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable
-
字段详细资料
-
lootTable
-
lootTableSeed
protected long lootTableSeed
-
-
构造器详细资料
-
RandomizableContainerBlockEntity
protected RandomizableContainerBlockEntity(BlockEntityType<?> p_155629_, BlockPos p_155630_, BlockState p_155631_)
-
-
方法详细资料
-
getLootTable
- 指定者:
getLootTable
在接口中RandomizableContainer
-
setLootTable
- 指定者:
setLootTable
在接口中RandomizableContainer
-
getLootTableSeed
public long getLootTableSeed()- 指定者:
getLootTableSeed
在接口中RandomizableContainer
-
setLootTableSeed
public void setLootTableSeed(long p_311658_) - 指定者:
setLootTableSeed
在接口中RandomizableContainer
-
isEmpty
public boolean isEmpty()- 指定者:
isEmpty
在接口中Container
- 覆盖:
isEmpty
在类中BaseContainerBlockEntity
-
getItem
- 指定者:
getItem
在接口中Container
- 覆盖:
getItem
在类中BaseContainerBlockEntity
-
removeItem
- 指定者:
removeItem
在接口中Container
- 覆盖:
removeItem
在类中BaseContainerBlockEntity
-
removeItemNoUpdate
- 指定者:
removeItemNoUpdate
在接口中Container
- 覆盖:
removeItemNoUpdate
在类中BaseContainerBlockEntity
-
setItem
- 指定者:
setItem
在接口中Container
- 覆盖:
setItem
在类中BaseContainerBlockEntity
-
canOpen
- 覆盖:
canOpen
在类中BaseContainerBlockEntity
-
createMenu
@Nullable public AbstractContainerMenu createMenu(int p_59637_, Inventory p_59638_, Player p_59639_) - 指定者:
createMenu
在接口中MenuConstructor
- 覆盖:
createMenu
在类中BaseContainerBlockEntity
-
applyImplicitComponents
-
collectImplicitComponents
-
removeComponentsFromTag
-