All Implemented Interfaces:
CommandSource, SyncedDataHolder, VariantHolder<Boat.Type>, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeBoat, IForgeEntity, INBTSerializable<CompoundTag>
Direct Known Subclasses:
ChestBoat

public class Boat extends VehicleEntity implements VariantHolder<Boat.Type>, IForgeBoat
  • Field Details

    • DATA_ID_TYPE

      private static final EntityDataAccessor<Integer> DATA_ID_TYPE
    • DATA_ID_PADDLE_LEFT

      private static final EntityDataAccessor<Boolean> DATA_ID_PADDLE_LEFT
    • DATA_ID_PADDLE_RIGHT

      private static final EntityDataAccessor<Boolean> DATA_ID_PADDLE_RIGHT
    • DATA_ID_BUBBLE_TIME

      private static final EntityDataAccessor<Integer> DATA_ID_BUBBLE_TIME
    • PADDLE_LEFT

      public static final int PADDLE_LEFT
      See Also:
    • PADDLE_RIGHT

      public static final int PADDLE_RIGHT
      See Also:
    • TIME_TO_EJECT

      private static final int TIME_TO_EJECT
      See Also:
    • PADDLE_SPEED

      private static final float PADDLE_SPEED
      See Also:
    • PADDLE_SOUND_TIME

      public static final double PADDLE_SOUND_TIME
      See Also:
    • BUBBLE_TIME

      public static final int BUBBLE_TIME
      See Also:
    • paddlePositions

      private final float[] paddlePositions
    • invFriction

      private float invFriction
    • outOfControlTicks

      private float outOfControlTicks
    • deltaRotation

      private float deltaRotation
    • lerpSteps

      private int lerpSteps
    • lerpX

      private double lerpX
    • lerpY

      private double lerpY
    • lerpZ

      private double lerpZ
    • lerpYRot

      private double lerpYRot
    • lerpXRot

      private double lerpXRot
    • inputLeft

      private boolean inputLeft
    • inputRight

      private boolean inputRight
    • inputUp

      private boolean inputUp
    • inputDown

      private boolean inputDown
    • waterLevel

      private double waterLevel
    • landFriction

      private float landFriction
    • status

      private Boat.Status status
    • oldStatus

      private Boat.Status oldStatus
    • lastYd

      private double lastYd
    • isAboveBubbleColumn

      private boolean isAboveBubbleColumn
    • bubbleColumnDirectionIsDown

      private boolean bubbleColumnDirectionIsDown
    • bubbleMultiplier

      private float bubbleMultiplier
    • bubbleAngle

      private float bubbleAngle
    • bubbleAngleO

      private float bubbleAngleO
  • Constructor Details

    • Boat

      public Boat(EntityType<? extends Boat> p_38290_, Level p_38291_)
    • Boat

      public Boat(Level p_38293_, double p_38294_, double p_38295_, double p_38296_)
  • Method Details