Class HopperBlockEntity

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

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

    • items

      private ItemStack[] items
      Mappings:
      Namespace Name Mixin selector
      official a Laqi;a:[Ladq;
      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 Laqi;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 Laqi;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 Lapv;a(Ldq;)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 Lapv;b(Ldq;)Ldq;
      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;
    • getInvSize

      public int getInvSize()
      Specified by:
      getInvSize in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official u_ Lqg;u_()I
      intermediary method_2388 Lnet/minecraft/class_849;method_2388()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • getInvStack

      @Nullable public ItemStack getInvStack(int slot)
      Specified by:
      getInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lqg;a(I)Ladq;
      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

      @Nullable public ItemStack takeInvStack(int slot, int amount)
      Specified by:
      takeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lqg;a(II)Ladq;
      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

      @Nullable public ItemStack removeInvStack(int slot)
      Specified by:
      removeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lqg;b(I)Ladq;
      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, @Nullable ItemStack stack)
      Specified by:
      setInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lqg;a(ILadq;)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 h_ Lqt;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;
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official o_ Lqt;o_()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 Laqi;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 w_ Lqg;w_()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 Lqg;a(Lzj;)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 Lqg;b(Lzj;)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 Lqg;c(Lzj;)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 Lqg;b(ILadq;)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 Lkz;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 Laqi;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 q Laqi;q()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 r Laqi;r()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 H Laqi;H()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 Laqi;a(Lqg;Lcs;)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 Laqi;b(Lqg;Lcs;)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 Laqi;a(Laqh;)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 Laqi;a(Laqh;Lqg;ILcs;)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 Laqi;a(Lqg;Lyd;)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, @Nullable Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Laqi;a(Lqg;Ladq;Lcs;)Ladq;
      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 Laqi;a(Lqg;Ladq;ILcs;)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 Laqi;b(Lqg;Ladq;ILcs;)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 Laqi;c(Lqg;Ladq;ILcs;)Ladq;
      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 I Laqi;I()Lqg;
      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 Laqi;b(Laqh;)Lqg;
      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 List<ItemEntity> method_8991(World world, double double2, double double3, double double4)
      Mappings:
      Namespace Name Mixin selector
      official a Laqi;a(Laht;DDD)Ljava/util/List;
      intermediary method_8991 Lnet/minecraft/class_1463;method_8991(Lnet/minecraft/class_1150;DDD)Ljava/util/List;
      named method_8991 Lnet/minecraft/block/entity/HopperBlockEntity;method_8991(Lnet/minecraft/world/World;DDD)Ljava/util/List;
    • getInventoryAt

      public static Inventory getInventoryAt(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official b Laqi;b(Laht;DDD)Lqg;
      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 Laqi;a(Ladq;Ladq;)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 E Laqh;E()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 F Laqh;F()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 G Laqh;G()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 Laqi;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 o Laqi;o()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 p Laqi;p()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 Lqn;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 Lqn;a(Lzi;Lzj;)Laau;
      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 c_ Lqg;c_(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 Lqg;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 Lqg;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 Lqg;l()V
      intermediary method_10897 Lnet/minecraft/class_849;method_10897()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V