Class StorageMinecartEntity

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

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

    • stacks

      private ItemStack[] stacks
      Mappings:
      Namespace Name Mixin selector
      official a Laed;a:[Lamj;
      intermediary field_6144 Lnet/minecraft/class_1574;field_6144:[Lnet/minecraft/class_1071;
      named stacks Lnet/minecraft/entity/vehicle/StorageMinecartEntity;stacks:[Lnet/minecraft/item/ItemStack;
    • field_6145

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

    • StorageMinecartEntity

      public StorageMinecartEntity(World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwv;<init>(Laqu;)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> Ladx;<init>(Laqu;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 Ladx;a(Lwh;)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
    • 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
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official o_ Lvq;o_()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 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
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface CommandSource
      Specified by:
      getTranslationKey in interface Nameable
      Overrides:
      getTranslationKey in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official method_2518 Lwv;method_2518()Ljava/lang/String;
      intermediary method_2518 Lnet/minecraft/class_864;method_2518()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/entity/Entity;getTranslationKey()Ljava/lang/String;
    • 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
    • teleportToDimension

      public void teleportToDimension(int dimensionId)
      Overrides:
      teleportToDimension in class Entity
      Mappings:
      Namespace Name Mixin selector
      official c Lwv;c(I)V
      intermediary method_3197 Lnet/minecraft/class_864;method_3197(I)V
      named teleportToDimension Lnet/minecraft/entity/Entity;teleportToDimension(I)V
    • remove

      public void remove()
      Overrides:
      remove in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official J Lwv;J()V
      intermediary method_2563 Lnet/minecraft/class_864;method_2563()V
      named remove Lnet/minecraft/entity/Entity;remove()V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lwv;b(Lfn;)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 Lwv;a(Lfn;)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
    • openInventory

      public boolean openInventory(PlayerEntity player)
      Overrides:
      openInventory in class Entity
      Mappings:
      Namespace Name Mixin selector
      official e Lwv;e(Lahd;)Z
      intermediary method_6100 Lnet/minecraft/class_864;method_6100(Lnet/minecraft/class_988;)Z
      named openInventory Lnet/minecraft/entity/Entity;openInventory(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • applySlowdown

      protected void applySlowdown()
      Overrides:
      applySlowdown in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official o Ladx;o()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 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
    • hasLock

      public boolean hasLock()
      Specified by:
      hasLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official q_ Lvy;q_()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 Lvy;a(Lvx;)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 i Lvy;i()Lvx;
      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;
    • 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