Package net.minecraft

Class class_11033


public class class_11033 extends ScreenHandler
Mappings:
Namespace Name
named net/minecraft/class_11033
intermediary net/minecraft/class_11033
official cyt
  • Field Details

    • field_58755

      public static final int field_58755
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58755 Lnet/minecraft/class_11033;field_58755:I
      intermediary field_58755 Lnet/minecraft/class_11033;field_58755:I
      official m Lcyt;m:I
    • field_58756

      private static final int field_58756
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58756 Lnet/minecraft/class_11033;field_58756:I
      intermediary field_58756 Lnet/minecraft/class_11033;field_58756:I
      official n Lcyt;n:I
    • field_58757

      private static final int field_58757
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58757 Lnet/minecraft/class_11033;field_58757:I
      intermediary field_58757 Lnet/minecraft/class_11033;field_58757:I
      official o Lcyt;o:I
    • field_58758

      private static final int field_58758
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58758 Lnet/minecraft/class_11033;field_58758:I
      intermediary field_58758 Lnet/minecraft/class_11033;field_58758:I
      official p Lcyt;p:I
    • field_58759

      private static final int field_58759
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58759 Lnet/minecraft/class_11033;field_58759:I
      intermediary field_58759 Lnet/minecraft/class_11033;field_58759:I
      official q Lcyt;q:I
    • field_58760

      private final Inventory field_58760
      Mappings:
      Namespace Name Mixin selector
      named field_58760 Lnet/minecraft/class_11033;field_58760:Lnet/minecraft/inventory/Inventory;
      intermediary field_58760 Lnet/minecraft/class_11033;field_58760:Lnet/minecraft/class_1263;
      official r Lcyt;r:Lbvu;
    • field_58761

      private final ScreenHandlerContext field_58761
      Mappings:
      Namespace Name Mixin selector
      named field_58761 Lnet/minecraft/class_11033;field_58761:Lnet/minecraft/screen/ScreenHandlerContext;
      intermediary field_58761 Lnet/minecraft/class_11033;field_58761:Lnet/minecraft/class_3914;
      official s Lcyt;s:Lcyl;
  • Constructor Details

  • Method Details

    • onContentChanged

      public void onContentChanged(Inventory inventory)
      Called when a slot's content has changed.

      This is not called by default; subclasses that override this method should also use a custom Inventory whose markDirty method is overridden to call this method as a backing inventory of the slot.

      This can be used to update the output slot when input changes.

      Overrides:
      onContentChanged in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named onContentChanged Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
      intermediary method_7609 Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)V
      official a Lcxy;a(Lbvu;)V
    • method_69463

      private void method_69463()
      Mappings:
      Namespace Name Mixin selector
      named method_69463 Lnet/minecraft/class_11033;method_69463()V
      intermediary method_69463 Lnet/minecraft/class_11033;method_69463()V
      official m Lcyt;m()V
    • canUse

      public boolean canUse(PlayerEntity player)
      Returns whether the screen handler can be used.

      Subclasses should call #canUse(ScreenHandlerContext, PlayerEntity, Block)} or implement the check itself. The implementation should check that the player is near the screen handler's source position (e.g. block position) and that the source (e.g. block) is not destroyed.

      Specified by:
      canUse in class ScreenHandler
      Returns:
      whether the screen handler can be used
      Mappings:
      Namespace Name Mixin selector
      named canUse Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
      intermediary method_7597 Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
      official b Lcxy;b(Lcuf;)Z
    • quickMove

      public ItemStack quickMove(PlayerEntity player, int slot)
      Quick-moves the stack at slot to other slots of the screen handler that belong to a different inventory or another section of the same inventory. For example, items can be quick-moved between a chest's slots and the player inventory or between the main player inventory and the hotbar.

      Subclasses should call ScreenHandler.insertItem(net.minecraft.item.ItemStack, int, int, boolean), and if the insertion was successful, clear the slot (if the stack is exhausted) or mark it as dirty. See the vanilla subclasses for basic implementation.

      Quick-moving is also known as "shift-clicking" since it's usually triggered using Shift+left click.

      Specified by:
      quickMove in class ScreenHandler
      Parameters:
      slot - the index of the slot to quick-move from
      Returns:
      ItemStack.EMPTY when no stack can be transferred, otherwise the original stack
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named quickMove Lnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
      intermediary method_7601 Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
      official b Lcxy;b(Lcuf;I)Ldcs;