Package net.minecraft

Class class_10255

All Implemented Interfaces:
DataTracked, Leashable, ScoreHolder, Nameable, EntityLike
Direct Known Subclasses:
BoatEntity, class_10256, class_10258

public abstract class class_10255 extends VehicleEntity implements Leashable
Mappings:
Namespace Name
named net/minecraft/class_10255
intermediary net/minecraft/class_10255
official cqr
  • Field Details

    • field_54448

      private static final TrackedData<Boolean> field_54448
      Mappings:
      Namespace Name Mixin selector
      named field_54448 Lnet/minecraft/class_10255;field_54448:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_54448 Lnet/minecraft/class_10255;field_54448:Lnet/minecraft/class_2940;
      official h Lcqr;h:Lakm;
    • field_54449

      private static final TrackedData<Boolean> field_54449
      Mappings:
      Namespace Name Mixin selector
      named field_54449 Lnet/minecraft/class_10255;field_54449:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_54449 Lnet/minecraft/class_10255;field_54449:Lnet/minecraft/class_2940;
      official i Lcqr;i:Lakm;
    • field_54450

      private static final TrackedData<Integer> field_54450
      Mappings:
      Namespace Name Mixin selector
      named field_54450 Lnet/minecraft/class_10255;field_54450:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_54450 Lnet/minecraft/class_10255;field_54450:Lnet/minecraft/class_2940;
      official j Lcqr;j:Lakm;
    • field_54427

      public static final int field_54427
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54427 Lnet/minecraft/class_10255;field_54427:I
      intermediary field_54427 Lnet/minecraft/class_10255;field_54427:I
      official a Lcqr;a:I
    • field_54445

      public static final int field_54445
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54445 Lnet/minecraft/class_10255;field_54445:I
      intermediary field_54445 Lnet/minecraft/class_10255;field_54445:I
      official b Lcqr;b:I
    • field_54451

      private static final int field_54451
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54451 Lnet/minecraft/class_10255;field_54451:I
      intermediary field_54451 Lnet/minecraft/class_10255;field_54451:I
      official k Lcqr;k:I
    • field_54452

      private static final float field_54452
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54452 Lnet/minecraft/class_10255;field_54452:F
      intermediary field_54452 Lnet/minecraft/class_10255;field_54452:F
      official l Lcqr;l:F
    • field_54446

      public static final double field_54446
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54446 Lnet/minecraft/class_10255;field_54446:D
      intermediary field_54446 Lnet/minecraft/class_10255;field_54446:D
      official c Lcqr;c:D
    • field_54447

      public static final int field_54447
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54447 Lnet/minecraft/class_10255;field_54447:I
      intermediary field_54447 Lnet/minecraft/class_10255;field_54447:I
      official d Lcqr;d:I
    • field_54453

      private final float[] field_54453
      Mappings:
      Namespace Name Mixin selector
      named field_54453 Lnet/minecraft/class_10255;field_54453:[F
      intermediary field_54453 Lnet/minecraft/class_10255;field_54453:[F
      official m Lcqr;m:[F
    • field_54454

      private float field_54454
      Mappings:
      Namespace Name Mixin selector
      named field_54454 Lnet/minecraft/class_10255;field_54454:F
      intermediary field_54454 Lnet/minecraft/class_10255;field_54454:F
      official n Lcqr;n:F
    • field_54455

      private float field_54455
      Mappings:
      Namespace Name Mixin selector
      named field_54455 Lnet/minecraft/class_10255;field_54455:F
      intermediary field_54455 Lnet/minecraft/class_10255;field_54455:F
      official o Lcqr;o:F
    • field_54456

      private float field_54456
      Mappings:
      Namespace Name Mixin selector
      named field_54456 Lnet/minecraft/class_10255;field_54456:F
      intermediary field_54456 Lnet/minecraft/class_10255;field_54456:F
      official p Lcqr;p:F
    • field_54457

      private int field_54457
      Mappings:
      Namespace Name Mixin selector
      named field_54457 Lnet/minecraft/class_10255;field_54457:I
      intermediary field_54457 Lnet/minecraft/class_10255;field_54457:I
      official q Lcqr;q:I
    • field_54458

      private double field_54458
      Mappings:
      Namespace Name Mixin selector
      named field_54458 Lnet/minecraft/class_10255;field_54458:D
      intermediary field_54458 Lnet/minecraft/class_10255;field_54458:D
      official r Lcqr;r:D
    • field_54459

      private double field_54459
      Mappings:
      Namespace Name Mixin selector
      named field_54459 Lnet/minecraft/class_10255;field_54459:D
      intermediary field_54459 Lnet/minecraft/class_10255;field_54459:D
      official s Lcqr;s:D
    • field_54460

      private double field_54460
      Mappings:
      Namespace Name Mixin selector
      named field_54460 Lnet/minecraft/class_10255;field_54460:D
      intermediary field_54460 Lnet/minecraft/class_10255;field_54460:D
      official t Lcqr;t:D
    • field_54461

      private double field_54461
      Mappings:
      Namespace Name Mixin selector
      named field_54461 Lnet/minecraft/class_10255;field_54461:D
      intermediary field_54461 Lnet/minecraft/class_10255;field_54461:D
      official u Lcqr;u:D
    • field_54443

      private double field_54443
      Mappings:
      Namespace Name Mixin selector
      named field_54443 Lnet/minecraft/class_10255;field_54443:D
      intermediary field_54443 Lnet/minecraft/class_10255;field_54443:D
      official ay Lcqr;ay:D
    • field_54444

      private boolean field_54444
      Mappings:
      Namespace Name Mixin selector
      named field_54444 Lnet/minecraft/class_10255;field_54444:Z
      intermediary field_54444 Lnet/minecraft/class_10255;field_54444:Z
      official az Lcqr;az:Z
    • field_54428

      private boolean field_54428
      Mappings:
      Namespace Name Mixin selector
      named field_54428 Lnet/minecraft/class_10255;field_54428:Z
      intermediary field_54428 Lnet/minecraft/class_10255;field_54428:Z
      official aA Lcqr;aA:Z
    • field_54429

      private boolean field_54429
      Mappings:
      Namespace Name Mixin selector
      named field_54429 Lnet/minecraft/class_10255;field_54429:Z
      intermediary field_54429 Lnet/minecraft/class_10255;field_54429:Z
      official aB Lcqr;aB:Z
    • field_54430

      private boolean field_54430
      Mappings:
      Namespace Name Mixin selector
      named field_54430 Lnet/minecraft/class_10255;field_54430:Z
      intermediary field_54430 Lnet/minecraft/class_10255;field_54430:Z
      official aC Lcqr;aC:Z
    • field_54431

      private double field_54431
      Mappings:
      Namespace Name Mixin selector
      named field_54431 Lnet/minecraft/class_10255;field_54431:D
      intermediary field_54431 Lnet/minecraft/class_10255;field_54431:D
      official aD Lcqr;aD:D
    • field_54432

      private float field_54432
      Mappings:
      Namespace Name Mixin selector
      named field_54432 Lnet/minecraft/class_10255;field_54432:F
      intermediary field_54432 Lnet/minecraft/class_10255;field_54432:F
      official aE Lcqr;aE:F
    • field_54433

      private class_10255.Location field_54433
      Mappings:
      Namespace Name Mixin selector
      named field_54433 Lnet/minecraft/class_10255;field_54433:Lnet/minecraft/class_10255$Location;
      intermediary field_54433 Lnet/minecraft/class_10255;field_54433:Lnet/minecraft/class_10255$class_1691;
      official aF Lcqr;aF:Lcqr$a;
    • field_54434

      private class_10255.Location field_54434
      Mappings:
      Namespace Name Mixin selector
      named field_54434 Lnet/minecraft/class_10255;field_54434:Lnet/minecraft/class_10255$Location;
      intermediary field_54434 Lnet/minecraft/class_10255;field_54434:Lnet/minecraft/class_10255$class_1691;
      official aG Lcqr;aG:Lcqr$a;
    • field_54435

      private double field_54435
      Mappings:
      Namespace Name Mixin selector
      named field_54435 Lnet/minecraft/class_10255;field_54435:D
      intermediary field_54435 Lnet/minecraft/class_10255;field_54435:D
      official aH Lcqr;aH:D
    • field_54436

      private boolean field_54436
      Mappings:
      Namespace Name Mixin selector
      named field_54436 Lnet/minecraft/class_10255;field_54436:Z
      intermediary field_54436 Lnet/minecraft/class_10255;field_54436:Z
      official aI Lcqr;aI:Z
    • field_54437

      private boolean field_54437
      Mappings:
      Namespace Name Mixin selector
      named field_54437 Lnet/minecraft/class_10255;field_54437:Z
      intermediary field_54437 Lnet/minecraft/class_10255;field_54437:Z
      official aJ Lcqr;aJ:Z
    • field_54438

      private float field_54438
      Mappings:
      Namespace Name Mixin selector
      named field_54438 Lnet/minecraft/class_10255;field_54438:F
      intermediary field_54438 Lnet/minecraft/class_10255;field_54438:F
      official aK Lcqr;aK:F
    • field_54439

      private float field_54439
      Mappings:
      Namespace Name Mixin selector
      named field_54439 Lnet/minecraft/class_10255;field_54439:F
      intermediary field_54439 Lnet/minecraft/class_10255;field_54439:F
      official aL Lcqr;aL:F
    • field_54440

      private float field_54440
      Mappings:
      Namespace Name Mixin selector
      named field_54440 Lnet/minecraft/class_10255;field_54440:F
      intermediary field_54440 Lnet/minecraft/class_10255;field_54440:F
      official aM Lcqr;aM:F
    • field_54441

      @Nullable private Leashable.LeashData field_54441
      Mappings:
      Namespace Name Mixin selector
      named field_54441 Lnet/minecraft/class_10255;field_54441:Lnet/minecraft/entity/Leashable$LeashData;
      intermediary field_54441 Lnet/minecraft/class_10255;field_54441:Lnet/minecraft/class_9817$class_9818;
      official aN Lcqr;aN:Lbvf$a;
    • field_54442

      private final Supplier<Item> field_54442
      Mappings:
      Namespace Name Mixin selector
      named field_54442 Lnet/minecraft/class_10255;field_54442:Ljava/util/function/Supplier;
      intermediary field_54442 Lnet/minecraft/class_10255;field_54442:Ljava/util/function/Supplier;
      official aO Lcqr;aO:Ljava/util/function/Supplier;
  • Constructor Details

  • Method Details

    • method_64498

      public void method_64498(double double2, double double3, double double4)
      Mappings:
      Namespace Name Mixin selector
      named method_64498 Lnet/minecraft/class_10255;method_64498(DDD)V
      intermediary method_64498 Lnet/minecraft/class_10255;method_64498(DDD)V
      official p Lcqr;p(DDD)V
    • getMoveEffect

      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 Lbul;bg()Lbul$b;
    • initDataTracker

      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 Lbul;a(Lakq$a;)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
      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 Lbul;i(Lbul;)Z
    • method_64486

      public static boolean method_64486(Entity entity, Entity entity2)
      Mappings:
      Namespace Name Mixin selector
      named method_64486 Lnet/minecraft/class_10255;method_64486(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Z
      intermediary method_64486 Lnet/minecraft/class_10255;method_64486(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Z
      official a Lcqr;a(Lbul;Lbul;)Z
    • isCollidable

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

      If true, other entities can stand on this entity without falling. BoatEntity and ShulkerEntity has this behavior.

      Overrides:
      isCollidable in class Entity
      Returns:
      whether other entities cannot occupy the same space with this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named isCollidable Lnet/minecraft/entity/Entity;isCollidable()Z
      intermediary method_30948 Lnet/minecraft/class_1297;method_30948()Z
      official bN Lbul;bN()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
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      official bI Lbul;bI()Z
    • positionInPortal

      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 Lbul;a(Ljm$a;Ll$a;)Lezy;
    • method_64489

      protected abstract double method_64489(EntityDimensions entityDimensions)
      Mappings:
      Namespace Name Mixin selector
      named method_64489 Lnet/minecraft/class_10255;method_64489(Lnet/minecraft/entity/EntityDimensions;)D
      intermediary method_64489 Lnet/minecraft/class_10255;method_64489(Lnet/minecraft/class_4048;)D
      official b Lcqr;b(Lbuo;)D
    • getPassengerAttachmentPos

      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 Lbul;a(Lbul;Lbuo;F)Lezy;
    • onBubbleColumnSurfaceCollision

      public void onBubbleColumnSurfaceCollision(boolean drag)
      Called when the entity collides with a bubble column with an air above.

      This applies the bubble column velocity by default. BoatEntity uses this to spawn splash particles.

      Overrides:
      onBubbleColumnSurfaceCollision in class Entity
      Parameters:
      drag - whether the entity should be dragged downwards
      Mappings:
      Namespace Name Mixin selector
      named onBubbleColumnSurfaceCollision Lnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(Z)V
      intermediary method_5700 Lnet/minecraft/class_1297;method_5700(Z)V
      official l Lbul;l(Z)V
    • pushAwayFrom

      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 Lbul;h(Lbul;)V
    • 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
      named animateDamage Lnet/minecraft/entity/Entity;animateDamage(F)V
      intermediary method_5879 Lnet/minecraft/class_1297;method_5879(F)V
      official p Lbul;p(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
      named canHit Lnet/minecraft/entity/Entity;canHit()Z
      intermediary method_5863 Lnet/minecraft/class_1297;method_5863()Z
      official bH Lbul;bH()Z
    • 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
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFI)V
      official a Lbul;a(DDDFFI)V
    • getLerpTargetX

      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 f_ Lbul;f_()D
    • getLerpTargetY

      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 P_ Lbul;P_()D
    • getLerpTargetZ

      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 Q_ Lbul;Q_()D
    • getLerpTargetPitch

      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 g_ Lbul;g_()F
    • getLerpTargetYaw

      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 q_ Lbul;q_()F
    • getMovementDirection

      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 Lbul;cP()Ljm;
    • tick

      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 Lbul;h()V
    • method_64476

      private void method_64476()
      Mappings:
      Namespace Name Mixin selector
      named method_64476 Lnet/minecraft/class_10255;method_64476()V
      intermediary method_64476 Lnet/minecraft/class_10255;method_64476()V
      official D Lcqr;D()V
    • method_64494

      @Nullable protected @Nullable SoundEvent method_64494()
      Mappings:
      Namespace Name Mixin selector
      named method_64494 Lnet/minecraft/class_10255;method_64494()Lnet/minecraft/sound/SoundEvent;
      intermediary method_64494 Lnet/minecraft/class_10255;method_64494()Lnet/minecraft/class_3414;
      official j Lcqr;j()Lawm;
    • method_64477

      private void method_64477()
      Mappings:
      Namespace Name Mixin selector
      named method_64477 Lnet/minecraft/class_10255;method_64477()V
      intermediary method_64477 Lnet/minecraft/class_10255;method_64477()V
      official E Lcqr;E()V
    • method_64490

      public void method_64490(boolean bool, boolean bool2)
      Mappings:
      Namespace Name Mixin selector
      named method_64490 Lnet/minecraft/class_10255;method_64490(ZZ)V
      intermediary method_64490 Lnet/minecraft/class_10255;method_64490(ZZ)V
      official b Lcqr;b(ZZ)V
    • method_64485

      public float method_64485(int int2, float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_64485 Lnet/minecraft/class_10255;method_64485(IF)F
      intermediary method_64485 Lnet/minecraft/class_10255;method_64485(IF)F
      official a Lcqr;a(IF)F
    • getLeashData

      @Nullable public Leashable.LeashData getLeashData()
      Specified by:
      getLeashData in interface Leashable
      Mappings:
      Namespace Name Mixin selector
      named getLeashData Lnet/minecraft/entity/Leashable;getLeashData()Lnet/minecraft/entity/Leashable$LeashData;
      intermediary method_60955 Lnet/minecraft/class_9817;method_60955()Lnet/minecraft/class_9817$class_9818;
      official R_ Lbvf;R_()Lbvf$a;
    • setLeashData

      public void setLeashData(@Nullable Leashable.LeashData leashData)
      Specified by:
      setLeashData in interface Leashable
      Mappings:
      Namespace Name Mixin selector
      named setLeashData Lnet/minecraft/entity/Leashable;setLeashData(Lnet/minecraft/entity/Leashable$LeashData;)V
      intermediary method_60960 Lnet/minecraft/class_9817;method_60960(Lnet/minecraft/class_9817$class_9818;)V
      official a Lbvf;a(Lbvf$a;)V
    • getLeashOffset

      public Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.

      Overrides:
      getLeashOffset in class Entity
      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      official cT Lbul;cT()Lezy;
    • applyLeashElasticity

      public void applyLeashElasticity(Entity leashHolder, float distance)
      Specified by:
      applyLeashElasticity in interface Leashable
      Mappings:
      Namespace Name Mixin selector
      named applyLeashElasticity Lnet/minecraft/entity/Leashable;applyLeashElasticity(Lnet/minecraft/entity/Entity;F)V
      intermediary method_61162 Lnet/minecraft/class_9817;method_61162(Lnet/minecraft/class_1297;F)V
      official b Lbvf;b(Lbul;F)V
    • method_64478

      private class_10255.Location method_64478()
      Mappings:
      Namespace Name Mixin selector
      named method_64478 Lnet/minecraft/class_10255;method_64478()Lnet/minecraft/class_10255$Location;
      intermediary method_64478 Lnet/minecraft/class_10255;method_64478()Lnet/minecraft/class_10255$class_1691;
      official F Lcqr;F()Lcqr$a;
    • method_64495

      public float method_64495()
      Mappings:
      Namespace Name Mixin selector
      named method_64495 Lnet/minecraft/class_10255;method_64495()F
      intermediary method_64495 Lnet/minecraft/class_10255;method_64495()F
      official l Lcqr;l()F
    • method_64497

      public float method_64497()
      Mappings:
      Namespace Name Mixin selector
      named method_64497 Lnet/minecraft/class_10255;method_64497()F
      intermediary method_64497 Lnet/minecraft/class_10255;method_64497()F
      official n Lcqr;n()F
    • method_64479

      private boolean method_64479()
      Mappings:
      Namespace Name Mixin selector
      named method_64479 Lnet/minecraft/class_10255;method_64479()Z
      intermediary method_64479 Lnet/minecraft/class_10255;method_64479()Z
      official G Lcqr;G()Z
    • method_64480

      @Nullable private @Nullable class_10255.Location method_64480()
      Mappings:
      Namespace Name Mixin selector
      named method_64480 Lnet/minecraft/class_10255;method_64480()Lnet/minecraft/class_10255$Location;
      intermediary method_64480 Lnet/minecraft/class_10255;method_64480()Lnet/minecraft/class_10255$class_1691;
      official H Lcqr;H()Lcqr$a;
    • getGravity

      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 Lbul;bd()D
    • method_64481

      private void method_64481()
      Mappings:
      Namespace Name Mixin selector
      named method_64481 Lnet/minecraft/class_10255;method_64481()V
      intermediary method_64481 Lnet/minecraft/class_10255;method_64481()V
      official I Lcqr;I()V
    • method_64482

      private void method_64482()
      Mappings:
      Namespace Name Mixin selector
      named method_64482 Lnet/minecraft/class_10255;method_64482()V
      intermediary method_64482 Lnet/minecraft/class_10255;method_64482()V
      official J Lcqr;J()V
    • method_64499

      protected float method_64499()
      Mappings:
      Namespace Name Mixin selector
      named method_64499 Lnet/minecraft/class_10255;method_64499()F
      intermediary method_64499 Lnet/minecraft/class_10255;method_64499()F
      official q Lcqr;q()F
    • method_64488

      public boolean method_64488(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_64488 Lnet/minecraft/class_10255;method_64488(Lnet/minecraft/entity/Entity;)Z
      intermediary method_64488 Lnet/minecraft/class_10255;method_64488(Lnet/minecraft/class_1297;)Z
      official b Lcqr;b(Lbul;)Z
    • 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 Lbul;a(Lbul;Lbul$a;)V
    • 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
      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 Lbul;b(Lbvh;)Lezy;
    • method_64492

      protected void method_64492(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_64492 Lnet/minecraft/class_10255;method_64492(Lnet/minecraft/entity/Entity;)V
      intermediary method_64492 Lnet/minecraft/class_10255;method_64492(Lnet/minecraft/class_1297;)V
      official c Lcqr;c(Lbul;)V
    • onPassengerLookAround

      public void onPassengerLookAround(Entity passenger)
      Overrides:
      onPassengerLookAround in class Entity
      Mappings:
      Namespace Name Mixin selector
      named onPassengerLookAround Lnet/minecraft/entity/Entity;onPassengerLookAround(Lnet/minecraft/entity/Entity;)V
      intermediary method_5644 Lnet/minecraft/class_1297;method_5644(Lnet/minecraft/class_1297;)V
      official k Lbul;k(Lbul;)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
      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 Lbul;b(Lul;)V
    • 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
      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 Lbul;a(Lul;)V
    • 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 Lbul;a(Lcou;Lbsj;)Lbsk;
    • remove

      public void remove(Entity.RemovalReason reason)
      Removes the entity.
      Overrides:
      remove in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
      intermediary method_5650 Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
      official a Lbul;a(Lbul$c;)V
    • fall

      protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition)
      Called when the entity falls. Flying mobs should override this to do nothing.
      Overrides:
      fall in class Entity
      Implementation Note:
      If on ground, this calls Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, float), which can add or reduce fall damage, emits GameEvent.HIT_GROUND, then calls Entity.onLanding(). Otherwise, if heightDifference is negative, it subtracts that value from Entity.fallDistance.
      Mappings:
      Namespace Name Mixin selector
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      official a Lbul;a(DZLdvv;Ljh;)V
    • method_64491

      public boolean method_64491(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_64491 Lnet/minecraft/class_10255;method_64491(I)Z
      intermediary method_64491 Lnet/minecraft/class_10255;method_64491(I)Z
      official c Lcqr;c(I)Z
    • method_64496

      private void method_64496(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_64496 Lnet/minecraft/class_10255;method_64496(I)V
      intermediary method_64496 Lnet/minecraft/class_10255;method_64496(I)V
      official m Lcqr;m(I)V
    • method_64483

      private int method_64483()
      Mappings:
      Namespace Name Mixin selector
      named method_64483 Lnet/minecraft/class_10255;method_64483()I
      intermediary method_64483 Lnet/minecraft/class_10255;method_64483()I
      official O Lcqr;O()I
    • method_64484

      public float method_64484(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_64484 Lnet/minecraft/class_10255;method_64484(F)F
      intermediary method_64484 Lnet/minecraft/class_10255;method_64484(F)F
      official a Lcqr;a(F)F
    • canAddPassenger

      protected boolean canAddPassenger(Entity passenger)
      Returns whether entity can ride this entity.

      Returning false causes other entities to be unable to ride this entity. For example, BoatEntity uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).

      This is the opposite of Entity.canStartRiding(net.minecraft.entity.Entity).

      Overrides:
      canAddPassenger in class Entity
      Returns:
      whether entity can ride this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canAddPassenger Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
      intermediary method_5818 Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
      official r Lbul;r(Lbul;)Z
    • method_64500

      protected int method_64500()
      Mappings:
      Namespace Name Mixin selector
      named method_64500 Lnet/minecraft/class_10255;method_64500()I
      intermediary method_64500 Lnet/minecraft/class_10255;method_64500()I
      official s Lcqr;s()I
    • getControllingPassenger

      @Nullable public @Nullable LivingEntity getControllingPassenger()
      Returns the passenger in control of this entity, or null if there is none.

      Rideable entities should override this to return the entity. This is usually #getFirstPassenger.

      Overrides:
      getControllingPassenger in class Entity
      Returns:
      the passenger in control of this entity, or null if there is none
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getControllingPassenger Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
      intermediary method_5642 Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
      official cX Lbul;cX()Lbvh;
    • method_64487

      public void method_64487(boolean bool, boolean bool2, boolean bool3, boolean bool4)
      Mappings:
      Namespace Name Mixin selector
      named method_64487 Lnet/minecraft/class_10255;method_64487(ZZZZ)V
      intermediary method_64487 Lnet/minecraft/class_10255;method_64487(ZZZZ)V
      official a Lcqr;a(ZZZZ)V
    • isSubmergedInWater

      public boolean isSubmergedInWater()
      Returns whether this entity's hitbox is fully submerged in water.
      Overrides:
      isSubmergedInWater in class Entity
      Returns:
      whether this entity's hitbox is fully submerged in water
      Mappings:
      Namespace Name Mixin selector
      named isSubmergedInWater Lnet/minecraft/entity/Entity;isSubmergedInWater()Z
      intermediary method_5869 Lnet/minecraft/class_1297;method_5869()Z
      official bo Lbul;bo()Z
    • asItem

      protected final 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 t Lcrl;t()Lcwi;
    • getPickBlockStack

      public final 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 Lbul;dI()Lcwm;