Class MinecartEntity

All Implemented Interfaces:
DataTracked, ScoreHolder, Nameable, EntityLike

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

    • field_52518

      private float field_52518
      Mappings:
      Namespace Name Mixin selector
      named field_52518 Lnet/minecraft/entity/vehicle/MinecartEntity;field_52518:F
      intermediary field_52518 Lnet/minecraft/class_1695;field_52518:F
      official b Lcsc;b:F
    • field_52519

      private float field_52519
      Mappings:
      Namespace Name Mixin selector
      named field_52519 Lnet/minecraft/entity/vehicle/MinecartEntity;field_52519:F
      intermediary field_52519 Lnet/minecraft/class_1695;field_52519:F
      official c Lcsc;c:F
  • Constructor Details

    • MinecartEntity

      public MinecartEntity(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbvj;<init>(Lbvq;Ldhh;)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
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official a Lbvj;a(Lcpw;Lbth;)Lbti;
    • asItem

      protected Item asItem()
      Specified by:
      asItem in class VehicleEntity
      Mappings:
      Namespace Name Mixin selector
      named asItem Lnet/minecraft/entity/vehicle/VehicleEntity;asItem()Lnet/minecraft/item/Item;
      intermediary method_7557 Lnet/minecraft/class_8836;method_7557()Lnet/minecraft/class_1792;
      official u Lcsn;u()Lcxk;
    • getPickBlockStack

      public ItemStack getPickBlockStack()
      Returns the stack for creative "pick block" functionality, or null if there is none.

      If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that MobEntity handles the spawn eggs. ItemFrameEntity instead returns the copy of the stack held in the frame.

      Specified by:
      getPickBlockStack in class AbstractMinecartEntity
      Returns:
      the stack for creative "pick block" functionality, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      official dJ Lbvj;dJ()Lcxo;
    • onActivatorRail

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

      public boolean isRideable()
      Overrides:
      isRideable in class AbstractMinecartEntity
      Mappings:
      Namespace Name Mixin selector
      named isRideable Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isRideable()Z
      intermediary method_64272 Lnet/minecraft/class_1688;method_64272()Z
      official D Lcrv;D()Z
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class AbstractMinecartEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to Entity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official h Lbvj;h()V
    • updatePassengerPosition

      protected void updatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater)
      Overrides:
      updatePassengerPosition in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updatePassengerPosition Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)V
      intermediary method_5865 Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)V
      official a Lbvj;a(Lbvj;Lbvj$a;)V