Class AbstractMinecartEntity

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

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

    • VILLAGER_PASSENGER_ATTACHMENT_POS Link icon

      private static final Vec3d VILLAGER_PASSENGER_ATTACHMENT_POS
      Mappings:
      Namespace Name Mixin selector
      named VILLAGER_PASSENGER_ATTACHMENT_POS Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;VILLAGER_PASSENGER_ATTACHMENT_POS:Lnet/minecraft/util/math/Vec3d;
      intermediary field_47822 Lnet/minecraft/class_1688;field_47822:Lnet/minecraft/class_243;
      official b Lcqx;b:Lfbb;
    • CUSTOM_BLOCK_ID Link icon

      private static final TrackedData<Integer> CUSTOM_BLOCK_ID
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM_BLOCK_ID Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_ID:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7671 Lnet/minecraft/class_1688;field_7671:Lnet/minecraft/class_2940;
      official c Lcqx;c:Lajy;
    • CUSTOM_BLOCK_OFFSET Link icon

      private static final TrackedData<Integer> CUSTOM_BLOCK_OFFSET
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM_BLOCK_OFFSET Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_OFFSET:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7661 Lnet/minecraft/class_1688;field_7661:Lnet/minecraft/class_2940;
      official d Lcqx;d:Lajy;
    • CUSTOM_BLOCK_PRESENT Link icon

      private static final TrackedData<Boolean> CUSTOM_BLOCK_PRESENT
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM_BLOCK_PRESENT Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;CUSTOM_BLOCK_PRESENT:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_7670 Lnet/minecraft/class_1688;field_7670:Lnet/minecraft/class_2940;
      official h Lcqx;h:Lajy;
    • DISMOUNT_FREE_Y_SPACES_NEEDED Link icon

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

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

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

      private boolean onRail
      Mappings:
      Namespace Name Mixin selector
      named onRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onRail:Z
      intermediary field_44917 Lnet/minecraft/class_1688;field_44917:Z
      official j Lcqx;j:Z
    • yawFlipped Link icon

      private boolean yawFlipped
      Mappings:
      Namespace Name Mixin selector
      named yawFlipped Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;yawFlipped:Z
      intermediary field_7660 Lnet/minecraft/class_1688;field_7660:Z
      official k Lcqx;k:Z
    • controller Link icon

      private final MinecartController controller
      Mappings:
      Namespace Name Mixin selector
      named controller Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;controller:Lnet/minecraft/entity/vehicle/MinecartController;
      intermediary field_52517 Lnet/minecraft/class_1688;field_52517:Lnet/minecraft/class_9878;
      official l Lcqx;l:Lcrf;
  • Constructor Details Link icon

    • AbstractMinecartEntity Link icon

      protected AbstractMinecartEntity(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> Lbum;<init>(Lbut;Ldgj;)V
    • AbstractMinecartEntity Link icon

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

    • initPosition Link icon

      public void initPosition(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named initPosition Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;initPosition(DDD)V
      intermediary method_64275 Lnet/minecraft/class_1688;method_64275(DDD)V
      official p Lcqx;p(DDD)V
    • create Link icon

      @Nullable public static <T extends AbstractMinecartEntity> T create(World world, double x, double y, double z, EntityType<T> type, SpawnReason reason, ItemStack stack, @Nullable @Nullable PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;create(Lnet/minecraft/world/World;DDDLnet/minecraft/entity/EntityType;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;
      intermediary method_7523 Lnet/minecraft/class_1688;method_7523(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1299;Lnet/minecraft/class_3730;Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1688;
      official a Lcqx;a(Ldgj;DDDLbut;Lbus;Lcwq;Lcoy;)Lcqx;
    • getController Link icon

      public MinecartController getController()
      Mappings:
      Namespace Name Mixin selector
      named getController Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getController()Lnet/minecraft/entity/vehicle/MinecartController;
      intermediary method_61569 Lnet/minecraft/class_1688;method_61569()Lnet/minecraft/class_9878;
      official l Lcqx;l()Lcrf;
    • getMoveEffect Link icon

      protected Entity.MoveEffect getMoveEffect()
      Returns the possible effect(s) of an entity moving.
      Overrides:
      getMoveEffect in class Entity
      Implementation Note:
      If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
      Mappings:
      Namespace Name Mixin selector
      named getMoveEffect Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      official bg Lbum;bg()Lbum$c;
    • initDataTracker Link icon

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class VehicleEntity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbum;a(Lakc$a;)V
    • collidesWith Link icon

      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
      named collidesWith Lnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
      intermediary method_30949 Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Z
      official i Lbum;i(Lbum;)Z
    • isPushable Link icon

      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
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      official bI Lbum;bI()Z
    • positionInPortal Link icon

      public 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
      named positionInPortal Lnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
      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;
      official a Lbum;a(Ljn$a;Ll$a;)Lfbb;
    • getPassengerAttachmentPos Link icon

      protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor)
      Overrides:
      getPassengerAttachmentPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getPassengerAttachmentPos Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;
      intermediary method_52533 Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;
      official a Lbum;a(Lbum;Lbup;F)Lfbb;
    • updatePassengerForDismount Link icon

      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
      named updatePassengerForDismount Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_24829 Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
      official b Lbum;b(Lbvi;)Lfbb;
    • getVelocityMultiplier Link icon

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

      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
      named animateDamage Lnet/minecraft/entity/Entity;animateDamage(F)V
      intermediary method_5879 Lnet/minecraft/class_1297;method_5879(F)V
      official p Lbum;p(F)V
    • canHit Link icon

      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
      named canHit Lnet/minecraft/entity/Entity;canHit()Z
      intermediary method_5863 Lnet/minecraft/class_1297;method_5863()Z
      official bH Lbum;bH()Z
    • getAdjacentRailPositionsByShape Link icon

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

      public Direction getMovementDirection()
      Overrides:
      getMovementDirection in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getMovementDirection Lnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
      intermediary method_5755 Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;
      official cP Lbum;cP()Ljn;
    • getGravity Link icon

      protected double getGravity()
      Overrides:
      getGravity in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getGravity Lnet/minecraft/entity/Entity;getGravity()D
      intermediary method_7490 Lnet/minecraft/class_1297;method_7490()D
      official bd Lbum;bd()D
    • tick Link icon

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      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 Lbum;h()V
    • isFirstUpdate Link icon

      public boolean isFirstUpdate()
      Mappings:
      Namespace Name Mixin selector
      named isFirstUpdate Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isFirstUpdate()Z
      intermediary method_62824 Lnet/minecraft/class_1688;method_62824()Z
      official m Lcqx;m()Z
    • getRailOrMinecartPos Link icon

      public BlockPos getRailOrMinecartPos()
      Mappings:
      Namespace Name Mixin selector
      named getRailOrMinecartPos Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getRailOrMinecartPos()Lnet/minecraft/util/math/BlockPos;
      intermediary method_62825 Lnet/minecraft/class_1688;method_62825()Lnet/minecraft/class_2338;
      official p Lcqx;p()Lji;
    • getMaxSpeed Link icon

      protected double getMaxSpeed(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named getMaxSpeed Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMaxSpeed(Lnet/minecraft/server/world/ServerWorld;)D
      intermediary method_7504 Lnet/minecraft/class_1688;method_7504(Lnet/minecraft/class_3218;)D
      official a Lcqx;a(Lard;)D
    • onActivatorRail Link icon

      public void onActivatorRail(int x, int y, int z, boolean powered)
      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 Lcqx;a(IIIZ)V
    • lerpPosAndRotation Link icon

      public void lerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch)
      Overrides:
      lerpPosAndRotation in class Entity
      Mappings:
      Namespace Name Mixin selector
      named lerpPosAndRotation Lnet/minecraft/entity/Entity;lerpPosAndRotation(IDDDDD)V
      intermediary method_52532 Lnet/minecraft/class_1297;method_52532(IDDDDD)V
      official a Lbum;a(IDDDDD)V
    • applyGravity Link icon

      public void applyGravity()
      Overrides:
      applyGravity in class Entity
      Mappings:
      Namespace Name Mixin selector
      named applyGravity Lnet/minecraft/entity/Entity;applyGravity()V
      intermediary method_56990 Lnet/minecraft/class_1297;method_56990()V
      official bf Lbum;bf()V
    • refreshPosition Link icon

      public void refreshPosition()
      Overrides:
      refreshPosition in class Entity
      Mappings:
      Namespace Name Mixin selector
      named refreshPosition Lnet/minecraft/entity/Entity;refreshPosition()V
      intermediary method_23311 Lnet/minecraft/class_1297;method_23311()V
      official ay Lbum;ay()V
    • updateWaterState Link icon

      public boolean updateWaterState()
      Overrides:
      updateWaterState in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updateWaterState Lnet/minecraft/entity/Entity;updateWaterState()Z
      intermediary method_5876 Lnet/minecraft/class_1297;method_5876()Z
      official bq Lbum;bq()Z
    • getMovement Link icon

      public Vec3d getMovement()
      Overrides:
      getMovement in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getMovement Lnet/minecraft/entity/Entity;getMovement()Lnet/minecraft/util/math/Vec3d;
      intermediary method_60478 Lnet/minecraft/class_1297;method_60478()Lnet/minecraft/class_243;
      official ah Lbum;ah()Lfbb;
    • resetLerp Link icon

      public void resetLerp()
      Overrides:
      resetLerp in class Entity
      Mappings:
      Namespace Name Mixin selector
      named resetLerp Lnet/minecraft/entity/Entity;resetLerp()V
      intermediary method_64610 Lnet/minecraft/class_1297;method_64610()V
      official f_ Lbum;f_()V
    • updateTrackedPositionAndAngles Link icon

      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
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFI)V
      official a Lbum;a(DDDFFI)V
    • getLerpTargetX Link icon

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

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

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

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

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

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

      protected void moveOnRail(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named moveOnRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOnRail(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_7513 Lnet/minecraft/class_1688;method_7513(Lnet/minecraft/class_3218;)V
      official b Lcqx;b(Lard;)V
    • moveOffRail Link icon

      protected void moveOffRail(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named moveOffRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveOffRail(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary method_7512 Lnet/minecraft/class_1688;method_7512(Lnet/minecraft/class_3218;)V
      official e Lcqx;e(Lard;)V
    • moveAlongTrack Link icon

      protected double moveAlongTrack(BlockPos pos, RailShape shape, double remainingMovement)
      Mappings:
      Namespace Name Mixin selector
      named moveAlongTrack Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;moveAlongTrack(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/enums/RailShape;D)D
      intermediary method_61564 Lnet/minecraft/class_1688;method_61564(Lnet/minecraft/class_2338;Lnet/minecraft/class_2768;D)D
      official a Lcqx;a(Lji;Ldyb;D)D
    • move Link icon

      public void move(MovementType type, Vec3d movement)
      Overrides:
      move in class Entity
      Mappings:
      Namespace Name Mixin selector
      named move Lnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_5784 Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V
      official a Lbum;a(Lbvm;Lfbb;)V
    • tickBlockCollision Link icon

      public void tickBlockCollision()
      Overrides:
      tickBlockCollision in class Entity
      Mappings:
      Namespace Name Mixin selector
      named tickBlockCollision Lnet/minecraft/entity/Entity;tickBlockCollision()V
      intermediary method_61409 Lnet/minecraft/class_1297;method_61409()V
      official aK Lbum;aK()V
    • isOnRail Link icon

      public boolean isOnRail()
      Overrides:
      isOnRail in class Entity
      Mappings:
      Namespace Name Mixin selector
      named isOnRail Lnet/minecraft/entity/Entity;isOnRail()Z
      intermediary method_52172 Lnet/minecraft/class_1297;method_52172()Z
      official cq Lbum;cq()Z
    • setOnRail Link icon

      public void setOnRail(boolean onRail)
      Mappings:
      Namespace Name Mixin selector
      named setOnRail Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setOnRail(Z)V
      intermediary method_61565 Lnet/minecraft/class_1688;method_61565(Z)V
      official a Lcqx;a(Z)V
    • isYawFlipped Link icon

      public boolean isYawFlipped()
      Mappings:
      Namespace Name Mixin selector
      named isYawFlipped Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isYawFlipped()Z
      intermediary method_61571 Lnet/minecraft/class_1688;method_61571()Z
      official s Lcqx;s()Z
    • setYawFlipped Link icon

      public void setYawFlipped(boolean yawFlipped)
      Mappings:
      Namespace Name Mixin selector
      named setYawFlipped Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setYawFlipped(Z)V
      intermediary method_61567 Lnet/minecraft/class_1688;method_61567(Z)V
      official b Lcqx;b(Z)V
    • getLaunchDirection Link icon

      public Vec3d getLaunchDirection(BlockPos railPos)
      Mappings:
      Namespace Name Mixin selector
      named getLaunchDirection Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getLaunchDirection(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_61563 Lnet/minecraft/class_1688;method_61563(Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;
      official a Lcqx;a(Lji;)Lfbb;
    • willHitBlockAt Link icon

      public boolean willHitBlockAt(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named willHitBlockAt Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;willHitBlockAt(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_18803 Lnet/minecraft/class_1688;method_18803(Lnet/minecraft/class_2338;)Z
      official b Lcqx;b(Lji;)Z
    • applySlowdown Link icon

      protected Vec3d applySlowdown(Vec3d velocity)
      Mappings:
      Namespace Name Mixin selector
      named applySlowdown Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_7525 Lnet/minecraft/class_1688;method_7525(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      official a Lcqx;a(Lfbb;)Lfbb;
    • readCustomDataFromNbt Link icon

      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
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbum;a(Ltq;)V
    • writeCustomDataToNbt Link icon

      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
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbum;b(Ltq;)V
    • pushAwayFrom Link icon

      public void pushAwayFrom(Entity entity)
      Overrides:
      pushAwayFrom in class Entity
      Mappings:
      Namespace Name Mixin selector
      named pushAwayFrom Lnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
      intermediary method_5697 Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V
      official h Lbum;h(Lbum;)V
    • pushAwayFromMinecart Link icon

      private void pushAwayFromMinecart(AbstractMinecartEntity entity, double xDiff, double zDiff)
      Mappings:
      Namespace Name Mixin selector
      named pushAwayFromMinecart Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;pushAwayFromMinecart(Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;DD)V
      intermediary method_64274 Lnet/minecraft/class_1688;method_64274(Lnet/minecraft/class_1688;DD)V
      official a Lcqx;a(Lcqx;DD)V
    • getContainedBlock Link icon

      public BlockState getContainedBlock()
      Mappings:
      Namespace Name Mixin selector
      named getContainedBlock Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getContainedBlock()Lnet/minecraft/block/BlockState;
      intermediary method_7519 Lnet/minecraft/class_1688;method_7519()Lnet/minecraft/class_2680;
      official t Lcqx;t()Ldwy;
    • getDefaultContainedBlock Link icon

      public BlockState getDefaultContainedBlock()
      Mappings:
      Namespace Name Mixin selector
      named getDefaultContainedBlock Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;
      intermediary method_7517 Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;
      official w Lcqx;w()Ldwy;
    • getBlockOffset Link icon

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

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

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

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

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

      public void setCustomBlockPresent(boolean present)
      Mappings:
      Namespace Name Mixin selector
      named setCustomBlockPresent Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;setCustomBlockPresent(Z)V
      intermediary method_7511 Lnet/minecraft/class_1688;method_7511(Z)V
      official r Lcqx;r(Z)V
    • areMinecartImprovementsEnabled Link icon

      public static boolean areMinecartImprovementsEnabled(World world)
      Mappings:
      Namespace Name Mixin selector
      named areMinecartImprovementsEnabled Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;areMinecartImprovementsEnabled(Lnet/minecraft/world/World;)Z
      intermediary method_61566 Lnet/minecraft/class_1688;method_61566(Lnet/minecraft/class_1937;)Z
      official b Lcqx;b(Ldgj;)Z
    • getPickBlockStack Link icon

      public abstract 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
      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 dI Lbum;dI()Lcwq;
    • isRideable Link icon

      public boolean isRideable()
      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 B Lcqx;B()Z
    • isSelfPropelling Link icon

      public boolean isSelfPropelling()
      Mappings:
      Namespace Name Mixin selector
      named isSelfPropelling Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;isSelfPropelling()Z
      intermediary method_64273 Lnet/minecraft/class_1688;method_64273()Z
      official C Lcqx;C()Z