Class LoomScreenHandler

java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.LoomScreenHandler

public class LoomScreenHandler
extends ScreenHandler
Mappings:
Namespace Name
official bks
intermediary net/minecraft/class_1726
named net/minecraft/screen/LoomScreenHandler
  • Field Details

    • context

      private final ScreenHandlerContext context
      Mappings:
      Namespace Name Mixin selector
      official c Lbks;c:Lbkc;
      intermediary field_17316 Lnet/minecraft/class_1726;field_17316:Lnet/minecraft/class_3914;
      named context Lnet/minecraft/screen/LoomScreenHandler;context:Lnet/minecraft/screen/ScreenHandlerContext;
    • selectedPattern

      private final Property selectedPattern
      Mappings:
      Namespace Name Mixin selector
      official d Lbks;d:Lbkg;
      intermediary field_17317 Lnet/minecraft/class_1726;field_17317:Lnet/minecraft/class_3915;
      named selectedPattern Lnet/minecraft/screen/LoomScreenHandler;selectedPattern:Lnet/minecraft/screen/Property;
    • inventoryChangeListener

      private Runnable inventoryChangeListener
      Mappings:
      Namespace Name Mixin selector
      official e Lbks;e:Ljava/lang/Runnable;
      intermediary field_17318 Lnet/minecraft/class_1726;field_17318:Ljava/lang/Runnable;
      named inventoryChangeListener Lnet/minecraft/screen/LoomScreenHandler;inventoryChangeListener:Ljava/lang/Runnable;
    • bannerSlot

      private final Slot bannerSlot
      Mappings:
      Namespace Name Mixin selector
      official f Lbks;f:Lblh;
      intermediary field_17319 Lnet/minecraft/class_1726;field_17319:Lnet/minecraft/class_1735;
      named bannerSlot Lnet/minecraft/screen/LoomScreenHandler;bannerSlot:Lnet/minecraft/screen/slot/Slot;
    • dyeSlot

      private final Slot dyeSlot
      Mappings:
      Namespace Name Mixin selector
      official g Lbks;g:Lblh;
      intermediary field_17320 Lnet/minecraft/class_1726;field_17320:Lnet/minecraft/class_1735;
      named dyeSlot Lnet/minecraft/screen/LoomScreenHandler;dyeSlot:Lnet/minecraft/screen/slot/Slot;
    • patternSlot

      private final Slot patternSlot
      Mappings:
      Namespace Name Mixin selector
      official h Lbks;h:Lblh;
      intermediary field_17321 Lnet/minecraft/class_1726;field_17321:Lnet/minecraft/class_1735;
      named patternSlot Lnet/minecraft/screen/LoomScreenHandler;patternSlot:Lnet/minecraft/screen/slot/Slot;
    • outputSlot

      private final Slot outputSlot
      Mappings:
      Namespace Name Mixin selector
      official i Lbks;i:Lblh;
      intermediary field_17322 Lnet/minecraft/class_1726;field_17322:Lnet/minecraft/class_1735;
      named outputSlot Lnet/minecraft/screen/LoomScreenHandler;outputSlot:Lnet/minecraft/screen/slot/Slot;
    • lastTakeResultTime

      private long lastTakeResultTime
      Mappings:
      Namespace Name Mixin selector
      official j Lbks;j:J
      intermediary field_20383 Lnet/minecraft/class_1726;field_20383:J
      named lastTakeResultTime Lnet/minecraft/screen/LoomScreenHandler;lastTakeResultTime:J
    • input

      private final Inventory input
      Mappings:
      Namespace Name Mixin selector
      official k Lbks;k:Lapj;
      intermediary field_7850 Lnet/minecraft/class_1726;field_7850:Lnet/minecraft/class_1263;
      named input Lnet/minecraft/screen/LoomScreenHandler;input:Lnet/minecraft/inventory/Inventory;
    • output

      private final Inventory output
      Mappings:
      Namespace Name Mixin selector
      official l Lbks;l:Lapj;
      intermediary field_17323 Lnet/minecraft/class_1726;field_17323:Lnet/minecraft/class_1263;
      named output Lnet/minecraft/screen/LoomScreenHandler;output:Lnet/minecraft/inventory/Inventory;
  • Constructor Details

    • LoomScreenHandler

      public LoomScreenHandler​(int syncId, PlayerInventory playerInventory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbks;<init>(ILbhk;)V
      intermediary <init> Lnet/minecraft/class_1726;<init>(ILnet/minecraft/class_1661;)V
      named <init> Lnet/minecraft/screen/LoomScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
    • LoomScreenHandler

      public LoomScreenHandler​(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbks;<init>(ILbhk;Lbkc;)V
      intermediary <init> Lnet/minecraft/class_1726;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V
      named <init> Lnet/minecraft/screen/LoomScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
  • Method Details

    • getSelectedPattern

      @Environment(CLIENT) public int getSelectedPattern()
      Mappings:
      Namespace Name Mixin selector
      official e Lbks;e()I
      intermediary method_7647 Lnet/minecraft/class_1726;method_7647()I
      named getSelectedPattern Lnet/minecraft/screen/LoomScreenHandler;getSelectedPattern()I
    • canUse

      public boolean canUse​(PlayerEntity player)
      Specified by:
      canUse in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lbjr;a(Lbhl;)Z
      intermediary method_7597 Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
      named canUse Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • onButtonClick

      public boolean onButtonClick​(PlayerEntity player, int id)
      Overrides:
      onButtonClick in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lbjr;a(Lbhl;I)Z
      intermediary method_7604 Lnet/minecraft/class_1703;method_7604(Lnet/minecraft/class_1657;I)Z
      named onButtonClick Lnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
    • onContentChanged

      public void onContentChanged​(Inventory inventory)
      Overrides:
      onContentChanged in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lbjr;a(Lapj;)V
      intermediary method_7609 Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)V
      named onContentChanged Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
    • setInventoryChangeListener

      @Environment(CLIENT) public void setInventoryChangeListener​(Runnable inventoryChangeListener)
      Mappings:
      Namespace Name Mixin selector
      official a Lbks;a(Ljava/lang/Runnable;)V
      intermediary method_17423 Lnet/minecraft/class_1726;method_17423(Ljava/lang/Runnable;)V
      named setInventoryChangeListener Lnet/minecraft/screen/LoomScreenHandler;setInventoryChangeListener(Ljava/lang/Runnable;)V
    • transferSlot

      public ItemStack transferSlot​(PlayerEntity player, int index)
      Overrides:
      transferSlot in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lbjr;b(Lbhl;I)Lbnv;
      intermediary method_7601 Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
      named transferSlot Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
    • close

      public void close​(PlayerEntity player)
      Overrides:
      close in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lbjr;b(Lbhl;)V
      intermediary method_7595 Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)V
      named close Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
    • updateOutputSlot

      private void updateOutputSlot()
      Mappings:
      Namespace Name Mixin selector
      official j Lbks;j()V
      intermediary method_7648 Lnet/minecraft/class_1726;method_7648()V
      named updateOutputSlot Lnet/minecraft/screen/LoomScreenHandler;updateOutputSlot()V
    • getBannerSlot

      @Environment(CLIENT) public Slot getBannerSlot()
      Mappings:
      Namespace Name Mixin selector
      official f Lbks;f()Lblh;
      intermediary method_17428 Lnet/minecraft/class_1726;method_17428()Lnet/minecraft/class_1735;
      named getBannerSlot Lnet/minecraft/screen/LoomScreenHandler;getBannerSlot()Lnet/minecraft/screen/slot/Slot;
    • getDyeSlot

      @Environment(CLIENT) public Slot getDyeSlot()
      Mappings:
      Namespace Name Mixin selector
      official g Lbks;g()Lblh;
      intermediary method_17429 Lnet/minecraft/class_1726;method_17429()Lnet/minecraft/class_1735;
      named getDyeSlot Lnet/minecraft/screen/LoomScreenHandler;getDyeSlot()Lnet/minecraft/screen/slot/Slot;
    • getPatternSlot

      @Environment(CLIENT) public Slot getPatternSlot()
      Mappings:
      Namespace Name Mixin selector
      official h Lbks;h()Lblh;
      intermediary method_17430 Lnet/minecraft/class_1726;method_17430()Lnet/minecraft/class_1735;
      named getPatternSlot Lnet/minecraft/screen/LoomScreenHandler;getPatternSlot()Lnet/minecraft/screen/slot/Slot;
    • getOutputSlot

      @Environment(CLIENT) public Slot getOutputSlot()
      Mappings:
      Namespace Name Mixin selector
      official i Lbks;i()Lblh;
      intermediary method_17431 Lnet/minecraft/class_1726;method_17431()Lnet/minecraft/class_1735;
      named getOutputSlot Lnet/minecraft/screen/LoomScreenHandler;getOutputSlot()Lnet/minecraft/screen/slot/Slot;