类 ComposterBlock.InputContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.minecraft.world.level.block.ComposterBlock.InputContainer
- 所有已实现的接口:
Clearable
,Container
,StackedContentsCompatible
,WorldlyContainer
- 封闭类:
- ComposterBlock
-
字段概要
字段修饰符和类型字段说明private boolean
private final LevelAccessor
private final BlockPos
private final BlockState
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) boolean
canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) int
int[]
getSlotsForFace
(Direction pSide) void
从类继承的方法 net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setItem, stillValid, toString
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.Clearable
clearContent
从接口继承的方法 net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getContainerSize, getItem, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpen
-
字段详细资料
-
state
-
level
-
pos
-
changed
private boolean changed
-
-
构造器详细资料
-
InputContainer
-
-
方法详细资料
-
getMaxStackSize
public int getMaxStackSize()- 指定者:
getMaxStackSize
在接口中Container
-
getSlotsForFace
- 指定者:
getSlotsForFace
在接口中WorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int pIndex, ItemStack pItemStack, @Nullable Direction pDirection) - 指定者:
canPlaceItemThroughFace
在接口中WorldlyContainer
-
canTakeItemThroughFace
- 指定者:
canTakeItemThroughFace
在接口中WorldlyContainer
-
setChanged
public void setChanged()- 指定者:
setChanged
在接口中Container
- 覆盖:
setChanged
在类中SimpleContainer
-