Class ChestMinecartEntity

All Implemented Interfaces:
VehicleInventory, Inventory, NamedScreenHandlerFactory, ScreenHandlerFactory, CommandOutput, Clearable, Nameable, EntityLike

public class ChestMinecartEntity extends StorageMinecartEntity
Mappings:
Namespace Name
official cak
intermediary net/minecraft/class_1694
named net/minecraft/entity/vehicle/ChestMinecartEntity
  • Constructor Details

    • ChestMinecartEntity

      public ChestMinecartEntity(EntityType<? extends ChestMinecartEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfh;<init>(Lbfl;Lcmi;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
    • ChestMinecartEntity

      public ChestMinecartEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcak;<init>(Lcmi;DDD)V
      intermediary <init> Lnet/minecraft/class_1694;<init>(Lnet/minecraft/class_1937;DDD)V
      named <init> Lnet/minecraft/entity/vehicle/ChestMinecartEntity;<init>(Lnet/minecraft/world/World;DDD)V
  • Method Details

    • getItem

      protected Item getItem()
      Specified by:
      getItem in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official i Lcad;i()Lcfq;
      intermediary method_42670 Lnet/minecraft/class_1688;method_42670()Lnet/minecraft/class_1792;
      named getItem Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getItem()Lnet/minecraft/item/Item;
    • size

      public int size()
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b()I
      intermediary method_5439 Lnet/minecraft/class_1263;method_5439()I
      named size Lnet/minecraft/inventory/Inventory;size()I
    • getMinecartType

      public AbstractMinecartEntity.Type getMinecartType()
      Specified by:
      getMinecartType in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official s Lcad;s()Lcad$a;
      intermediary method_7518 Lnet/minecraft/class_1688;method_7518()Lnet/minecraft/class_1688$class_1689;
      named getMinecartType Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMinecartType()Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;
    • getDefaultContainedBlock

      public BlockState getDefaultContainedBlock()
      Overrides:
      getDefaultContainedBlock in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official v Lcad;v()Ldbq;
      intermediary method_7517 Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;
      named getDefaultContainedBlock Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;
    • getDefaultBlockOffset

      public int getDefaultBlockOffset()
      Overrides:
      getDefaultBlockOffset in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official x Lcad;x()I
      intermediary method_7526 Lnet/minecraft/class_1688;method_7526()I
      named getDefaultBlockOffset Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()I
    • getScreenHandler

      public ScreenHandler getScreenHandler(int syncId, PlayerInventory playerInventory)
      Specified by:
      getScreenHandler in class StorageMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcae;a(ILbyl;)Lcbd;
      intermediary method_17357 Lnet/minecraft/class_1693;method_17357(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
      named getScreenHandler Lnet/minecraft/entity/vehicle/StorageMinecartEntity;getScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
    • onClose

      public void onClose(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official c Lbdr;c(Lbym;)V
      intermediary method_5432 Lnet/minecraft/class_1263;method_5432(Lnet/minecraft/class_1657;)V
      named onClose Lnet/minecraft/inventory/Inventory;onClose(Lnet/minecraft/entity/player/PlayerEntity;)V
    • interact

      public ActionResult interact(PlayerEntity player, Hand hand)
      Called when a player interacts with this entity.
      Overrides:
      interact in class StorageMinecartEntity
      Parameters:
      player - the player
      hand - the hand the player used to interact with this entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfh;a(Lbym;Lbdx;)Lbdy;
      intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;