类 CreativeModeInventoryScreen.SlotWrapper
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.SlotWrapper
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getItem()
int
int
getMaxStackSize
(ItemStack p_98675_) int
Retrieves the index in the inventory for this slot, this value should typically not be used, but can be useful for some occasions.boolean
hasItem()
boolean
isActive()
boolean
isSameInventory
(Slot other) Checks if the other slot is in the same inventory, by comparing the inventory reference.boolean
boolean
void
remove
(int p_98663_) void
setBackground
(ResourceLocation sprite) Sets the background atlas and sprite location.void
setByPlayer
(ItemStack p_271008_, ItemStack p_299458_) void
从类继承的方法 net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, isFake, isHighlightable, onQuickCraft, onQuickCraft, onSwapCraft, safeInsert, safeInsert, safeTake, setByPlayer, tryRemove
-
字段详细资料
-
target
-
-
构造器详细资料
-
SlotWrapper
-
-
方法详细资料
-
onTake
-
mayPlace
-
getItem
-
hasItem
public boolean hasItem() -
setByPlayer
- 覆盖:
setByPlayer
在类中Slot
-
set
-
setChanged
public void setChanged()- 覆盖:
setChanged
在类中Slot
-
getMaxStackSize
public int getMaxStackSize()- 覆盖:
getMaxStackSize
在类中Slot
-
getMaxStackSize
- 覆盖:
getMaxStackSize
在类中Slot
-
getNoItemIcon
- 覆盖:
getNoItemIcon
在类中Slot
-
remove
-
isActive
public boolean isActive() -
mayPickup
-
getSlotIndex
public int getSlotIndex()从类复制的说明:Slot
Retrieves the index in the inventory for this slot, this value should typically not be used, but can be useful for some occasions.- 覆盖:
getSlotIndex
在类中Slot
- 返回:
- Index in associated inventory for this slot.
-
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
-
setBackground
从类复制的说明:Slot
Sets the background atlas and sprite location.- 覆盖:
setBackground
在类中Slot
- 参数:
sprite
- The sprite located on that atlas.- 返回:
- this, to allow chaining.
-