Class MinecartEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike

public class MinecartEntity extends AbstractMinecartEntity
Mappings:
Namespace Name
official bpk
intermediary net/minecraft/class_1695
named net/minecraft/entity/vehicle/MinecartEntity
  • Constructor Details

    • MinecartEntity

      public MinecartEntity(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawt;<init>(Lawx;Lcad;)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
    • MinecartEntity

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

    • interact

      public ActionResult interact(PlayerEntity player, Hand hand)
      Called when a player interacts with this entity.
      Overrides:
      interact in class Entity
      Parameters:
      player - the player
      hand - the hand the player used to interact with this entity
      Mappings:
      Namespace Name Mixin selector
      official a Lawt;a(Lbnr;Lavp;)Lavq;
      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;
    • onActivatorRail

      public void onActivatorRail(int x, int y, int z, boolean powered)
      Overrides:
      onActivatorRail in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbpg;a(IIIZ)V
      intermediary method_7506 Lnet/minecraft/class_1688;method_7506(IIIZ)V
      named onActivatorRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)V
    • getMinecartType

      public AbstractMinecartEntity.Type getMinecartType()
      Specified by:
      getMinecartType in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      official q Lbpg;q()Lbpg$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;