Class HopperBlockEntity

All Implemented Interfaces:
LockableScreenHandlerFactory, Inventory, NamedScreenHandlerFactory, Nameable, HopperProvider, Tickable

public class HopperBlockEntity extends LockableContainerBlockEntity implements HopperProvider, Tickable
Mappings:
Namespace Name
official bde
intermediary net/minecraft/class_1463
named net/minecraft/block/entity/HopperBlockEntity
  • Field Details

    • items

      private ItemStack[] items
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a:[Lamj;
      intermediary field_5660 Lnet/minecraft/class_1463;field_5660:[Lnet/minecraft/class_1071;
      named items Lnet/minecraft/block/entity/HopperBlockEntity;items:[Lnet/minecraft/item/ItemStack;
    • customName

      private String customName
      Mappings:
      Namespace Name Mixin selector
      official f Lbde;f:Ljava/lang/String;
      intermediary field_5661 Lnet/minecraft/class_1463;field_5661:Ljava/lang/String;
      named customName Lnet/minecraft/block/entity/HopperBlockEntity;customName:Ljava/lang/String;
    • transferCooldown

      private int transferCooldown
      Mappings:
      Namespace Name Mixin selector
      official g Lbde;g:I
      intermediary field_5662 Lnet/minecraft/class_1463;field_5662:I
      named transferCooldown Lnet/minecraft/block/entity/HopperBlockEntity;transferCooldown:I
  • Constructor Details

    • HopperBlockEntity

      public HopperBlockEntity()
  • Method Details

    • fromNbt

      public void fromNbt(NbtCompound nbt)
      Overrides:
      fromNbt in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbcm;a(Lfn;)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
    • toNbt

      public void toNbt(NbtCompound nbt)
      Overrides:
      toNbt in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbcm;b(Lfn;)V
      intermediary method_541 Lnet/minecraft/class_226;method_541(Lnet/minecraft/class_322;)V
      named toNbt Lnet/minecraft/block/entity/BlockEntity;toNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Overrides:
      markDirty in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official o_ Lbcm;o_()V
      intermediary method_543 Lnet/minecraft/class_226;method_543()V
      named markDirty Lnet/minecraft/block/entity/BlockEntity;markDirty()V
    • getInvSize

      public int getInvSize()
      Specified by:
      getInvSize in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official n_ Lvq;n_()I
      intermediary method_2388 Lnet/minecraft/class_849;method_2388()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 Lvq;a(I)Lamj;
      intermediary method_2381 Lnet/minecraft/class_849;method_2381(I)Lnet/minecraft/class_1071;
      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 Lvq;a(II)Lamj;
      intermediary method_2382 Lnet/minecraft/class_849;method_2382(II)Lnet/minecraft/class_1071;
      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 Lvq;b(I)Lamj;
      intermediary method_2386 Lnet/minecraft/class_849;method_2386(I)Lnet/minecraft/class_1071;
      named removeInvStack Lnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
    • setInvStack

      public void setInvStack(int slot, ItemStack stack)
      Specified by:
      setInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lvq;a(ILamj;)V
      intermediary method_2383 Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)V
      named setInvStack Lnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official d_ Lvz;d_()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;
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official k_ Lvz;k_()Z
      intermediary method_5339 Lnet/minecraft/class_2611;method_5339()Z
      named hasCustomName Lnet/minecraft/text/Nameable;hasCustomName()Z
    • setCustomName

      public void setCustomName(String customName)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Ljava/lang/String;)V
      intermediary method_4823 Lnet/minecraft/class_1463;method_4823(Ljava/lang/String;)V
      named setCustomName Lnet/minecraft/block/entity/HopperBlockEntity;setCustomName(Ljava/lang/String;)V
    • getInvMaxStackAmount

      public int getInvMaxStackAmount()
      Specified by:
      getInvMaxStackAmount in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official p_ Lvq;p_()I
      intermediary method_2389 Lnet/minecraft/class_849;method_2389()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 Lvq;a(Lahd;)Z
      intermediary method_2384 Lnet/minecraft/class_849;method_2384(Lnet/minecraft/class_988;)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 Lvq;b(Lahd;)V
      intermediary method_10894 Lnet/minecraft/class_849;method_10894(Lnet/minecraft/class_988;)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 Lvq;c(Lahd;)V
      intermediary method_10895 Lnet/minecraft/class_849;method_10895(Lnet/minecraft/class_988;)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 Lvq;b(ILamj;)Z
      intermediary method_5338 Lnet/minecraft/class_849;method_5338(ILnet/minecraft/class_1071;)Z
      named isValidInvStack Lnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
      Mappings:
      Namespace Name Mixin selector
      official c Lpm;c()V
      intermediary method_2053 Lnet/minecraft/class_746;method_2053()V
      named tick Lnet/minecraft/util/Tickable;tick()V
    • method_4833

      public boolean method_4833()
      Mappings:
      Namespace Name Mixin selector
      official m Lbde;m()Z
      intermediary method_4833 Lnet/minecraft/class_1463;method_4833()Z
      named method_4833 Lnet/minecraft/block/entity/HopperBlockEntity;method_4833()Z
    • method_6524

      private boolean method_6524()
      Mappings:
      Namespace Name Mixin selector
      official p Lbde;p()Z
      intermediary method_6524 Lnet/minecraft/class_1463;method_6524()Z
      named method_6524 Lnet/minecraft/block/entity/HopperBlockEntity;method_6524()Z
    • method_6525

      private boolean method_6525()
      Mappings:
      Namespace Name Mixin selector
      official q Lbde;q()Z
      intermediary method_6525 Lnet/minecraft/class_1463;method_6525()Z
      named method_6525 Lnet/minecraft/block/entity/HopperBlockEntity;method_6525()Z
    • method_4835

      private boolean method_4835()
      Mappings:
      Namespace Name Mixin selector
      official r Lbde;r()Z
      intermediary method_4835 Lnet/minecraft/class_1463;method_4835()Z
      named method_4835 Lnet/minecraft/block/entity/HopperBlockEntity;method_4835()Z
    • method_6522

      private boolean method_6522(Inventory inventory, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Lvq;Lej;)Z
      intermediary method_6522 Lnet/minecraft/class_1463;method_6522(Lnet/minecraft/class_849;Lnet/minecraft/class_1354;)Z
      named method_6522 Lnet/minecraft/block/entity/HopperBlockEntity;method_6522(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Z
    • method_6523

      private static boolean method_6523(Inventory inventory, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lbde;b(Lvq;Lej;)Z
      intermediary method_6523 Lnet/minecraft/class_1463;method_6523(Lnet/minecraft/class_849;Lnet/minecraft/class_1354;)Z
      named method_6523 Lnet/minecraft/block/entity/HopperBlockEntity;method_6523(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Z
    • method_4821

      public static boolean method_4821(HopperProvider hopperProvider)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Lbdd;)Z
      intermediary method_4821 Lnet/minecraft/class_1463;method_4821(Lnet/minecraft/class_1462;)Z
      named method_4821 Lnet/minecraft/block/entity/HopperBlockEntity;method_4821(Lnet/minecraft/util/HopperProvider;)Z
    • method_4822

      private static boolean method_4822(HopperProvider hopperProvider, Inventory inventory, int int2, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Lbdd;Lvq;ILej;)Z
      intermediary method_4822 Lnet/minecraft/class_1463;method_4822(Lnet/minecraft/class_1462;Lnet/minecraft/class_849;ILnet/minecraft/class_1354;)Z
      named method_4822 Lnet/minecraft/block/entity/HopperBlockEntity;method_4822(Lnet/minecraft/util/HopperProvider;Lnet/minecraft/inventory/Inventory;ILnet/minecraft/util/math/Direction;)Z
    • extract

      public static boolean extract(Inventory inventory, ItemEntity itemEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Lvq;Ladw;)Z
      intermediary method_4824 Lnet/minecraft/class_1463;method_4824(Lnet/minecraft/class_849;Lnet/minecraft/class_964;)Z
      named extract Lnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/entity/ItemEntity;)Z
    • transfer

      public static ItemStack transfer(Inventory inventory, ItemStack itemStack, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Lvq;Lamj;Lej;)Lamj;
      intermediary method_4825 Lnet/minecraft/class_1463;method_4825(Lnet/minecraft/class_849;Lnet/minecraft/class_1071;Lnet/minecraft/class_1354;)Lnet/minecraft/class_1071;
      named transfer Lnet/minecraft/block/entity/HopperBlockEntity;transfer(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemStack;
    • canInsert

      private static boolean canInsert(Inventory inventory, ItemStack stack, int slot, Direction side)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Lvq;Lamj;ILej;)Z
      intermediary method_4826 Lnet/minecraft/class_1463;method_4826(Lnet/minecraft/class_849;Lnet/minecraft/class_1071;ILnet/minecraft/class_1354;)Z
      named canInsert Lnet/minecraft/block/entity/HopperBlockEntity;canInsert(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z
    • canExtract

      private static boolean canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)
      Mappings:
      Namespace Name Mixin selector
      official b Lbde;b(Lvq;Lamj;ILej;)Z
      intermediary method_4830 Lnet/minecraft/class_1463;method_4830(Lnet/minecraft/class_849;Lnet/minecraft/class_1071;ILnet/minecraft/class_1354;)Z
      named canExtract Lnet/minecraft/block/entity/HopperBlockEntity;canExtract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z
    • method_4832

      private static ItemStack method_4832(Inventory inventory, ItemStack itemStack, int int2, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official c Lbde;c(Lvq;Lamj;ILej;)Lamj;
      intermediary method_4832 Lnet/minecraft/class_1463;method_4832(Lnet/minecraft/class_849;Lnet/minecraft/class_1071;ILnet/minecraft/class_1354;)Lnet/minecraft/class_1071;
      named method_4832 Lnet/minecraft/block/entity/HopperBlockEntity;method_4832(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemStack;
    • method_4836

      private Inventory method_4836()
      Mappings:
      Namespace Name Mixin selector
      official G Lbde;G()Lvq;
      intermediary method_4836 Lnet/minecraft/class_1463;method_4836()Lnet/minecraft/class_849;
      named method_4836 Lnet/minecraft/block/entity/HopperBlockEntity;method_4836()Lnet/minecraft/inventory/Inventory;
    • method_4829

      public static Inventory method_4829(HopperProvider hopperProvider)
      Mappings:
      Namespace Name Mixin selector
      official b Lbde;b(Lbdd;)Lvq;
      intermediary method_4829 Lnet/minecraft/class_1463;method_4829(Lnet/minecraft/class_1462;)Lnet/minecraft/class_849;
      named method_4829 Lnet/minecraft/block/entity/HopperBlockEntity;method_4829(Lnet/minecraft/util/HopperProvider;)Lnet/minecraft/inventory/Inventory;
    • method_8991

      public static ItemEntity method_8991(World world, double double2, double double3, double double4)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Laqu;DDD)Ladw;
      intermediary method_8991 Lnet/minecraft/class_1463;method_8991(Lnet/minecraft/class_1150;DDD)Lnet/minecraft/class_964;
      named method_8991 Lnet/minecraft/block/entity/HopperBlockEntity;method_8991(Lnet/minecraft/world/World;DDD)Lnet/minecraft/entity/ItemEntity;
    • getInventoryAt

      public static Inventory getInventoryAt(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official b Lbde;b(Laqu;DDD)Lvq;
      intermediary method_4828 Lnet/minecraft/class_1463;method_4828(Lnet/minecraft/class_1150;DDD)Lnet/minecraft/class_849;
      named getInventoryAt Lnet/minecraft/block/entity/HopperBlockEntity;getInventoryAt(Lnet/minecraft/world/World;DDD)Lnet/minecraft/inventory/Inventory;
    • canMergeItems

      private static boolean canMergeItems(ItemStack first, ItemStack second)
      Mappings:
      Namespace Name Mixin selector
      official a Lbde;a(Lamj;Lamj;)Z
      intermediary method_4827 Lnet/minecraft/class_1463;method_4827(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named canMergeItems Lnet/minecraft/block/entity/HopperBlockEntity;canMergeItems(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • getX

      public double getX()
      Specified by:
      getX in interface HopperProvider
      Mappings:
      Namespace Name Mixin selector
      official A Lbdd;A()D
      intermediary method_4817 Lnet/minecraft/class_1462;method_4817()D
      named getX Lnet/minecraft/util/HopperProvider;getX()D
    • getY

      public double getY()
      Specified by:
      getY in interface HopperProvider
      Mappings:
      Namespace Name Mixin selector
      official B Lbdd;B()D
      intermediary method_4818 Lnet/minecraft/class_1462;method_4818()D
      named getY Lnet/minecraft/util/HopperProvider;getY()D
    • getZ

      public double getZ()
      Specified by:
      getZ in interface HopperProvider
      Mappings:
      Namespace Name Mixin selector
      official C Lbdd;C()D
      intermediary method_4819 Lnet/minecraft/class_1462;method_4819()D
      named getZ Lnet/minecraft/util/HopperProvider;getZ()D
    • setCooldown

      public void setCooldown(int cooldown)
      Mappings:
      Namespace Name Mixin selector
      official d Lbde;d(I)V
      intermediary method_4831 Lnet/minecraft/class_1463;method_4831(I)V
      named setCooldown Lnet/minecraft/block/entity/HopperBlockEntity;setCooldown(I)V
    • method_4834

      public boolean method_4834()
      Mappings:
      Namespace Name Mixin selector
      official n Lbde;n()Z
      intermediary method_4834 Lnet/minecraft/class_1463;method_4834()Z
      named method_4834 Lnet/minecraft/block/entity/HopperBlockEntity;method_4834()Z
    • method_8992

      public boolean method_8992()
      Mappings:
      Namespace Name Mixin selector
      official o Lbde;o()Z
      intermediary method_8992 Lnet/minecraft/class_1463;method_8992()Z
      named method_8992 Lnet/minecraft/block/entity/HopperBlockEntity;method_8992()Z
    • getId

      public String getId()
      Specified by:
      getId in interface NamedScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official k Lvv;k()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)
      Specified by:
      createScreenHandler in interface NamedScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official a Lvv;a(Lahb;Lahd;)Laib;
      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;
    • getProperty

      public int getProperty(int key)
      Specified by:
      getProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a_ Lvq;a_(I)I
      intermediary method_10892 Lnet/minecraft/class_849;method_10892(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 Lvq;b(II)V
      intermediary method_10893 Lnet/minecraft/class_849;method_10893(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 Lvq;g()I
      intermediary method_10896 Lnet/minecraft/class_849;method_10896()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 Lvq;l()V
      intermediary method_10897 Lnet/minecraft/class_849;method_10897()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V