Class Slot

java.lang.Object
net.minecraft.inventory.slot.Slot
Direct Known Subclasses:
BeaconScreenHandler.PaymentSlot, BrewingScreenHandler.FuelSlot, BrewingScreenHandler.PotionSlot, CraftingResultSlot, CreativeInventoryScreen.CreativeInventorySlot, FurnaceFuelSlot, FurnaceOutputSlot, TradeOutputSlot

public class Slot
extends Object
Mappings:
Namespace Name
official yg
intermediary net/minecraft/class_2010
named net/minecraft/inventory/slot/Slot
  • Field Details

    • invSlot

      private final int invSlot
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a:I
      intermediary field_8525 Lnet/minecraft/class_2010;field_8525:I
      named invSlot Lnet/minecraft/inventory/slot/Slot;invSlot:I
    • inventory

      public final Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      official d Lyg;d:Log;
      intermediary field_8526 Lnet/minecraft/class_2010;field_8526:Lnet/minecraft/class_1718;
      named inventory Lnet/minecraft/inventory/slot/Slot;inventory:Lnet/minecraft/inventory/Inventory;
    • id

      public int id
      Mappings:
      Namespace Name Mixin selector
      official e Lyg;e:I
      intermediary field_8527 Lnet/minecraft/class_2010;field_8527:I
      named id Lnet/minecraft/inventory/slot/Slot;id:I
    • xPosition

      public int xPosition
      Mappings:
      Namespace Name Mixin selector
      official f Lyg;f:I
      intermediary field_8528 Lnet/minecraft/class_2010;field_8528:I
      named xPosition Lnet/minecraft/inventory/slot/Slot;xPosition:I
    • yPosition

      public int yPosition
      Mappings:
      Namespace Name Mixin selector
      official g Lyg;g:I
      intermediary field_8529 Lnet/minecraft/class_2010;field_8529:I
      named yPosition Lnet/minecraft/inventory/slot/Slot;yPosition:I
  • Constructor Details

    • Slot

      public Slot​(Inventory inventory, int invSlot, int xPosition, int yPosition)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyg;<init>(Log;III)V
      intermediary <init> Lnet/minecraft/class_2010;<init>(Lnet/minecraft/class_1718;III)V
      named <init> Lnet/minecraft/inventory/slot/Slot;<init>(Lnet/minecraft/inventory/Inventory;III)V
  • Method Details

    • onStackChanged

      public void onStackChanged​(ItemStack originalItem, ItemStack newItem)
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a(Lzx;Lzx;)V
      intermediary method_8160 Lnet/minecraft/class_2010;method_8160(Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;)V
      named onStackChanged Lnet/minecraft/inventory/slot/Slot;onStackChanged(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
    • onCrafted

      protected void onCrafted​(ItemStack stack, int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a(Lzx;I)V
      intermediary method_8159 Lnet/minecraft/class_2010;method_8159(Lnet/minecraft/class_2056;I)V
      named onCrafted Lnet/minecraft/inventory/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;I)V
    • onCrafted

      protected void onCrafted​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lyg;c(Lzx;)V
      intermediary method_8164 Lnet/minecraft/class_2010;method_8164(Lnet/minecraft/class_2056;)V
      named onCrafted Lnet/minecraft/inventory/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;)V
    • onTakeItem

      public void onTakeItem​(PlayerEntity player, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a(Lwn;Lzx;)V
      intermediary method_8157 Lnet/minecraft/class_2010;method_8157(Lnet/minecraft/class_1963;Lnet/minecraft/class_2056;)V
      named onTakeItem Lnet/minecraft/inventory/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
    • canInsert

      public boolean canInsert​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a(Lzx;)Z
      intermediary method_8158 Lnet/minecraft/class_2010;method_8158(Lnet/minecraft/class_2056;)Z
      named canInsert Lnet/minecraft/inventory/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
    • getStack

      public ItemStack getStack()
      Mappings:
      Namespace Name Mixin selector
      official d Lyg;d()Lzx;
      intermediary method_8165 Lnet/minecraft/class_2010;method_8165()Lnet/minecraft/class_2056;
      named getStack Lnet/minecraft/inventory/slot/Slot;getStack()Lnet/minecraft/item/ItemStack;
    • hasStack

      public boolean hasStack()
      Mappings:
      Namespace Name Mixin selector
      official e Lyg;e()Z
      intermediary method_8167 Lnet/minecraft/class_2010;method_8167()Z
      named hasStack Lnet/minecraft/inventory/slot/Slot;hasStack()Z
    • setStack

      public void setStack​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official d Lyg;d(Lzx;)V
      intermediary method_8166 Lnet/minecraft/class_2010;method_8166(Lnet/minecraft/class_2056;)V
      named setStack Lnet/minecraft/inventory/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;)V
    • markDirty

      public void markDirty()
      Mappings:
      Namespace Name Mixin selector
      official f Lyg;f()V
      intermediary method_8168 Lnet/minecraft/class_2010;method_8168()V
      named markDirty Lnet/minecraft/inventory/slot/Slot;markDirty()V
    • getMaxStackAmount

      public int getMaxStackAmount()
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a()I
      intermediary method_8153 Lnet/minecraft/class_2010;method_8153()I
      named getMaxStackAmount Lnet/minecraft/inventory/slot/Slot;getMaxStackAmount()I
    • getMaxStackAmount

      public int getMaxStackAmount​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lyg;b(Lzx;)I
      intermediary method_8162 Lnet/minecraft/class_2010;method_8162(Lnet/minecraft/class_2056;)I
      named getMaxStackAmount Lnet/minecraft/inventory/slot/Slot;getMaxStackAmount(Lnet/minecraft/item/ItemStack;)I
    • method_8163

      @Environment(CLIENT) public String method_8163()
      Mappings:
      Namespace Name Mixin selector
      official c Lyg;c()Ljava/lang/String;
      intermediary method_8163 Lnet/minecraft/class_2010;method_8163()Ljava/lang/String;
      named method_8163 Lnet/minecraft/inventory/slot/Slot;method_8163()Ljava/lang/String;
    • takeStack

      public ItemStack takeStack​(int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a(I)Lzx;
      intermediary method_8154 Lnet/minecraft/class_2010;method_8154(I)Lnet/minecraft/class_2056;
      named takeStack Lnet/minecraft/inventory/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
    • method_8155

      public boolean method_8155​(Inventory inventory, int slot)
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a(Log;I)Z
      intermediary method_8155 Lnet/minecraft/class_2010;method_8155(Lnet/minecraft/class_1718;I)Z
      named method_8155 Lnet/minecraft/inventory/slot/Slot;method_8155(Lnet/minecraft/inventory/Inventory;I)Z
    • canTakeItems

      public boolean canTakeItems​(PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lyg;a(Lwn;)Z
      intermediary method_8156 Lnet/minecraft/class_2010;method_8156(Lnet/minecraft/class_1963;)Z
      named canTakeItems Lnet/minecraft/inventory/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • doDrawHoveringEffect

      @Environment(CLIENT) public boolean doDrawHoveringEffect()
      Mappings:
      Namespace Name Mixin selector
      official b Lyg;b()Z
      intermediary method_8161 Lnet/minecraft/class_2010;method_8161()Z
      named doDrawHoveringEffect Lnet/minecraft/inventory/slot/Slot;doDrawHoveringEffect()Z