Class AbstractMinecartEntity

All Implemented Interfaces:
ScoreHolder, CommandOutput, Nameable, EntityLike
Direct Known Subclasses:
CommandBlockMinecartEntity, FurnaceMinecartEntity, MinecartEntity, SpawnerMinecartEntity, StorageMinecartEntity, TntMinecartEntity

public abstract class AbstractMinecartEntity extends VehicleEntity
Mappings:
Namespace Name
official cha
intermediary net/minecraft/class_1688
named net/minecraft/entity/vehicle/AbstractMinecartEntity
  • Field Details

    • VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSET

      private static final float VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lcha;c:F
      intermediary field_46219 Lnet/minecraft/class_1688;field_46219:F
      named VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSET Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;VILLAGER_PASSENGER_ATTACHMENT_Y_OFFSET:F
    • PASSENGER_ATTACHMENT_Y_OFFSET

      private static final float PASSENGER_ATTACHMENT_Y_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lcha;d:F
      intermediary field_46214 Lnet/minecraft/class_1688;field_46214:F
      named PASSENGER_ATTACHMENT_Y_OFFSET Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;PASSENGER_ATTACHMENT_Y_OFFSET:F
    • CUSTOM_BLOCK_ID

      private static final TrackedData<Integer> CUSTOM_BLOCK_ID
      Mappings:
      Namespace Name Mixin selector
      official e Lcha;e:Lagm;
      intermediary field_7671 Lnet/minecraft/class_1688;field_7671:Lnet/minecraft/class_2940;
      named CUSTOM_BLOCK_ID Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_ID:Lnet/minecraft/entity/data/TrackedData;
    • CUSTOM_BLOCK_OFFSET

      private static final TrackedData<Integer> CUSTOM_BLOCK_OFFSET
      Mappings:
      Namespace Name Mixin selector
      official i Lcha;i:Lagm;
      intermediary field_7661 Lnet/minecraft/class_1688;field_7661:Lnet/minecraft/class_2940;
      named CUSTOM_BLOCK_OFFSET Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_OFFSET:Lnet/minecraft/entity/data/TrackedData;
    • CUSTOM_BLOCK_PRESENT

      private static final TrackedData<Boolean> CUSTOM_BLOCK_PRESENT
      Mappings:
      Namespace Name Mixin selector
      official j Lcha;j:Lagm;
      intermediary field_7670 Lnet/minecraft/class_1688;field_7670:Lnet/minecraft/class_2940;
      named CUSTOM_BLOCK_PRESENT Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_PRESENT:Lnet/minecraft/entity/data/TrackedData;
    • DISMOUNT_FREE_Y_SPACES_NEEDED

      private static final ImmutableMap<EntityPose,ImmutableList<Integer>> DISMOUNT_FREE_Y_SPACES_NEEDED
      Mappings:
      Namespace Name Mixin selector
      official k Lcha;k:Lcom/google/common/collect/ImmutableMap;
      intermediary field_24464 Lnet/minecraft/class_1688;field_24464:Lcom/google/common/collect/ImmutableMap;
      named DISMOUNT_FREE_Y_SPACES_NEEDED Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DISMOUNT_FREE_Y_SPACES_NEEDED:Lcom/google/common/collect/ImmutableMap;
    • VELOCITY_SLOWDOWN_MULTIPLIER

      protected static final float VELOCITY_SLOWDOWN_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcha;b:F
      intermediary field_30694 Lnet/minecraft/class_1688;field_30694:F
      named VELOCITY_SLOWDOWN_MULTIPLIER Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;VELOCITY_SLOWDOWN_MULTIPLIER:F
    • ADJACENT_RAIL_POSITIONS_BY_SHAPE

      private static final Map<RailShape,com.mojang.datafixers.util.Pair<Vec3i,Vec3i>> ADJACENT_RAIL_POSITIONS_BY_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official u Lcha;u:Ljava/util/Map;
      intermediary field_7664 Lnet/minecraft/class_1688;field_7664:Ljava/util/Map;
      named ADJACENT_RAIL_POSITIONS_BY_SHAPE Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;ADJACENT_RAIL_POSITIONS_BY_SHAPE:Ljava/util/Map;
    • yawFlipped

      private boolean yawFlipped
      Mappings:
      Namespace Name Mixin selector
      official l Lcha;l:Z
      intermediary field_7660 Lnet/minecraft/class_1688;field_7660:Z
      named yawFlipped Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;yawFlipped:Z
    • onRail

      private boolean onRail
      Mappings:
      Namespace Name Mixin selector
      official m Lcha;m:Z
      intermediary field_44917 Lnet/minecraft/class_1688;field_44917:Z
      named onRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onRail:Z
    • clientInterpolationSteps

      private int clientInterpolationSteps
      Mappings:
      Namespace Name Mixin selector
      official n Lcha;n:I
      intermediary field_45135 Lnet/minecraft/class_1688;field_45135:I
      named clientInterpolationSteps Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientInterpolationSteps:I
    • clientX

      private double clientX
      Mappings:
      Namespace Name Mixin selector
      official o Lcha;o:D
      intermediary field_45136 Lnet/minecraft/class_1688;field_45136:D
      named clientX Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientX:D
    • clientY

      private double clientY
      Mappings:
      Namespace Name Mixin selector
      official p Lcha;p:D
      intermediary field_45137 Lnet/minecraft/class_1688;field_45137:D
      named clientY Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientY:D
    • clientZ

      private double clientZ
      Mappings:
      Namespace Name Mixin selector
      official q Lcha;q:D
      intermediary field_45138 Lnet/minecraft/class_1688;field_45138:D
      named clientZ Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientZ:D
    • clientYaw

      private double clientYaw
      Mappings:
      Namespace Name Mixin selector
      official r Lcha;r:D
      intermediary field_45139 Lnet/minecraft/class_1688;field_45139:D
      named clientYaw Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientYaw:D
    • clientPitch

      private double clientPitch
      Mappings:
      Namespace Name Mixin selector
      official s Lcha;s:D
      intermediary field_45140 Lnet/minecraft/class_1688;field_45140:D
      named clientPitch Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientPitch:D
    • clientVelocity

      private Vec3d clientVelocity
      Mappings:
      Namespace Name Mixin selector
      official t Lcha;t:Lelt;
      intermediary field_45141 Lnet/minecraft/class_1688;field_45141:Lnet/minecraft/class_243;
      named clientVelocity Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;clientVelocity:Lnet/minecraft/util/math/Vec3d;
  • Constructor Details

    • AbstractMinecartEntity

      protected AbstractMinecartEntity(EntityType<?> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblv;<init>(Lblz;Lctp;)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
    • AbstractMinecartEntity

      protected AbstractMinecartEntity(EntityType<?> type, World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcha;<init>(Lblz;Lctp;DDD)V
      intermediary <init> Lnet/minecraft/class_1688;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;DDD)V
      named <init> Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;DDD)V
  • Method Details

    • create

      public static AbstractMinecartEntity create(ServerWorld world, double x, double y, double z, AbstractMinecartEntity.Type type, ItemStack stack, @Nullable @Nullable PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lcha;a(Land;DDDLcha$a;Lcmy;Lcfi;)Lcha;
      intermediary method_7523 Lnet/minecraft/class_1688;method_7523(Lnet/minecraft/class_3218;DDDLnet/minecraft/class_1688$class_1689;Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1688;
      named create Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;create(Lnet/minecraft/server/world/ServerWorld;DDDLnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;
    • getMoveEffect

      protected Entity.MoveEffect getMoveEffect()
      Returns the possible effect(s) of an entity moving.
      Overrides:
      getMoveEffect in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aW Lblv;aW()Lblv$b;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      named getMoveEffect Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class VehicleEntity
      Mappings:
      Namespace Name Mixin selector
      official c_ Lblv;c_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • collidesWith

      public boolean collidesWith(Entity other)
      Returns whether this entity cannot occupy the same space with other.

      This returns false if other is connected through vehicles.

      Overrides:
      collidesWith in class Entity
      Returns:
      whether this entity cannot occupy the same space with other
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lblv;h(Lblv;)Z
      intermediary method_30949 Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Z
      named collidesWith Lnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
    • isPushable

      public boolean isPushable()
      Returns whether the entity can be pushed by other entities.
      Overrides:
      isPushable in class Entity
      Returns:
      whether the entity can be pushed by other entities
      Mappings:
      Namespace Name Mixin selector
      official bu Lblv;bu()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
    • positionInPortal

      protected Vec3d positionInPortal(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect)
      Returns the entity's position in the portal after teleportation.
      Overrides:
      positionInPortal in class Entity
      Returns:
      the entity's position in the portal after teleportation
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lic$a;Ll$a;)Lelt;
      intermediary method_30633 Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;
      named positionInPortal Lnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
    • getPassengerAttachmentPos

      protected Vector3f getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor)
      Overrides:
      getPassengerAttachmentPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lblv;Lblw;F)Lorg/joml/Vector3f;
      intermediary method_52533 Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lorg/joml/Vector3f;
      named getPassengerAttachmentPos Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lorg/joml/Vector3f;
    • updatePassengerForDismount

      public Vec3d updatePassengerForDismount(LivingEntity passenger)
      Returns the position of the dismounted passenger.

      Vehicles should override this to return a suitable dismounting position for the passenger. Check the implementation of the subclass for details.

      Overrides:
      updatePassengerForDismount in class Entity
      Returns:
      the position of the dismounted passenger
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lblv;b(Lbml;)Lelt;
      intermediary method_24829 Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
      named updatePassengerForDismount Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
    • getVelocityMultiplier

      protected float getVelocityMultiplier()
      Overrides:
      getVelocityMultiplier in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aL Lblv;aL()F
      intermediary method_23326 Lnet/minecraft/class_1297;method_23326()F
      named getVelocityMultiplier Lnet/minecraft/entity/Entity;getVelocityMultiplier()F
    • animateDamage

      public void animateDamage(float yaw)
      Called on the client to animate the entity's damage (the wobble).
      Overrides:
      animateDamage in class Entity
      Mappings:
      Namespace Name Mixin selector
      official m Lblv;m(F)V
      intermediary method_5879 Lnet/minecraft/class_1297;method_5879(F)V
      named animateDamage Lnet/minecraft/entity/Entity;animateDamage(F)V
    • canHit

      public boolean canHit()
      Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.
      Overrides:
      canHit in class Entity
      Returns:
      whether the entity can be hit with a projectile or be targeted by the player crosshair
      Mappings:
      Namespace Name Mixin selector
      official bt Lblv;bt()Z
      intermediary method_5863 Lnet/minecraft/class_1297;method_5863()Z
      named canHit Lnet/minecraft/entity/Entity;canHit()Z
    • getAdjacentRailPositionsByShape

      private static com.mojang.datafixers.util.Pair<Vec3i,Vec3i> getAdjacentRailPositionsByShape(RailShape shape)
      Mappings:
      Namespace Name Mixin selector
      official a Lcha;a(Ldkl;)Lcom/mojang/datafixers/util/Pair;
      intermediary method_22864 Lnet/minecraft/class_1688;method_22864(Lnet/minecraft/class_2768;)Lcom/mojang/datafixers/util/Pair;
      named getAdjacentRailPositionsByShape Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getAdjacentRailPositionsByShape(Lnet/minecraft/block/enums/RailShape;)Lcom/mojang/datafixers/util/Pair;
    • getMovementDirection

      public Direction getMovementDirection()
      Overrides:
      getMovementDirection in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cF Lblv;cF()Lic;
      intermediary method_5755 Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;
      named getMovementDirection Lnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lblv;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • getMaxSpeed

      protected double getMaxSpeed()
      Mappings:
      Namespace Name Mixin selector
      official q Lcha;q()D
      intermediary method_7504 Lnet/minecraft/class_1688;method_7504()D
      named getMaxSpeed Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxSpeed()D
    • onActivatorRail

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

      protected void moveOffRail()
      Mappings:
      Namespace Name Mixin selector
      official s Lcha;s()V
      intermediary method_7512 Lnet/minecraft/class_1688;method_7512()V
      named moveOffRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOffRail()V
    • moveOnRail

      protected void moveOnRail(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official c Lcha;c(Lhx;Ldjh;)V
      intermediary method_7513 Lnet/minecraft/class_1688;method_7513(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named moveOnRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOnRail(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • isOnRail

      public boolean isOnRail()
      Overrides:
      isOnRail in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cf Lblv;cf()Z
      intermediary method_52172 Lnet/minecraft/class_1297;method_52172()Z
      named isOnRail Lnet/minecraft/entity/Entity;isOnRail()Z
    • willHitBlockAt

      private boolean willHitBlockAt(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcha;a(Lhx;)Z
      intermediary method_18803 Lnet/minecraft/class_1688;method_18803(Lnet/minecraft/class_2338;)Z
      named willHitBlockAt Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;willHitBlockAt(Lnet/minecraft/util/math/BlockPos;)Z
    • applySlowdown

      protected void applySlowdown()
      Mappings:
      Namespace Name Mixin selector
      official u Lcha;u()V
      intermediary method_7525 Lnet/minecraft/class_1688;method_7525()V
      named applySlowdown Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
    • snapPositionToRailWithOffset

      @Nullable public @Nullable Vec3d snapPositionToRailWithOffset(double x, double y, double z, double offset)
      This method is used to determine the minecart's render orientation, by computing a position along the rail slightly before and slightly after the minecart's actual position.
      Mappings:
      Namespace Name Mixin selector
      official a Lcha;a(DDDD)Lelt;
      intermediary method_7505 Lnet/minecraft/class_1688;method_7505(DDDD)Lnet/minecraft/class_243;
      named snapPositionToRailWithOffset Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRailWithOffset(DDDD)Lnet/minecraft/util/math/Vec3d;
    • snapPositionToRail

      @Nullable public @Nullable Vec3d snapPositionToRail(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official q Lcha;q(DDD)Lelt;
      intermediary method_7508 Lnet/minecraft/class_1688;method_7508(DDD)Lnet/minecraft/class_243;
      named snapPositionToRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;snapPositionToRail(DDD)Lnet/minecraft/util/math/Vec3d;
    • getVisibilityBoundingBox

      public Box getVisibilityBoundingBox()
      Overrides:
      getVisibilityBoundingBox in class Entity
      Mappings:
      Namespace Name Mixin selector
      official i_ Lblv;i_()Lelo;
      intermediary method_5830 Lnet/minecraft/class_1297;method_5830()Lnet/minecraft/class_238;
      named getVisibilityBoundingBox Lnet/minecraft/entity/Entity;getVisibilityBoundingBox()Lnet/minecraft/util/math/Box;
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Specified by:
      readCustomDataFromNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(Lsn;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Specified by:
      writeCustomDataToNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lblv;b(Lsn;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • pushAwayFrom

      public void pushAwayFrom(Entity entity)
      Overrides:
      pushAwayFrom in class Entity
      Mappings:
      Namespace Name Mixin selector
      official g Lblv;g(Lblv;)V
      intermediary method_5697 Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V
      named pushAwayFrom Lnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
    • updateTrackedPositionAndAngles

      public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps)
      Overrides:
      updateTrackedPositionAndAngles in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lblv;a(DDDFFI)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFI)V
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
    • getLerpTargetX

      public double getLerpTargetX()
      Overrides:
      getLerpTargetX in class Entity
      Mappings:
      Namespace Name Mixin selector
      official p_ Lblv;p_()D
      intermediary method_53830 Lnet/minecraft/class_1297;method_53830()D
      named getLerpTargetX Lnet/minecraft/entity/Entity;getLerpTargetX()D
    • getLerpTargetY

      public double getLerpTargetY()
      Overrides:
      getLerpTargetY in class Entity
      Mappings:
      Namespace Name Mixin selector
      official N_ Lblv;N_()D
      intermediary method_53827 Lnet/minecraft/class_1297;method_53827()D
      named getLerpTargetY Lnet/minecraft/entity/Entity;getLerpTargetY()D
    • getLerpTargetZ

      public double getLerpTargetZ()
      Overrides:
      getLerpTargetZ in class Entity
      Mappings:
      Namespace Name Mixin selector
      official O_ Lblv;O_()D
      intermediary method_53828 Lnet/minecraft/class_1297;method_53828()D
      named getLerpTargetZ Lnet/minecraft/entity/Entity;getLerpTargetZ()D
    • getLerpTargetPitch

      public float getLerpTargetPitch()
      Overrides:
      getLerpTargetPitch in class Entity
      Mappings:
      Namespace Name Mixin selector
      official f_ Lblv;f_()F
      intermediary method_53829 Lnet/minecraft/class_1297;method_53829()F
      named getLerpTargetPitch Lnet/minecraft/entity/Entity;getLerpTargetPitch()F
    • getLerpTargetYaw

      public float getLerpTargetYaw()
      Overrides:
      getLerpTargetYaw in class Entity
      Mappings:
      Namespace Name Mixin selector
      official q_ Lblv;q_()F
      intermediary method_53831 Lnet/minecraft/class_1297;method_53831()F
      named getLerpTargetYaw Lnet/minecraft/entity/Entity;getLerpTargetYaw()F
    • setVelocityClient

      public void setVelocityClient(double x, double y, double z)
      Overrides:
      setVelocityClient in class Entity
      Mappings:
      Namespace Name Mixin selector
      official l Lblv;l(DDD)V
      intermediary method_5750 Lnet/minecraft/class_1297;method_5750(DDD)V
      named setVelocityClient Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
    • getMinecartType

      public abstract AbstractMinecartEntity.Type getMinecartType()
      Mappings:
      Namespace Name Mixin selector
      official w Lcha;w()Lcha$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;
    • getContainedBlock

      public BlockState getContainedBlock()
      Mappings:
      Namespace Name Mixin selector
      official x Lcha;x()Ldjh;
      intermediary method_7519 Lnet/minecraft/class_1688;method_7519()Lnet/minecraft/class_2680;
      named getContainedBlock Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getContainedBlock()Lnet/minecraft/block/BlockState;
    • getDefaultContainedBlock

      public BlockState getDefaultContainedBlock()
      Mappings:
      Namespace Name Mixin selector
      official y Lcha;y()Ldjh;
      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;
    • getBlockOffset

      public int getBlockOffset()
      Mappings:
      Namespace Name Mixin selector
      official z Lcha;z()I
      intermediary method_7514 Lnet/minecraft/class_1688;method_7514()I
      named getBlockOffset Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getBlockOffset()I
    • getDefaultBlockOffset

      public int getDefaultBlockOffset()
      Mappings:
      Namespace Name Mixin selector
      official A Lcha;A()I
      intermediary method_7526 Lnet/minecraft/class_1688;method_7526()I
      named getDefaultBlockOffset Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()I
    • setCustomBlock

      public void setCustomBlock(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official c Lcha;c(Ldjh;)V
      intermediary method_7527 Lnet/minecraft/class_1688;method_7527(Lnet/minecraft/class_2680;)V
      named setCustomBlock Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlock(Lnet/minecraft/block/BlockState;)V
    • setCustomBlockOffset

      public void setCustomBlockOffset(int offset)
      Mappings:
      Namespace Name Mixin selector
      official c Lcha;c(I)V
      intermediary method_7515 Lnet/minecraft/class_1688;method_7515(I)V
      named setCustomBlockOffset Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockOffset(I)V
    • hasCustomBlock

      public boolean hasCustomBlock()
      Mappings:
      Namespace Name Mixin selector
      official B Lcha;B()Z
      intermediary method_7510 Lnet/minecraft/class_1688;method_7510()Z
      named hasCustomBlock Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;hasCustomBlock()Z
    • setCustomBlockPresent

      public void setCustomBlockPresent(boolean present)
      Mappings:
      Namespace Name Mixin selector
      official a Lcha;a(Z)V
      intermediary method_7511 Lnet/minecraft/class_1688;method_7511(Z)V
      named setCustomBlockPresent Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockPresent(Z)V
    • 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.

      Overrides:
      getPickBlockStack in class Entity
      Returns:
      the stack for creative "pick block" functionality, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      official dz Lblv;dz()Lcmy;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;