Class CreativeModeInventoryScreen.SlotWrapper
java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.SlotWrapper
- Enclosing class:
- CreativeModeInventoryScreen
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetItem()intintgetMaxStackSize(ItemStack p_98675_) com.mojang.datafixers.util.Pair<ResourceLocation,ResourceLocation> intRetrieves the index in the inventory for this slot, this value should typically not be used, but can be useful for some occasions.booleanhasItem()booleanisActive()booleanisSameInventory(Slot other) Checks if the other slot is in the same inventory, by comparing the inventory reference.booleanbooleanvoidremove(int p_98663_) voidsetBackground(ResourceLocation atlas, ResourceLocation sprite) Sets the background atlas and sprite location.voidsetByPlayer(ItemStack p_271008_, ItemStack p_299458_) voidMethods inherited from class net.minecraft.world.inventory.SlotallowModification, checkTakeAchievements, getContainerSlot, isHighlightable, onQuickCraft, onQuickCraft, onSwapCraft, safeInsert, safeInsert, safeTake, setByPlayer, tryRemove
- 
Field Details- 
target
 
- 
- 
Constructor Details- 
SlotWrapper
 
- 
- 
Method Details- 
onTake
- 
mayPlace
- 
getItem
- 
hasItempublic boolean hasItem()
- 
setByPlayer- Overrides:
- setByPlayerin class- Slot
 
- 
set
- 
setChangedpublic void setChanged()- Overrides:
- setChangedin class- Slot
 
- 
getMaxStackSizepublic int getMaxStackSize()- Overrides:
- getMaxStackSizein class- Slot
 
- 
getMaxStackSize- Overrides:
- getMaxStackSizein class- Slot
 
- 
getNoItemIcon- Overrides:
- getNoItemIconin class- Slot
 
- 
remove
- 
isActivepublic boolean isActive()
- 
mayPickup
- 
getSlotIndexpublic int getSlotIndex()Description copied from class:SlotRetrieves the index in the inventory for this slot, this value should typically not be used, but can be useful for some occasions.- Overrides:
- getSlotIndexin class- Slot
- Returns:
- Index in associated inventory for this slot.
 
- 
isSameInventoryDescription copied from class:SlotChecks if the other slot is in the same inventory, by comparing the inventory reference.- Overrides:
- isSameInventoryin class- Slot
- Returns:
- true if the other slot is in the same inventory
 
- 
setBackgroundDescription copied from class:SlotSets the background atlas and sprite location.- Overrides:
- setBackgroundin class- Slot
- Parameters:
- atlas- The atlas name
- sprite- The sprite located on that atlas.
- Returns:
- this, to allow chaining.
 
 
-