Class BoatEntity

    • Field Detail

      • DATA_ID_HURT

        private static final DataParameter<java.lang.Integer> DATA_ID_HURT
      • DATA_ID_HURTDIR

        private static final DataParameter<java.lang.Integer> DATA_ID_HURTDIR
      • DATA_ID_DAMAGE

        private static final DataParameter<java.lang.Float> DATA_ID_DAMAGE
      • DATA_ID_TYPE

        private static final DataParameter<java.lang.Integer> DATA_ID_TYPE
      • DATA_ID_PADDLE_LEFT

        private static final DataParameter<java.lang.Boolean> DATA_ID_PADDLE_LEFT
      • DATA_ID_PADDLE_RIGHT

        private static final DataParameter<java.lang.Boolean> DATA_ID_PADDLE_RIGHT
      • DATA_ID_BUBBLE_TIME

        private static final DataParameter<java.lang.Integer> DATA_ID_BUBBLE_TIME
      • 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
      • 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 Detail

      • BoatEntity

        public BoatEntity​(World p_i1705_1_,
                          double p_i1705_2_,
                          double p_i1705_4_,
                          double p_i1705_6_)
    • Method Detail

      • canVehicleCollide

        public static boolean canVehicleCollide​(Entity p_242378_0_,
                                                Entity p_242378_1_)
      • isPushable

        public boolean isPushable()
        Overrides:
        isPushable in class Entity
      • hurt

        public boolean hurt​(DamageSource p_70097_1_,
                            float p_70097_2_)
        Overrides:
        hurt in class Entity
      • onAboveBubbleCol

        public void onAboveBubbleCol​(boolean p_203002_1_)
        Overrides:
        onAboveBubbleCol in class Entity
      • push

        public void push​(Entity p_70108_1_)
        Overrides:
        push in class Entity
      • getDropItem

        public Item getDropItem()
      • isPickable

        public boolean isPickable()
        Overrides:
        isPickable in class Entity
      • lerpTo

        public void lerpTo​(double p_180426_1_,
                           double p_180426_3_,
                           double p_180426_5_,
                           float p_180426_7_,
                           float p_180426_8_,
                           int p_180426_9_,
                           boolean p_180426_10_)
        Overrides:
        lerpTo in class Entity
      • tick

        public void tick()
        Overrides:
        tick in class Entity
      • tickBubbleColumn

        private void tickBubbleColumn()
      • getPaddleSound

        @Nullable
        protected SoundEvent getPaddleSound()
      • tickLerp

        private void tickLerp()
      • setPaddleState

        public void setPaddleState​(boolean p_184445_1_,
                                   boolean p_184445_2_)
      • getRowingTime

        public float getRowingTime​(int p_184448_1_,
                                   float p_184448_2_)
      • getWaterLevelAbove

        public float getWaterLevelAbove()
      • getGroundFriction

        public float getGroundFriction()
      • checkInWater

        private boolean checkInWater()
      • floatBoat

        private void floatBoat()
      • controlBoat

        private void controlBoat()
      • clampRotation

        protected void clampRotation​(Entity p_184454_1_)
      • getPaddleState

        public boolean getPaddleState​(int p_184457_1_)
      • setDamage

        public void setDamage​(float p_70266_1_)
      • getDamage

        public float getDamage()
      • setHurtTime

        public void setHurtTime​(int p_70265_1_)
      • getHurtTime

        public int getHurtTime()
      • setBubbleTime

        private void setBubbleTime​(int p_203055_1_)
      • getBubbleTime

        private int getBubbleTime()
      • getBubbleAngle

        public float getBubbleAngle​(float p_203056_1_)
      • setHurtDir

        public void setHurtDir​(int p_70269_1_)
      • getHurtDir

        public int getHurtDir()
      • setInput

        public void setInput​(boolean p_184442_1_,
                             boolean p_184442_2_,
                             boolean p_184442_3_,
                             boolean p_184442_4_)