Package net.minecraft.screen.slot
Class Slot
java.lang.Object
net.minecraft.screen.slot.Slot
- Direct Known Subclasses:
BeaconScreenHandler.PaymentSlot
,BrewingStandScreenHandler.FuelSlot
,BrewingStandScreenHandler.IngredientSlot
,BrewingStandScreenHandler.PotionSlot
,CraftingResultSlot
,CreativeInventoryScreen.CreativeSlot
,CreativeInventoryScreen.LockableSlot
,FurnaceFuelSlot
,FurnaceOutputSlot
,ShulkerBoxSlot
,TradeOutputSlot
public class Slot extends Object
- Mappings:
Namespace Name official blh
intermediary net/minecraft/class_1735
named net/minecraft/screen/slot/Slot
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
canInsert(ItemStack stack)
boolean
canTakeItems(PlayerEntity playerEntity)
boolean
doDrawHoveringEffect()
com.mojang.datafixers.util.Pair<Identifier,Identifier>
getBackgroundSprite()
int
getMaxItemCount()
int
getMaxItemCount(ItemStack stack)
ItemStack
getStack()
boolean
hasStack()
void
markDirty()
ItemStack
method_32753(int int2, int int3, PlayerEntity playerEntity)
boolean
method_32754(PlayerEntity playerEntity)
ItemStack
method_32755(ItemStack itemStack, int int2)
ItemStack
method_32756(ItemStack itemStack)
protected void
onCrafted(ItemStack stack)
protected void
onCrafted(ItemStack stack, int amount)
void
onStackChanged(ItemStack originalItem, ItemStack newItem)
protected void
onTake(int amount)
ItemStack
onTakeItem(PlayerEntity player, ItemStack stack)
void
setStack(ItemStack stack)
ItemStack
takeStack(int amount)
-
Field Details
-
index
private final int index- Mappings:
Namespace Name Mixin selector official a
Lblh;a:I
intermediary field_7875
Lnet/minecraft/class_1735;field_7875:I
named index
Lnet/minecraft/screen/slot/Slot;index:I
-
inventory
- Mappings:
Namespace Name Mixin selector official c
Lblh;c:Lapj;
intermediary field_7871
Lnet/minecraft/class_1735;field_7871:Lnet/minecraft/class_1263;
named inventory
Lnet/minecraft/screen/slot/Slot;inventory:Lnet/minecraft/inventory/Inventory;
-
id
public int id- Mappings:
Namespace Name Mixin selector official d
Lblh;d:I
intermediary field_7874
Lnet/minecraft/class_1735;field_7874:I
named id
Lnet/minecraft/screen/slot/Slot;id:I
-
x
public final int x- Mappings:
Namespace Name Mixin selector official e
Lblh;e:I
intermediary field_7873
Lnet/minecraft/class_1735;field_7873:I
named x
Lnet/minecraft/screen/slot/Slot;x:I
-
y
public final int y- Mappings:
Namespace Name Mixin selector official f
Lblh;f:I
intermediary field_7872
Lnet/minecraft/class_1735;field_7872:I
named y
Lnet/minecraft/screen/slot/Slot;y:I
-
-
Constructor Details
-
Slot
- Mappings:
Namespace Name Mixin selector official <init>
Lblh;<init>(Lapj;III)V
intermediary <init>
Lnet/minecraft/class_1735;<init>(Lnet/minecraft/class_1263;III)V
named <init>
Lnet/minecraft/screen/slot/Slot;<init>(Lnet/minecraft/inventory/Inventory;III)V
-
-
Method Details
-
onStackChanged
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(Lbnv;Lbnv;)V
intermediary method_7670
Lnet/minecraft/class_1735;method_7670(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V
named onStackChanged
Lnet/minecraft/screen/slot/Slot;onStackChanged(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
-
onCrafted
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(Lbnv;I)V
intermediary method_7678
Lnet/minecraft/class_1735;method_7678(Lnet/minecraft/class_1799;I)V
named onCrafted
Lnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;I)V
-
onTake
protected void onTake(int amount)- Mappings:
Namespace Name Mixin selector official b
Lblh;b(I)V
intermediary method_7672
Lnet/minecraft/class_1735;method_7672(I)V
named onTake
Lnet/minecraft/screen/slot/Slot;onTake(I)V
-
onCrafted
- Mappings:
Namespace Name Mixin selector official c
Lblh;c(Lbnv;)V
intermediary method_7669
Lnet/minecraft/class_1735;method_7669(Lnet/minecraft/class_1799;)V
named onCrafted
Lnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;)V
-
onTakeItem
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(Lbhl;Lbnv;)Lbnv;
intermediary method_7667
Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
named onTakeItem
Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
canInsert
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(Lbnv;)Z
intermediary method_7680
Lnet/minecraft/class_1735;method_7680(Lnet/minecraft/class_1799;)Z
named canInsert
Lnet/minecraft/screen/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
-
getStack
- Mappings:
Namespace Name Mixin selector official e
Lblh;e()Lbnv;
intermediary method_7677
Lnet/minecraft/class_1735;method_7677()Lnet/minecraft/class_1799;
named getStack
Lnet/minecraft/screen/slot/Slot;getStack()Lnet/minecraft/item/ItemStack;
-
hasStack
public boolean hasStack()- Mappings:
Namespace Name Mixin selector official f
Lblh;f()Z
intermediary method_7681
Lnet/minecraft/class_1735;method_7681()Z
named hasStack
Lnet/minecraft/screen/slot/Slot;hasStack()Z
-
setStack
- Mappings:
Namespace Name Mixin selector official d
Lblh;d(Lbnv;)V
intermediary method_7673
Lnet/minecraft/class_1735;method_7673(Lnet/minecraft/class_1799;)V
named setStack
Lnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;)V
-
markDirty
public void markDirty()- Mappings:
Namespace Name Mixin selector official d
Lblh;d()V
intermediary method_7668
Lnet/minecraft/class_1735;method_7668()V
named markDirty
Lnet/minecraft/screen/slot/Slot;markDirty()V
-
getMaxItemCount
public int getMaxItemCount()- Mappings:
Namespace Name Mixin selector official a
Lblh;a()I
intermediary method_7675
Lnet/minecraft/class_1735;method_7675()I
named getMaxItemCount
Lnet/minecraft/screen/slot/Slot;getMaxItemCount()I
-
getMaxItemCount
- Mappings:
Namespace Name Mixin selector official b
Lblh;b(Lbnv;)I
intermediary method_7676
Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)I
named getMaxItemCount
Lnet/minecraft/screen/slot/Slot;getMaxItemCount(Lnet/minecraft/item/ItemStack;)I
-
getBackgroundSprite
@Environment(CLIENT) @Nullable public com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()- Mappings:
Namespace Name Mixin selector official c
Lblh;c()Lcom/mojang/datafixers/util/Pair;
intermediary method_7679
Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;
named getBackgroundSprite
Lnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
-
takeStack
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(I)Lbnv;
intermediary method_7671
Lnet/minecraft/class_1735;method_7671(I)Lnet/minecraft/class_1799;
named takeStack
Lnet/minecraft/screen/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
-
canTakeItems
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(Lbhl;)Z
intermediary method_7674
Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Z
named canTakeItems
Lnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
doDrawHoveringEffect
- Mappings:
Namespace Name Mixin selector official b
Lblh;b()Z
intermediary method_7682
Lnet/minecraft/class_1735;method_7682()Z
named doDrawHoveringEffect
Lnet/minecraft/screen/slot/Slot;doDrawHoveringEffect()Z
-
method_32753
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(IILbhl;)Lbnv;
intermediary method_32753
Lnet/minecraft/class_1735;method_32753(IILnet/minecraft/class_1657;)Lnet/minecraft/class_1799;
named method_32753
Lnet/minecraft/screen/slot/Slot;method_32753(IILnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
method_32756
- Mappings:
Namespace Name Mixin selector official e
Lblh;e(Lbnv;)Lbnv;
intermediary method_32756
Lnet/minecraft/class_1735;method_32756(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
named method_32756
Lnet/minecraft/screen/slot/Slot;method_32756(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
method_32755
- Mappings:
Namespace Name Mixin selector official b
Lblh;b(Lbnv;I)Lbnv;
intermediary method_32755
Lnet/minecraft/class_1735;method_32755(Lnet/minecraft/class_1799;I)Lnet/minecraft/class_1799;
named method_32755
Lnet/minecraft/screen/slot/Slot;method_32755(Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/item/ItemStack;
-
method_32754
- Mappings:
Namespace Name Mixin selector official b
Lblh;b(Lbhl;)Z
intermediary method_32754
Lnet/minecraft/class_1735;method_32754(Lnet/minecraft/class_1657;)Z
named method_32754
Lnet/minecraft/screen/slot/Slot;method_32754(Lnet/minecraft/entity/player/PlayerEntity;)Z
-