Class CraftingResultSlot

java.lang.Object
net.minecraft.inventory.slot.Slot
net.minecraft.inventory.slot.CraftingResultSlot

public class CraftingResultSlot
extends Slot
Mappings:
Namespace Name
official yf
intermediary net/minecraft/class_2009
named net/minecraft/inventory/slot/CraftingResultSlot
  • Field Details

    • craftingInv

      private final CraftingInventory craftingInv
      Mappings:
      Namespace Name Mixin selector
      official a Lyf;a:Lxp;
      intermediary field_8522 Lnet/minecraft/class_2009;field_8522:Lnet/minecraft/class_1993;
      named craftingInv Lnet/minecraft/inventory/slot/CraftingResultSlot;craftingInv:Lnet/minecraft/inventory/CraftingInventory;
    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official b Lyf;b:Lwn;
      intermediary field_8523 Lnet/minecraft/class_2009;field_8523:Lnet/minecraft/class_1963;
      named player Lnet/minecraft/inventory/slot/CraftingResultSlot;player:Lnet/minecraft/entity/player/PlayerEntity;
    • amount

      private int amount
      Mappings:
      Namespace Name Mixin selector
      official c Lyf;c:I
      intermediary field_8524 Lnet/minecraft/class_2009;field_8524:I
      named amount Lnet/minecraft/inventory/slot/CraftingResultSlot;amount:I
  • Constructor Details

    • CraftingResultSlot

      public CraftingResultSlot​(PlayerEntity player, CraftingInventory craftingInv, Inventory inventory, int invSlot, int xPosition, int yPosition)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyf;<init>(Lwn;Lxp;Log;III)V
      intermediary <init> Lnet/minecraft/class_2009;<init>(Lnet/minecraft/class_1963;Lnet/minecraft/class_1993;Lnet/minecraft/class_1718;III)V
      named <init> Lnet/minecraft/inventory/slot/CraftingResultSlot;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/CraftingInventory;Lnet/minecraft/inventory/Inventory;III)V
  • Method Details

    • canInsert

      public boolean canInsert​(ItemStack stack)
      Overrides:
      canInsert in class Slot
      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
    • takeStack

      public ItemStack takeStack​(int amount)
      Overrides:
      takeStack in class Slot
      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;
    • onCrafted

      protected void onCrafted​(ItemStack stack, int amount)
      Overrides:
      onCrafted in class Slot
      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)
      Overrides:
      onCrafted in class Slot
      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)
      Overrides:
      onTakeItem in class Slot
      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