类 SimpleContainer
java.lang.Object
net.minecraft.world.SimpleContainer
- 所有已实现的接口:
Iterable<ItemStack>
,Clearable
,Container
,StackedContentsCompatible
- 直接已知子类:
ComposterBlock.EmptyContainer
,ComposterBlock.InputContainer
,ComposterBlock.OutputContainer
,PlayerEnderChestContainer
,RecipeBookExtensionTest.RecipeBookTestContainer
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.world.Container
Container.ContainerIterator
-
字段概要
字段从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addListener
(ContainerListener p_19165_) boolean
canAddItem
(ItemStack p_19184_) void
void
fillStackedContents
(StackedItemContents p_361025_) void
fromItemList
(ValueInput.TypedInputList<ItemStack> p_421559_) int
getItem
(int p_19157_) getItems()
boolean
isEmpty()
private void
moveItemsBetweenStacks
(ItemStack p_19186_, ItemStack p_19187_) private void
moveItemToEmptySlots
(ItemStack p_19190_) private void
moveItemToOccupiedSlotsWithSameType
(ItemStack p_19192_) removeItem
(int p_19159_, int p_19160_) removeItemNoUpdate
(int p_19180_) removeItemType
(Item p_19171_, int p_19172_) void
removeListener
(ContainerListener p_19182_) void
void
boolean
stillValid
(Player p_19167_) void
storeAsItemList
(ValueOutput.TypedOutputList<ItemStack> p_422650_) toString()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, iterator, startOpen, stopOpen
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
字段详细资料
-
size
private final int size -
items
-
listeners
-
-
构造器详细资料
-
SimpleContainer
public SimpleContainer(int p_19150_) -
SimpleContainer
-
-
方法详细资料
-
addListener
-
removeListener
-
getItem
-
removeAllItems
-
removeItem
- 指定者:
removeItem
在接口中Container
-
removeItemType
-
addItem
-
canAddItem
-
removeItemNoUpdate
- 指定者:
removeItemNoUpdate
在接口中Container
-
setItem
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
isEmpty
public boolean isEmpty() -
setChanged
public void setChanged()- 指定者:
setChanged
在接口中Container
-
stillValid
- 指定者:
stillValid
在接口中Container
-
clearContent
public void clearContent()- 指定者:
clearContent
在接口中Clearable
-
fillStackedContents
- 指定者:
fillStackedContents
在接口中StackedContentsCompatible
-
toString
-
moveItemToEmptySlots
-
moveItemToOccupiedSlotsWithSameType
-
moveItemsBetweenStacks
-
fromItemList
-
storeAsItemList
-
getItems
-