net.minecraft.world.inventory

public class Slot

cgd
net.minecraft.world.inventory.Slot
net.minecraft.class_1735
net.minecraft.screen.slot.Slot
net.minecraft.src.C_1305_
net.minecraft.world.inventory.Slot

Field summary

Modifier and TypeField
private final int
a
slot
field_7875
index
f_40217_
public final Container
d
container
field_7871
inventory
f_40218_
public int
e
index
field_7874
id
f_40219_
public final int
f
x
field_7873
x
f_40220_
public final int
g
y
field_7872
y
f_40221_

Constructor summary

ModifierConstructor
public (Container inventory, int index, int x, int y)

Method summary

Modifier and TypeMethod
public void
b(cjf arg0, cjf arg1)
onQuickCraft(ItemStack arg0, ItemStack arg1)
method_7670(class_1799 arg0, class_1799 arg1)
onQuickTransfer(ItemStack newItem, ItemStack original)
m_40234_(C_1391_ p_40236_, C_1391_ arg1)
protected void
a(cjf arg0, int arg1)
onQuickCraft(ItemStack arg0, int arg1)
method_7678(class_1799 arg0, int arg1)
onCrafted(ItemStack stack, int amount)
m_7169_(C_1391_ p_40233_, int arg1)
protected void
b(int arg0)
onSwapCraft(int arg0)
method_7672(int arg0)
onTake(int amount)
m_6405_(int arg0)
protected void
b_(cjf arg0)
checkTakeAchievements(ItemStack arg0)
method_7669(class_1799 arg0)
onCrafted(ItemStack stack)
m_5845_(C_1391_ arg0)
public void
a(cbu arg0, cjf arg1)
onTake(Player arg0, ItemStack arg1)
method_7667(class_1657 arg0, class_1799 arg1)
onTakeItem(PlayerEntity player, ItemStack stack)
m_142406_(C_1141_ p_150646_, C_1391_ arg1)
public boolean
a(cjf arg0)
mayPlace(ItemStack arg0)
method_7680(class_1799 arg0)
canInsert(ItemStack stack)
m_5857_(C_1391_ arg0)
public ItemStack
e()
getItem()
method_7677()
getStack()
m_7993_()
public boolean
f()
hasItem()
method_7681()
hasStack()
m_6657_()
public void
d(cjf arg0)
setByPlayer(ItemStack arg0)
method_53512(class_1799 arg0)
setStack(ItemStack stack)
m_269060_(C_1391_ arg0)
public void
a(cjf arg0, cjf arg1)
setByPlayer(ItemStack arg0, ItemStack arg1)
method_48931(class_1799 arg0, class_1799 arg1)
setStack(ItemStack stack, ItemStack previousStack)
m_269206_(C_1391_ p_301385_, C_1391_ arg1)
public void
e(cjf arg0)
set(ItemStack arg0)
method_7673(class_1799 arg0)
setStackNoCallbacks(ItemStack stack)
m_5852_(C_1391_ arg0)
public void
d()
setChanged()
method_7668()
markDirty()
m_6654_()
public int
a()
getMaxStackSize()
method_7675()
getMaxItemCount()
m_6641_()
public int
a_(cjf arg0)
getMaxStackSize(ItemStack arg0)
method_7676(class_1799 arg0)
getMaxItemCount(ItemStack stack)
m_5866_(C_1391_ arg0)
public com.mojang.datafixers.util.Pair<ResourceLocation, ResourceLocation>
b()
getNoItemIcon()
method_7679()
getBackgroundSprite()
m_7543_()
public ItemStack
a(int arg0)
remove(int arg0)
method_7671(int arg0)
takeStack(int amount)
m_6201_(int arg0)
public boolean
a(cbu arg0)
mayPickup(Player arg0)
method_7674(class_1657 arg0)
canTakeItems(PlayerEntity playerEntity)
m_8010_(C_1141_ arg0)
public boolean
c()
isActive()
method_7682()
isEnabled()
m_6659_()
public Optional<ItemStack>
a(int arg0, int arg1, cbu arg2)
tryRemove(int arg0, int arg1, Player arg2)
method_34264(int arg0, int arg1, class_1657 arg2)
tryTakeStackRange(int min, int max, PlayerEntity player)
m_150641_(int p_150643_, int p_150644_, C_1141_ arg2)
public ItemStack
b(int arg0, int arg1, cbu arg2)
safeTake(int arg0, int arg1, Player arg2)
method_32753(int arg0, int arg1, class_1657 arg2)
takeStackRange(int min, int max, PlayerEntity player)
m_150647_(int p_150649_, int p_150650_, C_1141_ arg2)
public ItemStack
f(cjf arg0)
safeInsert(ItemStack arg0)
method_32756(class_1799 arg0)
insertStack(ItemStack stack)
m_150659_(C_1391_ arg0)
public ItemStack
b(cjf arg0, int arg1)
safeInsert(ItemStack arg0, int arg1)
method_32755(class_1799 arg0, int arg1)
insertStack(ItemStack stack, int count)
m_150656_(C_1391_ p_150658_, int arg1)
public boolean
b(cbu arg0)
allowModification(Player arg0)
method_32754(class_1657 arg0)
canTakePartial(PlayerEntity player)
m_150651_(C_1141_ arg0)
public int
g()
getContainerSlot()
method_34266()
getIndex()
m_150661_()
public boolean
h()
isHighlightable()
method_51306()
canBeHighlighted()
m_280329_()