Class InventoryMinecartEntity

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

public abstract class InventoryMinecartEntity
extends AbstractMinecartEntity
implements LockableScreenHandlerFactory
Mappings:
Namespace Name
official vd
intermediary net/minecraft/class_1899
named net/minecraft/entity/vehicle/InventoryMinecartEntity
  • Field Details

    • stacks

      private ItemStack[] stacks
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a:[Lzx;
      intermediary field_8167 Lnet/minecraft/class_1899;field_8167:[Lnet/minecraft/class_2056;
      named stacks Lnet/minecraft/entity/vehicle/InventoryMinecartEntity;stacks:[Lnet/minecraft/item/ItemStack;
    • field_8168

      private boolean field_8168
      Mappings:
      Namespace Name Mixin selector
      official b Lvd;b:Z
      intermediary field_8168 Lnet/minecraft/class_1899;field_8168:Z
      named field_8168 Lnet/minecraft/entity/vehicle/InventoryMinecartEntity;field_8168:Z
  • Constructor Details

    • InventoryMinecartEntity

      public InventoryMinecartEntity​(World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lpk;<init>(Ladm;)V
      intermediary <init> Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
    • InventoryMinecartEntity

      public InventoryMinecartEntity​(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lva;<init>(Ladm;DDD)V
      intermediary <init> Lnet/minecraft/class_1895;<init>(Lnet/minecraft/class_99;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 Lva;a(Low;)V
      intermediary method_7782 Lnet/minecraft/class_1895;method_7782(Lnet/minecraft/class_1733;)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 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
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official p_ Log;p_()V
      intermediary method_1103 Lnet/minecraft/class_1718;method_1103()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 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
    • 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_6261 Lm;method_6261()Ljava/lang/String;
      intermediary method_6261 Lnet/minecraft/class_1659;method_6261()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/command/CommandSource;getTranslationKey()Ljava/lang/String;
    • 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
    • teleportToDimension

      public void teleportToDimension​(int dimensionId)
      Overrides:
      teleportToDimension in class Entity
      Mappings:
      Namespace Name Mixin selector
      official c Lpk;c(I)V
      intermediary method_7010 Lnet/minecraft/class_1745;method_7010(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 Lpk;J()V
      intermediary method_6899 Lnet/minecraft/class_1745;method_6899()V
      named remove Lnet/minecraft/entity/Entity;remove()V
    • serialize

      protected void serialize​(CompoundTag tag)
      Overrides:
      serialize in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lpk;b(Ldn;)V
      intermediary method_7003 Lnet/minecraft/class_1745;method_7003(Lnet/minecraft/class_1405;)V
      named serialize Lnet/minecraft/entity/Entity;serialize(Lnet/minecraft/nbt/CompoundTag;)V
    • deserialize

      protected void deserialize​(CompoundTag tag)
      Overrides:
      deserialize in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lpk;a(Ldn;)V
      intermediary method_6933 Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)V
      named deserialize Lnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
    • openInventory

      public boolean openInventory​(PlayerEntity player)
      Overrides:
      openInventory in class Entity
      Mappings:
      Namespace Name Mixin selector
      official e Lpk;e(Lwn;)Z
      intermediary method_7028 Lnet/minecraft/class_1745;method_7028(Lnet/minecraft/class_1963;)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 Lva;o()V
      intermediary method_7790 Lnet/minecraft/class_1895;method_7790()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_ 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
    • hasLock

      public boolean hasLock()
      Specified by:
      hasLock in interface LockableScreenHandlerFactory
      Mappings:
      Namespace Name Mixin selector
      official r_ Loo;r_()Z
      intermediary method_6769 Lnet/minecraft/class_1725;method_6769()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 Loo;a(Lon;)V
      intermediary method_6767 Lnet/minecraft/class_1725;method_6767(Lnet/minecraft/class_1724;)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 Loo;i()Lon;
      intermediary method_6768 Lnet/minecraft/class_1725;method_6768()Lnet/minecraft/class_1724;
      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 Log;l()V
      intermediary method_6747 Lnet/minecraft/class_1718;method_6747()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V