net.minecraft.world.inventory

public class Slot

boa
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
c
container
field_7871
inventory
f_40218_
public int
d
index
field_7874
id
f_40219_
public final int
e
x
field_7873
x
f_40220_
public final int
f
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
a(bqp arg0, bqp 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(bqp 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_(bqp arg0)
checkTakeAchievements(ItemStack arg0)
method_7669(class_1799 arg0)
onCrafted(ItemStack stack)
m_5845_(C_1391_ arg0)
public void
a(bkd arg0, bqp 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(bqp arg0)
mayPlace(ItemStack arg0)
method_7680(class_1799 arg0)
canInsert(ItemStack stack)
m_5857_(C_1391_ arg0)
isAllowed(ItemStack arg0)
public ItemStack
e()
getItem()
method_7677()
getStack()
m_7993_()
getItem()
public boolean
f()
hasItem()
method_7681()
hasStack()
m_6657_()
hasItem()
public void
d(bqp arg0)
set(ItemStack arg0)
method_7673(class_1799 arg0)
setStack(ItemStack stack)
m_5852_(C_1391_ arg0)
set(ItemStack arg0)
public void
d()
setChanged()
method_7668()
markDirty()
m_6654_()
public int
a()
getMaxStackSize()
method_7675()
getMaxItemCount()
m_6641_()
getMaxStackSize()
public int
a_(bqp arg0)
getMaxStackSize(ItemStack arg0)
method_7676(class_1799 arg0)
getMaxItemCount(ItemStack stack)
m_5866_(C_1391_ arg0)
getMaxStackSize(ItemStack arg0)
public com.mojang.datafixers.util.Pair<ResourceLocation, ResourceLocation>
c()
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(bkd arg0)
mayPickup(Player arg0)
method_7674(class_1657 arg0)
canTakeItems(PlayerEntity playerEntity)
m_8010_(C_1141_ arg0)
isAllowed(EntityHuman arg0)
public boolean
b()
isActive()
method_7682()
isEnabled()
m_6659_()
public Optional<ItemStack>
a(int arg0, int arg1, bkd 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, bkd 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
e(bqp arg0)
safeInsert(ItemStack arg0)
method_32756(class_1799 arg0)
insertStack(ItemStack stack)
m_150659_(C_1391_ arg0)
public ItemStack
b(bqp 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(bkd 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_()