Class DispenserBlockEntity

All Implemented Interfaces:
LockableScreenHandlerFactory, class_2964, Inventory, NamedScreenHandlerFactory, Nameable
Direct Known Subclasses:
DropperBlockEntity

public class DispenserBlockEntity extends class_2737
Mappings:
Namespace Name
official asi
intermediary net/minecraft/class_218
named net/minecraft/block/entity/DispenserBlockEntity
  • Field Details

    • RANDOM

      private static final Random RANDOM
      Mappings:
      Namespace Name Mixin selector
      official a Lasi;a:Ljava/util/Random;
      intermediary field_9852 Lnet/minecraft/class_218;field_9852:Ljava/util/Random;
      named RANDOM Lnet/minecraft/block/entity/DispenserBlockEntity;RANDOM:Ljava/util/Random;
    • field_15153

      private DefaultedList<ItemStack> field_15153
      Mappings:
      Namespace Name Mixin selector
      official f Lasi;f:Ldd;
      intermediary field_15153 Lnet/minecraft/class_218;field_15153:Lnet/minecraft/class_3114;
      named field_15153 Lnet/minecraft/block/entity/DispenserBlockEntity;field_15153:Lnet/minecraft/util/collection/DefaultedList;
  • Constructor Details

    • DispenserBlockEntity

      public DispenserBlockEntity()
  • Method Details

    • getInvSize

      public int getInvSize()
      Mappings:
      Namespace Name Mixin selector
      official v_ Lrc;v_()I
      intermediary method_2388 Lnet/minecraft/class_849;method_2388()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official w_ Lrc;w_()Z
      intermediary method_13922 Lnet/minecraft/class_849;method_13922()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • chooseNonEmptySlot

      public int chooseNonEmptySlot()
      Mappings:
      Namespace Name Mixin selector
      official o Lasi;o()I
      intermediary method_515 Lnet/minecraft/class_218;method_515()I
      named chooseNonEmptySlot Lnet/minecraft/block/entity/DispenserBlockEntity;chooseNonEmptySlot()I
    • method_514

      public int method_514(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lasi;a(Lafj;)I
      intermediary method_514 Lnet/minecraft/class_218;method_514(Lnet/minecraft/class_1071;)I
      named method_514 Lnet/minecraft/block/entity/DispenserBlockEntity;method_514(Lnet/minecraft/item/ItemStack;)I
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official h_ Lrp;h_()Ljava/lang/String;
      intermediary method_2518 Lnet/minecraft/class_2611;method_2518()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/text/Nameable;getTranslationKey()Ljava/lang/String;
    • method_13326

      public static void method_13326(class_2934 class_2934)
      Mappings:
      Namespace Name Mixin selector
      official a Lasi;a(Lph;)V
      intermediary method_13326 Lnet/minecraft/class_218;method_13326(Lnet/minecraft/class_2934;)V
      named method_13326 Lnet/minecraft/block/entity/DispenserBlockEntity;method_13326(Lnet/minecraft/class_2934;)V
    • fromNbt

      public void fromNbt(NbtCompound nbt)
      Overrides:
      fromNbt in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lasc;a(Ldu;)V
      intermediary method_537 Lnet/minecraft/class_226;method_537(Lnet/minecraft/class_322;)V
      named fromNbt Lnet/minecraft/block/entity/BlockEntity;fromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • method_541

      public NbtCompound method_541(NbtCompound nbtCompound)
      Overrides:
      method_541 in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lasc;b(Ldu;)Ldu;
      intermediary method_541 Lnet/minecraft/class_226;method_541(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;
      named method_541 Lnet/minecraft/block/entity/BlockEntity;method_541(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • getInvMaxStackAmount

      public int getInvMaxStackAmount()
      Mappings:
      Namespace Name Mixin selector
      official y_ Lrc;y_()I
      intermediary method_2389 Lnet/minecraft/class_849;method_2389()I
      named getInvMaxStackAmount Lnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
    • getId

      public String getId()
      Mappings:
      Namespace Name Mixin selector
      official l Lrj;l()Ljava/lang/String;
      intermediary method_10906 Lnet/minecraft/class_2608;method_10906()Ljava/lang/String;
      named getId Lnet/minecraft/screen/NamedScreenHandlerFactory;getId()Ljava/lang/String;
    • createScreenHandler

      public ScreenHandler createScreenHandler(PlayerInventory inventory, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lrj;a(Laax;Laay;)Lacl;
      intermediary method_10905 Lnet/minecraft/class_2608;method_10905(Lnet/minecraft/class_987;Lnet/minecraft/class_988;)Lnet/minecraft/class_1002;
      named createScreenHandler Lnet/minecraft/screen/NamedScreenHandlerFactory;createScreenHandler(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
    • method_13730

      protected DefaultedList<ItemStack> method_13730()
      Specified by:
      method_13730 in class class_2737
      Mappings:
      Namespace Name Mixin selector
      official q Last;q()Ldd;
      intermediary method_13730 Lnet/minecraft/class_2737;method_13730()Lnet/minecraft/class_3114;
      named method_13730 Lnet/minecraft/block/entity/class_2737;method_13730()Lnet/minecraft/util/collection/DefaultedList;