类 ComposterBlock.OutputContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.minecraft.world.level.block.ComposterBlock.OutputContainer
- 所有已实现的接口:
Clearable
,Container
,StackedContentsCompatible
,WorldlyContainer
- 封闭类:
ComposterBlock
-
字段概要
字段修饰符和类型字段说明private boolean
private final LevelAccessor
private final BlockPos
private final BlockState
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
构造器概要
构造器构造器说明OutputContainer
(BlockState p_52042_, LevelAccessor p_52043_, BlockPos p_52044_, ItemStack p_52045_) -
方法概要
修饰符和类型方法说明boolean
canPlaceItemThroughFace
(int p_52049_, ItemStack p_52050_, Direction p_52051_) boolean
canTakeItemThroughFace
(int p_52055_, ItemStack p_52056_, Direction p_52057_) int
int[]
getSlotsForFace
(Direction p_52053_) void
从类继承的方法 net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, getItems, 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, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpen
-
字段详细资料
-
state
-
level
-
pos
-
changed
private boolean changed
-
-
构造器详细资料
-
OutputContainer
public OutputContainer(BlockState p_52042_, LevelAccessor p_52043_, BlockPos p_52044_, ItemStack p_52045_)
-
-
方法详细资料
-
getMaxStackSize
public int getMaxStackSize()- 指定者:
getMaxStackSize
在接口中Container
-
getSlotsForFace
- 指定者:
getSlotsForFace
在接口中WorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_52049_, ItemStack p_52050_, @Nullable Direction p_52051_) - 指定者:
canPlaceItemThroughFace
在接口中WorldlyContainer
-
canTakeItemThroughFace
- 指定者:
canTakeItemThroughFace
在接口中WorldlyContainer
-
setChanged
public void setChanged()- 指定者:
setChanged
在接口中Container
- 覆盖:
setChanged
在类中SimpleContainer
-