Class HopperBlockEntity

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

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

    • field_1452

      private ItemStack[] field_1452
      Mappings:
      Namespace Name Mixin selector
      official a Lalj;a:[Lzx;
      intermediary field_1452 Lnet/minecraft/class_362;field_1452:[Lnet/minecraft/class_2056;
      named field_1452 Lnet/minecraft/block/entity/HopperBlockEntity;field_1452:[Lnet/minecraft/item/ItemStack;
    • field_1453

      private String field_1453
      Mappings:
      Namespace Name Mixin selector
      official f Lalj;f:Ljava/lang/String;
      intermediary field_1453 Lnet/minecraft/class_362;field_1453:Ljava/lang/String;
      named field_1453 Lnet/minecraft/block/entity/HopperBlockEntity;field_1453:Ljava/lang/String;
    • transferCooldown

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

    • HopperBlockEntity

      public HopperBlockEntity()
  • Method Details

    • 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
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Overrides:
      markDirty in class BlockEntity
      Mappings:
      Namespace Name Mixin selector
      official p_ Lakw;p_()V
      intermediary method_1103 Lnet/minecraft/class_348;method_1103()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 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;
    • 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
    • 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;
    • 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
    • method_1156

      public void method_1156​(String string)
      Mappings:
      Namespace Name Mixin selector
      official a Lalj;a(Ljava/lang/String;)V
      intermediary method_1156 Lnet/minecraft/class_362;method_1156(Ljava/lang/String;)V
      named method_1156 Lnet/minecraft/block/entity/HopperBlockEntity;method_1156(Ljava/lang/String;)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
    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
      Mappings:
      Namespace Name Mixin selector
      official c Lkm;c()V
      intermediary method_5945 Lnet/minecraft/class_1618;method_5945()V
      named tick Lnet/minecraft/util/Tickable;tick()V
    • method_1168

      public boolean method_1168()
      Mappings:
      Namespace Name Mixin selector
      official m Lalj;m()Z
      intermediary method_1168 Lnet/minecraft/class_362;method_1168()Z
      named method_1168 Lnet/minecraft/block/entity/HopperBlockEntity;method_1168()Z
    • method_1171

      private boolean method_1171()
      Mappings:
      Namespace Name Mixin selector
      official p Lalj;p()Z
      intermediary method_1171 Lnet/minecraft/class_362;method_1171()Z
      named method_1171 Lnet/minecraft/block/entity/HopperBlockEntity;method_1171()Z
    • method_1172

      private boolean method_1172()
      Mappings:
      Namespace Name Mixin selector
      official q Lalj;q()Z
      intermediary method_1172 Lnet/minecraft/class_362;method_1172()Z
      named method_1172 Lnet/minecraft/block/entity/HopperBlockEntity;method_1172()Z
    • method_1173

      private boolean method_1173()
      Mappings:
      Namespace Name Mixin selector
      official r Lalj;r()Z
      intermediary method_1173 Lnet/minecraft/class_362;method_1173()Z
      named method_1173 Lnet/minecraft/block/entity/HopperBlockEntity;method_1173()Z
    • method_1157

      private boolean method_1157​(Inventory inventory, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lalj;a(Log;Lcq;)Z
      intermediary method_1157 Lnet/minecraft/class_362;method_1157(Lnet/minecraft/class_1718;Lnet/minecraft/class_1383;)Z
      named method_1157 Lnet/minecraft/block/entity/HopperBlockEntity;method_1157(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Z
    • method_1164

      private static boolean method_1164​(Inventory inventory, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official b Lalj;b(Log;Lcq;)Z
      intermediary method_1164 Lnet/minecraft/class_362;method_1164(Lnet/minecraft/class_1718;Lnet/minecraft/class_1383;)Z
      named method_1164 Lnet/minecraft/block/entity/HopperBlockEntity;method_1164(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Z
    • method_1154

      public static boolean method_1154​(HopperProvider hopperProvider)
      Mappings:
      Namespace Name Mixin selector
      official a Lalj;a(Lali;)Z
      intermediary method_1154 Lnet/minecraft/class_362;method_1154(Lnet/minecraft/class_361;)Z
      named method_1154 Lnet/minecraft/block/entity/HopperBlockEntity;method_1154(Lnet/minecraft/util/HopperProvider;)Z
    • method_1155

      private static boolean method_1155​(HopperProvider hopperProvider, Inventory inventory, int int2, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lalj;a(Lali;Log;ILcq;)Z
      intermediary method_1155 Lnet/minecraft/class_362;method_1155(Lnet/minecraft/class_361;Lnet/minecraft/class_1718;ILnet/minecraft/class_1383;)Z
      named method_1155 Lnet/minecraft/block/entity/HopperBlockEntity;method_1155(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 Lalj;a(Log;Luz;)Z
      intermediary method_1158 Lnet/minecraft/class_362;method_1158(Lnet/minecraft/class_1718;Lnet/minecraft/class_1893;)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 Lalj;a(Log;Lzx;Lcq;)Lzx;
      intermediary method_1160 Lnet/minecraft/class_362;method_1160(Lnet/minecraft/class_1718;Lnet/minecraft/class_2056;Lnet/minecraft/class_1383;)Lnet/minecraft/class_2056;
      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 Lalj;a(Log;Lzx;ILcq;)Z
      intermediary method_1159 Lnet/minecraft/class_362;method_1159(Lnet/minecraft/class_1718;Lnet/minecraft/class_2056;ILnet/minecraft/class_1383;)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 Lalj;b(Log;Lzx;ILcq;)Z
      intermediary method_1165 Lnet/minecraft/class_362;method_1165(Lnet/minecraft/class_1718;Lnet/minecraft/class_2056;ILnet/minecraft/class_1383;)Z
      named canExtract Lnet/minecraft/block/entity/HopperBlockEntity;canExtract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z
    • method_1166

      private static ItemStack method_1166​(Inventory inventory, ItemStack itemStack, int int2, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official c Lalj;c(Log;Lzx;ILcq;)Lzx;
      intermediary method_1166 Lnet/minecraft/class_362;method_1166(Lnet/minecraft/class_1718;Lnet/minecraft/class_2056;ILnet/minecraft/class_1383;)Lnet/minecraft/class_2056;
      named method_1166 Lnet/minecraft/block/entity/HopperBlockEntity;method_1166(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemStack;
    • method_1152

      private Inventory method_1152()
      Mappings:
      Namespace Name Mixin selector
      official H Lalj;H()Log;
      intermediary method_1152 Lnet/minecraft/class_362;method_1152()Lnet/minecraft/class_1718;
      named method_1152 Lnet/minecraft/block/entity/HopperBlockEntity;method_1152()Lnet/minecraft/inventory/Inventory;
    • method_1163

      public static Inventory method_1163​(HopperProvider hopperProvider)
      Mappings:
      Namespace Name Mixin selector
      official b Lalj;b(Lali;)Log;
      intermediary method_1163 Lnet/minecraft/class_362;method_1163(Lnet/minecraft/class_361;)Lnet/minecraft/class_1718;
      named method_1163 Lnet/minecraft/block/entity/HopperBlockEntity;method_1163(Lnet/minecraft/util/HopperProvider;)Lnet/minecraft/inventory/Inventory;
    • method_1153

      public static List<ItemEntity> method_1153​(World world, double double2, double double3, double double4)
      Mappings:
      Namespace Name Mixin selector
      official a Lalj;a(Ladm;DDD)Ljava/util/List;
      intermediary method_1153 Lnet/minecraft/class_362;method_1153(Lnet/minecraft/class_99;DDD)Ljava/util/List;
      named method_1153 Lnet/minecraft/block/entity/HopperBlockEntity;method_1153(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 Lalj;b(Ladm;DDD)Log;
      intermediary method_1162 Lnet/minecraft/class_362;method_1162(Lnet/minecraft/class_99;DDD)Lnet/minecraft/class_1718;
      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 Lalj;a(Lzx;Lzx;)Z
      intermediary method_1161 Lnet/minecraft/class_362;method_1161(Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;)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 Lali;A()D
      intermediary method_1149 Lnet/minecraft/class_361;method_1149()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 Lali;B()D
      intermediary method_1150 Lnet/minecraft/class_361;method_1150()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 Lali;C()D
      intermediary method_1151 Lnet/minecraft/class_361;method_1151()D
      named getZ Lnet/minecraft/util/HopperProvider;getZ()D
    • setCooldown

      public void setCooldown​(int cooldown)
      Mappings:
      Namespace Name Mixin selector
      official d Lalj;d(I)V
      intermediary method_1167 Lnet/minecraft/class_362;method_1167(I)V
      named setCooldown Lnet/minecraft/block/entity/HopperBlockEntity;setCooldown(I)V
    • method_1169

      public boolean method_1169()
      Mappings:
      Namespace Name Mixin selector
      official n Lalj;n()Z
      intermediary method_1169 Lnet/minecraft/class_362;method_1169()Z
      named method_1169 Lnet/minecraft/block/entity/HopperBlockEntity;method_1169()Z
    • method_1170

      public boolean method_1170()
      Mappings:
      Namespace Name Mixin selector
      official o Lalj;o()Z
      intermediary method_1170 Lnet/minecraft/class_362;method_1170()Z
      named method_1170 Lnet/minecraft/block/entity/HopperBlockEntity;method_1170()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