Class DispenserBlockEntity

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

public class DispenserBlockEntity
extends LockableContainerBlockEntity
implements Inventory
Mappings:
Namespace Name
official alc
intermediary net/minecraft/class_355
named net/minecraft/block/entity/DispenserBlockEntity
  • Field Details

    • RANDOM

      private static final Random RANDOM
      Mappings:
      Namespace Name Mixin selector
      official f Lalc;f:Ljava/util/Random;
      intermediary field_1423 Lnet/minecraft/class_355;field_1423:Ljava/util/Random;
      named RANDOM Lnet/minecraft/block/entity/DispenserBlockEntity;RANDOM:Ljava/util/Random;
    • field_1424

      private ItemStack[] field_1424
      Mappings:
      Namespace Name Mixin selector
      official g Lalc;g:[Lzx;
      intermediary field_1424 Lnet/minecraft/class_355;field_1424:[Lnet/minecraft/class_2056;
      named field_1424 Lnet/minecraft/block/entity/DispenserBlockEntity;field_1424:[Lnet/minecraft/item/ItemStack;
    • customName

      protected String customName
      Mappings:
      Namespace Name Mixin selector
      official a Lalc;a:Ljava/lang/String;
      intermediary field_1422 Lnet/minecraft/class_355;field_1422:Ljava/lang/String;
      named customName Lnet/minecraft/block/entity/DispenserBlockEntity;customName:Ljava/lang/String;
  • Constructor Details

    • DispenserBlockEntity

      public DispenserBlockEntity()
  • Method Details

    • getInvSize

      public int getInvSize()
      Specified by:
      getInvSize in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official o_ Log;o_()I
      intermediary method_6748 Lnet/minecraft/class_1718;method_6748()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • getInvStack

      public ItemStack getInvStack​(int slot)
      Specified by:
      getInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Log;a(I)Lzx;
      intermediary method_6736 Lnet/minecraft/class_1718;method_6736(I)Lnet/minecraft/class_2056;
      named getInvStack Lnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
    • takeInvStack

      public ItemStack takeInvStack​(int slot, int amount)
      Specified by:
      takeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Log;a(II)Lzx;
      intermediary method_6737 Lnet/minecraft/class_1718;method_6737(II)Lnet/minecraft/class_2056;
      named takeInvStack Lnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
    • removeInvStack

      public ItemStack removeInvStack​(int slot)
      Specified by:
      removeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Log;b(I)Lzx;
      intermediary method_6741 Lnet/minecraft/class_1718;method_6741(I)Lnet/minecraft/class_2056;
      named removeInvStack Lnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
    • chooseNonEmptySlot

      public int chooseNonEmptySlot()
      Mappings:
      Namespace Name Mixin selector
      official m Lalc;m()I
      intermediary method_1133 Lnet/minecraft/class_355;method_1133()I
      named chooseNonEmptySlot Lnet/minecraft/block/entity/DispenserBlockEntity;chooseNonEmptySlot()I
    • setInvStack

      public void setInvStack​(int slot, ItemStack stack)
      Specified by:
      setInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Log;a(ILzx;)V
      intermediary method_6738 Lnet/minecraft/class_1718;method_6738(ILnet/minecraft/class_2056;)V
      named setInvStack Lnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
    • method_1132

      public int method_1132​(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lalc;a(Lzx;)I
      intermediary method_1132 Lnet/minecraft/class_355;method_1132(Lnet/minecraft/class_2056;)I
      named method_1132 Lnet/minecraft/block/entity/DispenserBlockEntity;method_1132(Lnet/minecraft/item/ItemStack;)I
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official e_ Lop;e_()Ljava/lang/String;
      intermediary method_6261 Lnet/minecraft/class_1726;method_6261()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/text/Nameable;getTranslationKey()Ljava/lang/String;
    • method_1131

      public void method_1131​(String string)
      Mappings:
      Namespace Name Mixin selector
      official a Lalc;a(Ljava/lang/String;)V
      intermediary method_1131 Lnet/minecraft/class_355;method_1131(Ljava/lang/String;)V
      named method_1131 Lnet/minecraft/block/entity/DispenserBlockEntity;method_1131(Ljava/lang/String;)V
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official l_ Lop;l_()Z
      intermediary method_6770 Lnet/minecraft/class_1726;method_6770()Z
      named hasCustomName Lnet/minecraft/text/Nameable;hasCustomName()Z
    • fromTag

      public void fromTag​(CompoundTag tag)
      Overrides:
      fromTag in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Ldn;)V
      intermediary method_1098 Lnet/minecraft/class_348;method_1098(Lnet/minecraft/class_1405;)V
      named fromTag Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • toTag

      public void toTag​(CompoundTag tag)
      Overrides:
      toTag in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lakw;b(Ldn;)V
      intermediary method_1100 Lnet/minecraft/class_348;method_1100(Lnet/minecraft/class_1405;)V
      named toTag Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)V
    • getInvMaxStackAmount

      public int getInvMaxStackAmount()
      Specified by:
      getInvMaxStackAmount in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official q_ Log;q_()I
      intermediary method_6749 Lnet/minecraft/class_1718;method_6749()I
      named getInvMaxStackAmount Lnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
    • canPlayerUseInv

      public boolean canPlayerUseInv​(PlayerEntity player)
      Specified by:
      canPlayerUseInv in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Log;a(Lwn;)Z
      intermediary method_6739 Lnet/minecraft/class_1718;method_6739(Lnet/minecraft/class_1963;)Z
      named canPlayerUseInv Lnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • onInvOpen

      public void onInvOpen​(PlayerEntity player)
      Specified by:
      onInvOpen in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Log;b(Lwn;)V
      intermediary method_6744 Lnet/minecraft/class_1718;method_6744(Lnet/minecraft/class_1963;)V
      named onInvOpen Lnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
    • onInvClose

      public void onInvClose​(PlayerEntity player)
      Specified by:
      onInvClose in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c Log;c(Lwn;)V
      intermediary method_6745 Lnet/minecraft/class_1718;method_6745(Lnet/minecraft/class_1963;)V
      named onInvClose Lnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
    • isValidInvStack

      public boolean isValidInvStack​(int slot, ItemStack stack)
      Specified by:
      isValidInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Log;b(ILzx;)Z
      intermediary method_6743 Lnet/minecraft/class_1718;method_6743(ILnet/minecraft/class_2056;)Z
      named isValidInvStack Lnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
    • getId

      public String getId()
      Specified by:
      getId in interface NamedScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official k Lol;k()Ljava/lang/String;
      intermediary method_6762 Lnet/minecraft/class_1723;method_6762()Ljava/lang/String;
      named getId Lnet/minecraft/screen/NamedScreenHandlerFactory;getId()Ljava/lang/String;
    • createScreenHandler

      public ScreenHandler createScreenHandler​(PlayerInventory inventory, PlayerEntity player)
      Specified by:
      createScreenHandler in interface NamedScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official a Lol;a(Lwm;Lwn;)Lxi;
      intermediary method_6761 Lnet/minecraft/class_1723;method_6761(Lnet/minecraft/class_1962;Lnet/minecraft/class_1963;)Lnet/minecraft/class_1983;
      named createScreenHandler Lnet/minecraft/screen/NamedScreenHandlerFactory;createScreenHandler(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
    • getProperty

      public int getProperty​(int key)
      Specified by:
      getProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a_ Log;a_(I)I
      intermediary method_6740 Lnet/minecraft/class_1718;method_6740(I)I
      named getProperty Lnet/minecraft/inventory/Inventory;getProperty(I)I
    • setProperty

      public void setProperty​(int id, int value)
      Specified by:
      setProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Log;b(II)V
      intermediary method_6742 Lnet/minecraft/class_1718;method_6742(II)V
      named setProperty Lnet/minecraft/inventory/Inventory;setProperty(II)V
    • getProperties

      public int getProperties()
      Specified by:
      getProperties in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official g Log;g()I
      intermediary method_6746 Lnet/minecraft/class_1718;method_6746()I
      named getProperties Lnet/minecraft/inventory/Inventory;getProperties()I
    • clear

      public void clear()
      Specified by:
      clear in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official l Log;l()V
      intermediary method_6747 Lnet/minecraft/class_1718;method_6747()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V