类 SlotItemHandler
java.lang.Object
net.minecraft.world.inventory.Slot
net.neoforged.neoforge.items.SlotItemHandler
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getItem()
int
int
getMaxStackSize
(ItemStack stack) void
initialize
(ItemStack stack) boolean
isSameInventory
(Slot other) Checks if the other slot is in the same inventory, by comparing the inventory reference.boolean
boolean
void
onQuickCraft
(ItemStack oldStackIn, ItemStack newStackIn) remove
(int amount) void
从类继承的方法 net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
字段详细资料
-
EMPTY_INVENTORY
-
itemHandler
-
index
protected final int index
-
-
构造器详细资料
-
SlotItemHandler
-
-
方法详细资料
-
mayPlace
-
getItem
-
set
-
initialize
-
onQuickCraft
- 覆盖:
onQuickCraft
在类中Slot
-
getMaxStackSize
public int getMaxStackSize()- 覆盖:
getMaxStackSize
在类中Slot
-
getMaxStackSize
- 覆盖:
getMaxStackSize
在类中Slot
-
mayPickup
-
remove
-
getItemHandler
-
isSameInventory
从类复制的说明:Slot
Checks if the other slot is in the same inventory, by comparing the inventory reference.- 覆盖:
isSameInventory
在类中Slot
- 参数:
other
-- 返回:
- true if the other slot is in the same inventory
-