Class Slot

java.lang.Object
net.minecraft.screen.slot.Slot
Direct Known Subclasses:
CraftingResultSlot, FurnaceOutputSlot

public class Slot extends Object
Mappings:
Namespace Name
intermediary net/minecraft/class_133
glue class_170
server el
client gp
named net/minecraft/screen/slot/Slot
  • Field Details

    • index

      private final int index
      Mappings:
      Namespace Name Mixin selector
      intermediary field_502 Lnet/minecraft/class_133;field_502:I
      glue field_713 Lclass_170;field_713:I
      server d Lel;d:I
      client d Lgp;d:I
      named index Lnet/minecraft/screen/slot/Slot;index:I
    • inventory

      private final Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      intermediary field_503 Lnet/minecraft/class_133;field_503:Lnet/minecraft/class_134;
      glue field_714 Lclass_170;field_714:Lclass_287;
      server e Lel;e:Lhp;
      client e Lgp;e:Llw;
      named inventory Lnet/minecraft/screen/slot/Slot;inventory:Lnet/minecraft/inventory/Inventory;
    • id

      public int id
      Mappings:
      Namespace Name Mixin selector
      intermediary field_499 Lnet/minecraft/class_133;field_499:I
      glue field_710 Lclass_170;field_710:I
      server a Lel;a:I
      client a Lgp;a:I
      named id Lnet/minecraft/screen/slot/Slot;id:I
    • x

      public int x
      Mappings:
      Namespace Name Mixin selector
      intermediary field_500 Lnet/minecraft/class_133;field_500:I
      glue field_711 Lclass_170;field_711:I
      server b Lel;b:I
      client b Lgp;b:I
      named x Lnet/minecraft/screen/slot/Slot;x:I
    • y

      public int y
      Mappings:
      Namespace Name Mixin selector
      intermediary field_501 Lnet/minecraft/class_133;field_501:I
      glue field_712 Lclass_170;field_712:I
      server c Lel;c:I
      client c Lgp;c:I
      named y Lnet/minecraft/screen/slot/Slot;y:I
  • Constructor Details

    • Slot

      public Slot(Inventory inventory, int index, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_133;<init>(Lnet/minecraft/class_134;III)V
      glue <init> Lclass_170;<init>(Lclass_287;III)V
      server <init> Lel;<init>(Lhp;III)V
      client <init> Lgp;<init>(Llw;III)V
      named <init> Lnet/minecraft/screen/slot/Slot;<init>(Lnet/minecraft/inventory/Inventory;III)V
  • Method Details

    • onTakeItem

      public void onTakeItem(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_474 Lnet/minecraft/class_133;method_474(Lnet/minecraft/class_31;)V
      glue method_810 Lclass_170;method_810(Lclass_224;)V
      server a Lel;a(Lfy;)V
      client a Lgp;a(Liz;)V
      named onTakeItem Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/item/ItemStack;)V
    • canInsert

      public boolean canInsert(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_477 Lnet/minecraft/class_133;method_477(Lnet/minecraft/class_31;)Z
      glue method_813 Lclass_170;method_813(Lclass_224;)Z
      server b Lel;b(Lfy;)Z
      client b Lgp;b(Liz;)Z
      named canInsert Lnet/minecraft/screen/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
    • getStack

      public ItemStack getStack()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_472 Lnet/minecraft/class_133;method_472()Lnet/minecraft/class_31;
      glue method_808 Lclass_170;method_808()Lclass_224;
      server a Lel;a()Lfy;
      client a Lgp;a()Liz;
      named getStack Lnet/minecraft/screen/slot/Slot;getStack()Lnet/minecraft/item/ItemStack;
    • hasStack

      public boolean hasStack()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_476 Lnet/minecraft/class_133;method_476()Z
      glue method_812 Lclass_170;method_812()Z
      server b Lel;b()Z
      client b Lgp;b()Z
      named hasStack Lnet/minecraft/screen/slot/Slot;hasStack()Z
    • setStack

      public void setStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_479 Lnet/minecraft/class_133;method_479(Lnet/minecraft/class_31;)V
      glue method_815 Lclass_170;method_815(Lclass_224;)V
      server c Lel;c(Lfy;)V
      client c Lgp;c(Liz;)V
      named setStack Lnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;)V
    • markDirty

      public void markDirty()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_478 Lnet/minecraft/class_133;method_478()V
      glue method_814 Lclass_170;method_814()V
      server c Lel;c()V
      client c Lgp;c()V
      named markDirty Lnet/minecraft/screen/slot/Slot;markDirty()V
    • getMaxItemCount

      public int getMaxItemCount()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_480 Lnet/minecraft/class_133;method_480()I
      glue method_816 Lclass_170;method_816()I
      server d Lel;d()I
      client d Lgp;d()I
      named getMaxItemCount Lnet/minecraft/screen/slot/Slot;getMaxItemCount()I
    • getBackgroundTextureId

      @Environment(CLIENT) public int getBackgroundTextureId()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_471 Lnet/minecraft/class_133;method_471()I
      glue method_1156 Lclass_170;method_1156()I
      server method_471 Lel;method_471()I
      client e Lgp;e()I
      named getBackgroundTextureId Lnet/minecraft/screen/slot/Slot;getBackgroundTextureId()I
    • takeStack

      public ItemStack takeStack(int amount)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_473 Lnet/minecraft/class_133;method_473(I)Lnet/minecraft/class_31;
      glue method_809 Lclass_170;method_809(I)Lclass_224;
      server a Lel;a(I)Lfy;
      client a Lgp;a(I)Liz;
      named takeStack Lnet/minecraft/screen/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
    • equals

      @Environment(SERVER) public boolean equals(Inventory inventory, int index)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_475 Lnet/minecraft/class_133;method_475(Lnet/minecraft/class_134;I)Z
      glue method_811 Lclass_170;method_811(Lclass_287;I)Z
      server a Lel;a(Lhp;I)Z
      client method_475 Lgp;method_475(Llw;I)Z
      named equals Lnet/minecraft/screen/slot/Slot;equals(Lnet/minecraft/inventory/Inventory;I)Z