类 CrafterBlockEntity
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.CrafterBlockEntity
- 所有已实现的接口:
Clearable
,Container
,CraftingContainer
,MenuConstructor
,StackedContentsCompatible
,MenuProvider
,Nameable
,RandomizableContainer
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,IForgeBlockEntity
public class CrafterBlockEntity
extends RandomizableContainerBlockEntity
implements CraftingContainer
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInput
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明static final int
static final int
static final int
protected final ContainerData
private int
static final int
private NonNullList
<ItemStack> static final int
static final int
static final int
从类继承的字段 net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
lootTable, lootTableSeed
从类继承的字段 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
addDisabledSlots
(CompoundTag p_309756_) private void
addTriggered
(CompoundTag p_312165_) boolean
canPlaceItem
(int p_311324_, ItemStack p_312777_) protected AbstractContainerMenu
createMenu
(int p_312650_, Inventory p_309858_) void
fillStackedContents
(StackedItemContents p_361023_) int
protected Component
int
getItem
(int p_310446_) getItems()
int
int
getWidth()
boolean
isEmpty()
boolean
isSlotDisabled
(int p_312222_) boolean
protected void
loadAdditional
(CompoundTag p_328373_, HolderLookup.Provider p_328741_) protected void
saveAdditional
(CompoundTag p_309594_, HolderLookup.Provider p_330681_) static void
serverTick
(Level p_311764_, BlockPos p_309568_, BlockState p_311393_, CrafterBlockEntity p_313070_) void
setCraftingTicksRemaining
(int p_312384_) void
protected void
setItems
(NonNullList<ItemStack> p_311420_) void
setSlotState
(int p_310046_, boolean p_310331_) void
setTriggered
(boolean p_311394_) private boolean
slotCanBeDisabled
(int p_309429_) private boolean
smallerStackExist
(int p_312152_, ItemStack p_309554_, int p_312872_) boolean
stillValid
(Player p_311318_) 从类继承的方法 net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
applyImplicitComponents, canOpen, collectImplicitComponents, createMenu, getLootTable, getLootTableSeed, removeComponentsFromTag, removeItem, removeItemNoUpdate, setLootTable, setLootTableSeed
从类继承的方法 net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, clearContent, createUnSidedHandler, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps
从类继承的方法 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
canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, removeItem, removeItemNoUpdate, setChanged, startOpen, stopOpen
从接口继承的方法 net.minecraft.world.inventory.CraftingContainer
asCraftInput, asPositionedCraftInput
从接口继承的方法 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
-
字段详细资料
-
CONTAINER_WIDTH
public static final int CONTAINER_WIDTH- 另请参阅:
-
CONTAINER_HEIGHT
public static final int CONTAINER_HEIGHT- 另请参阅:
-
CONTAINER_SIZE
public static final int CONTAINER_SIZE- 另请参阅:
-
SLOT_DISABLED
public static final int SLOT_DISABLED- 另请参阅:
-
SLOT_ENABLED
public static final int SLOT_ENABLED- 另请参阅:
-
DATA_TRIGGERED
public static final int DATA_TRIGGERED- 另请参阅:
-
NUM_DATA
public static final int NUM_DATA- 另请参阅:
-
items
-
craftingTicksRemaining
private int craftingTicksRemaining -
containerData
-
-
构造器详细资料
-
CrafterBlockEntity
-
-
方法详细资料
-
getDefaultName
- 指定者:
getDefaultName
在类中BaseContainerBlockEntity
-
createMenu
- 指定者:
createMenu
在类中BaseContainerBlockEntity
-
setSlotState
public void setSlotState(int p_310046_, boolean p_310331_) -
isSlotDisabled
public boolean isSlotDisabled(int p_312222_) -
canPlaceItem
- 指定者:
canPlaceItem
在接口中Container
-
smallerStackExist
-
loadAdditional
-
saveAdditional
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
isEmpty
public boolean isEmpty()- 指定者:
isEmpty
在接口中Container
- 覆盖:
isEmpty
在类中RandomizableContainerBlockEntity
-
getItem
- 指定者:
getItem
在接口中Container
- 覆盖:
getItem
在类中RandomizableContainerBlockEntity
-
setItem
- 指定者:
setItem
在接口中Container
- 覆盖:
setItem
在类中RandomizableContainerBlockEntity
-
stillValid
- 指定者:
stillValid
在接口中Container
- 覆盖:
stillValid
在类中BaseContainerBlockEntity
-
getItems
- 指定者:
getItems
在接口中CraftingContainer
- 指定者:
getItems
在类中BaseContainerBlockEntity
-
setItems
- 指定者:
setItems
在类中BaseContainerBlockEntity
-
getWidth
public int getWidth()- 指定者:
getWidth
在接口中CraftingContainer
-
getHeight
public int getHeight()- 指定者:
getHeight
在接口中CraftingContainer
-
fillStackedContents
- 指定者:
fillStackedContents
在接口中StackedContentsCompatible
-
addDisabledSlots
-
addTriggered
-
setTriggered
public void setTriggered(boolean p_311394_) -
isTriggered
public boolean isTriggered() -
serverTick
public static void serverTick(Level p_311764_, BlockPos p_309568_, BlockState p_311393_, CrafterBlockEntity p_313070_) -
setCraftingTicksRemaining
public void setCraftingTicksRemaining(int p_312384_) -
getRedstoneSignal
public int getRedstoneSignal() -
slotCanBeDisabled
private boolean slotCanBeDisabled(int p_309429_)
-