Class CreativeModeInventoryScreen.SlotWrapper
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.SlotWrapper
- Enclosing class:
CreativeModeInventoryScreen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItem()intintgetMaxStackSize(ItemStack itemStack) intNeo: Returns the index in the inventory for this slot.booleanhasItem()booleanisActive()booleanisSameInventory(Slot other) Neo: Returns whether this slot belongs to the same inventory as the given slot.booleanbooleanvoidremove(int amount) voidsetBackground(Identifier sprite) Neo: Set the background sprite location.voidsetByPlayer(ItemStack itemStack, ItemStack previous) voidMethods inherited from class Slot
allowModification, checkTakeAchievements, getContainerSlot, isFake, isHighlightable, onQuickCraft, onQuickCraft, onSwapCraft, safeClone, safeInsert, safeInsert, safeTake, setByPlayer, tryRemove
-
Field Details
-
target
-
-
Constructor Details
-
SlotWrapper
-
-
Method Details
-
onTake
-
mayPlace
-
getItem
-
hasItem
-
setByPlayer
- Overrides:
setByPlayerin classSlot
-
set
-
setChanged
public void setChanged()- Overrides:
setChangedin classSlot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classSlot
-
getMaxStackSize
- Overrides:
getMaxStackSizein classSlot
-
getNoItemIcon
- Overrides:
getNoItemIconin classSlot
-
remove
-
isActive
-
mayPickup
-
getSlotIndex
public int getSlotIndex()Description copied from class:SlotNeo: Returns the index in the inventory for this slot. This value should typically not be used, but can be useful for some occasions.- Overrides:
getSlotIndexin classSlot- Returns:
- Index in associated inventory for this slot.
-
isSameInventory
Description copied from class:SlotNeo: Returns whether this slot belongs to the same inventory as the given slot.- Overrides:
isSameInventoryin classSlot- Returns:
- whether this slot belongs to the same inventory as the given slot
-
setBackground
Description copied from class:SlotNeo: Set the background sprite location.- Overrides:
setBackgroundin classSlot- Parameters:
sprite- The sprite location- Returns:
- this, to allow chaining.
-