Class StorageMinecartEntity

All Implemented Interfaces:
LockableScreenHandlerFactory, class_2964, CommandSource, Inventory, NamedScreenHandlerFactory, Nameable
Direct Known Subclasses:
ChestMinecartEntity, HopperMinecartEntity

public abstract class StorageMinecartEntity extends AbstractMinecartEntity implements LockableScreenHandlerFactory, class_2964
Mappings:
Namespace Name
official acb
intermediary net/minecraft/class_1574
named net/minecraft/entity/vehicle/StorageMinecartEntity
  • Field Details

    • inventory

      private DefaultedList<ItemStack> inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lacb;a:Ldd;
      intermediary field_15098 Lnet/minecraft/class_1574;field_15098:Lnet/minecraft/class_3114;
      named inventory Lnet/minecraft/entity/vehicle/StorageMinecartEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
    • field_6145

      private boolean field_6145
      Mappings:
      Namespace Name Mixin selector
      official b Lacb;b:Z
      intermediary field_6145 Lnet/minecraft/class_1574;field_6145:Z
      named field_6145 Lnet/minecraft/entity/vehicle/StorageMinecartEntity;field_6145:Z
    • lootTableId

      private Identifier lootTableId
      Mappings:
      Namespace Name Mixin selector
      official c Lacb;c:Lkq;
      intermediary field_12258 Lnet/minecraft/class_1574;field_12258:Lnet/minecraft/class_1653;
      named lootTableId Lnet/minecraft/entity/vehicle/StorageMinecartEntity;lootTableId:Lnet/minecraft/util/Identifier;
    • lootSeed

      private long lootSeed
      Mappings:
      Namespace Name Mixin selector
      official d Lacb;d:J
      intermediary field_12259 Lnet/minecraft/class_1574;field_12259:J
      named lootSeed Lnet/minecraft/entity/vehicle/StorageMinecartEntity;lootSeed:J
  • Constructor Details

    • StorageMinecartEntity

      public StorageMinecartEntity(World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsn;<init>(Lajs;)V
      intermediary <init> Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
    • StorageMinecartEntity

      public StorageMinecartEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laby;<init>(Lajs;DDD)V
      intermediary <init> Lnet/minecraft/class_965;<init>(Lnet/minecraft/class_1150;DDD)V
      named <init> Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;<init>(Lnet/minecraft/world/World;DDD)V
  • Method Details

    • dropItems

      public void dropItems(DamageSource damageSource)
      Overrides:
      dropItems in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laby;a(Lry;)V
      intermediary method_5412 Lnet/minecraft/class_965;method_5412(Lnet/minecraft/class_856;)V
      named dropItems Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Inventory
      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
    • getInvStack

      public ItemStack getInvStack(int slot)
      Specified by:
      getInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(I)Lafj;
      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 Lrc;a(II)Lafj;
      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 Lrc;b(I)Lafj;
      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 Lrc;a(ILafj;)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
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official x_ Lrc;x_()V
      intermediary method_543 Lnet/minecraft/class_849;method_543()V
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
    • canPlayerUseInv

      public boolean canPlayerUseInv(PlayerEntity player)
      Specified by:
      canPlayerUseInv in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(Laay;)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 Lrc;b(Laay;)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 Lrc;c(Laay;)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 Lrc;b(ILafj;)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
    • getInvMaxStackAmount

      public int getInvMaxStackAmount()
      Specified by:
      getInvMaxStackAmount in interface Inventory
      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
    • changeDimension

      @Nullable public Entity changeDimension(int newDimension)
      Overrides:
      changeDimension in class Entity
      Mappings:
      Namespace Name Mixin selector
      official c Lsn;c(I)Lsn;
      intermediary method_3197 Lnet/minecraft/class_864;method_3197(I)Lnet/minecraft/class_864;
      named changeDimension Lnet/minecraft/entity/Entity;changeDimension(I)Lnet/minecraft/entity/Entity;
    • remove

      public void remove()
      Overrides:
      remove in class Entity
      Mappings:
      Namespace Name Mixin selector
      official T Lsn;T()V
      intermediary method_2563 Lnet/minecraft/class_864;method_2563()V
      named remove Lnet/minecraft/entity/Entity;remove()V
    • method_12991

      public void method_12991(boolean bool)
      Overrides:
      method_12991 in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lsn;b(Z)V
      intermediary method_12991 Lnet/minecraft/class_864;method_12991(Z)V
      named method_12991 Lnet/minecraft/entity/Entity;method_12991(Z)V
    • method_13640

      public static void method_13640(class_2934 class_2934, Class<?> class2)
      Mappings:
      Namespace Name Mixin selector
      official b Lacb;b(Lph;Ljava/lang/Class;)V
      intermediary method_13640 Lnet/minecraft/class_1574;method_13640(Lnet/minecraft/class_2934;Ljava/lang/Class;)V
      named method_13640 Lnet/minecraft/entity/vehicle/StorageMinecartEntity;method_13640(Lnet/minecraft/class_2934;Ljava/lang/Class;)V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lsn;b(Ldu;)V
      intermediary method_2528 Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt(NbtCompound nbt)
      Overrides:
      readCustomDataFromNbt in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lsn;a(Ldu;)V
      intermediary method_2498 Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • interact

      public boolean interact(PlayerEntity player, Hand hand)
      Overrides:
      interact in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lsn;b(Laay;Lri;)Z
      intermediary method_6100 Lnet/minecraft/class_864;method_6100(Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Z
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Z
    • applySlowdown

      protected void applySlowdown()
      Overrides:
      applySlowdown in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official r Laby;r()V
      intermediary method_5415 Lnet/minecraft/class_965;method_5415()V
      named applySlowdown Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
    • getProperty

      public int getProperty(int key)
      Specified by:
      getProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c_ Lrc;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 Lrc;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 h Lrc;h()I
      intermediary method_10896 Lnet/minecraft/class_849;method_10896()I
      named getProperties Lnet/minecraft/inventory/Inventory;getProperties()I
    • hasLock

      public boolean hasLock()
      Specified by:
      hasLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official z_ Lro;z_()Z
      intermediary method_10913 Lnet/minecraft/class_2610;method_10913()Z
      named hasLock Lnet/minecraft/block/entity/LockableScreenHandlerFactory;hasLock()Z
    • setLock

      public void setLock(ScreenHandlerLock lock)
      Specified by:
      setLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official a Lro;a(Lrn;)V
      intermediary method_10911 Lnet/minecraft/class_2610;method_10911(Lnet/minecraft/class_2609;)V
      named setLock Lnet/minecraft/block/entity/LockableScreenHandlerFactory;setLock(Lnet/minecraft/inventory/ScreenHandlerLock;)V
    • getLock

      public ScreenHandlerLock getLock()
      Specified by:
      getLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official j Lro;j()Lrn;
      intermediary method_10912 Lnet/minecraft/class_2610;method_10912()Lnet/minecraft/class_2609;
      named getLock Lnet/minecraft/block/entity/LockableScreenHandlerFactory;getLock()Lnet/minecraft/inventory/ScreenHandlerLock;
    • generateLoot

      public void generateLoot(@Nullable PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official f Lacb;f(Laay;)V
      intermediary method_11348 Lnet/minecraft/class_1574;method_11348(Lnet/minecraft/class_988;)V
      named generateLoot Lnet/minecraft/entity/vehicle/StorageMinecartEntity;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
    • clear

      public void clear()
      Specified by:
      clear in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official m Lrc;m()V
      intermediary method_10897 Lnet/minecraft/class_849;method_10897()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V
    • setLootTable

      public void setLootTable(Identifier id, long lootSeed)
      Mappings:
      Namespace Name Mixin selector
      official a Lacb;a(Lkq;J)V
      intermediary method_11347 Lnet/minecraft/class_1574;method_11347(Lnet/minecraft/class_1653;J)V
      named setLootTable Lnet/minecraft/entity/vehicle/StorageMinecartEntity;setLootTable(Lnet/minecraft/util/Identifier;J)V
    • getLootTableId

      public Identifier getLootTableId()
      Specified by:
      getLootTableId in interface class_2964
      Mappings:
      Namespace Name Mixin selector
      official b Lrq;b()Lkq;
      intermediary method_12936 Lnet/minecraft/class_2964;method_12936()Lnet/minecraft/class_1653;
      named getLootTableId Lnet/minecraft/class_2964;getLootTableId()Lnet/minecraft/util/Identifier;