所有已实现的接口:
CommandSource, EntityAccess, Nameable, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeBoat, IForgeEntity, INBTSerializable<CompoundTag>
直接已知子类:
ChestBoat

public class Boat extends Entity implements IForgeBoat
  • 字段详细资料

    • DATA_ID_HURT

      private static final EntityDataAccessor<Integer> DATA_ID_HURT
    • DATA_ID_HURTDIR

      private static final EntityDataAccessor<Integer> DATA_ID_HURTDIR
    • DATA_ID_DAMAGE

      private static final EntityDataAccessor<Float> DATA_ID_DAMAGE
    • 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
      另请参阅:
    • PADDLE_RIGHT

      public static final int PADDLE_RIGHT
      另请参阅:
    • TIME_TO_EJECT

      private static final int TIME_TO_EJECT
      另请参阅:
    • PADDLE_SPEED

      private static final float PADDLE_SPEED
      另请参阅:
    • PADDLE_SOUND_TIME

      public static final double PADDLE_SOUND_TIME
      另请参阅:
    • BUBBLE_TIME

      public static final int 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
    • 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
  • 构造器详细资料

    • Boat

      public Boat(EntityType<? extends Boat> pEntityType, Level pLevel)
    • Boat

      public Boat(Level pLevel, double pX, double pY, double pZ)
  • 方法详细资料

    • getEyeHeight

      protected float getEyeHeight(Pose pPose, EntityDimensions pSize)
      覆盖:
      getEyeHeight 在类中 Entity
    • getMovementEmission

      protected Entity.MovementEmission getMovementEmission()
      覆盖:
      getMovementEmission 在类中 Entity
    • defineSynchedData

      protected void defineSynchedData()
      指定者:
      defineSynchedData 在类中 Entity
    • canCollideWith

      public boolean canCollideWith(Entity pEntity)
      覆盖:
      canCollideWith 在类中 Entity
    • canVehicleCollide

      public static boolean canVehicleCollide(Entity pVehicle, Entity pEntity)
    • canBeCollidedWith

      public boolean canBeCollidedWith()
      覆盖:
      canBeCollidedWith 在类中 Entity
    • isPushable

      public boolean isPushable()
      覆盖:
      isPushable 在类中 Entity
    • getRelativePortalPosition

      protected Vec3 getRelativePortalPosition(Direction.Axis pAxis, BlockUtil.FoundRectangle pPortal)
      覆盖:
      getRelativePortalPosition 在类中 Entity
    • getPassengersRidingOffset

      public double getPassengersRidingOffset()
      覆盖:
      getPassengersRidingOffset 在类中 Entity
    • hurt

      public boolean hurt(DamageSource pSource, float pAmount)
      覆盖:
      hurt 在类中 Entity
    • destroy

      protected void destroy(DamageSource pDamageSource)
    • onAboveBubbleCol

      public void onAboveBubbleCol(boolean pDownwards)
      覆盖:
      onAboveBubbleCol 在类中 Entity
    • push

      public void push(Entity pEntity)
      覆盖:
      push 在类中 Entity
    • getDropItem

      public Item getDropItem()
    • animateHurt

      public void animateHurt(float pYaw)
      覆盖:
      animateHurt 在类中 Entity
    • isPickable

      public boolean isPickable()
      覆盖:
      isPickable 在类中 Entity
    • lerpTo

      public void lerpTo(double pX, double pY, double pZ, float pYaw, float pPitch, int pPosRotationIncrements, boolean pTeleport)
      覆盖:
      lerpTo 在类中 Entity
    • getMotionDirection

      public Direction getMotionDirection()
      覆盖:
      getMotionDirection 在类中 Entity
    • tick

      public void tick()
      覆盖:
      tick 在类中 Entity
    • tickBubbleColumn

      private void tickBubbleColumn()
    • getPaddleSound

      @Nullable protected SoundEvent getPaddleSound()
    • tickLerp

      private void tickLerp()
    • setPaddleState

      public void setPaddleState(boolean pLeft, boolean pRight)
    • getRowingTime

      public float getRowingTime(int pSide, float pLimbSwing)
    • getStatus

      private Boat.Status getStatus()
    • getWaterLevelAbove

      public float getWaterLevelAbove()
    • getGroundFriction

      public float getGroundFriction()
    • checkInWater

      private boolean checkInWater()
    • isUnderwater

      @Nullable private Boat.Status isUnderwater()
    • floatBoat

      private void floatBoat()
    • controlBoat

      private void controlBoat()
    • getSinglePassengerXOffset

      protected float getSinglePassengerXOffset()
    • hasEnoughSpaceFor

      public boolean hasEnoughSpaceFor(Entity pEntity)
    • positionRider

      protected void positionRider(Entity pPassenger, Entity.MoveFunction pCallback)
      覆盖:
      positionRider 在类中 Entity
    • getDismountLocationForPassenger

      public Vec3 getDismountLocationForPassenger(LivingEntity pLivingEntity)
      覆盖:
      getDismountLocationForPassenger 在类中 Entity
    • clampRotation

      protected void clampRotation(Entity pEntityToUpdate)
    • onPassengerTurned

      public void onPassengerTurned(Entity pEntityToUpdate)
      覆盖:
      onPassengerTurned 在类中 Entity
    • addAdditionalSaveData

      protected void addAdditionalSaveData(CompoundTag pCompound)
      指定者:
      addAdditionalSaveData 在类中 Entity
    • readAdditionalSaveData

      protected void readAdditionalSaveData(CompoundTag pCompound)
      指定者:
      readAdditionalSaveData 在类中 Entity
    • interact

      public InteractionResult interact(Player pPlayer, InteractionHand pHand)
      覆盖:
      interact 在类中 Entity
    • checkFallDamage

      protected void checkFallDamage(double pY, boolean pOnGround, BlockState pState, BlockPos pPos)
      覆盖:
      checkFallDamage 在类中 Entity
    • getPaddleState

      public boolean getPaddleState(int pSide)
    • setDamage

      public void setDamage(float pDamageTaken)
    • getDamage

      public float getDamage()
    • setHurtTime

      public void setHurtTime(int pHurtTime)
    • getHurtTime

      public int getHurtTime()
    • setBubbleTime

      private void setBubbleTime(int pBubbleTime)
    • getBubbleTime

      private int getBubbleTime()
    • getBubbleAngle

      public float getBubbleAngle(float pPartialTicks)
    • setHurtDir

      public void setHurtDir(int pHurtDirection)
    • getHurtDir

      public int getHurtDir()
    • setVariant

      public void setVariant(Boat.Type pVariant)
    • getVariant

      public Boat.Type getVariant()
    • canAddPassenger

      protected boolean canAddPassenger(Entity pPassenger)
      覆盖:
      canAddPassenger 在类中 Entity
    • getMaxPassengers

      protected int getMaxPassengers()
    • getControllingPassenger

      @Nullable public LivingEntity getControllingPassenger()
      覆盖:
      getControllingPassenger 在类中 Entity
    • setInput

      public void setInput(boolean pInputLeft, boolean pInputRight, boolean pInputUp, boolean pInputDown)
    • isUnderWater

      public boolean isUnderWater()
      覆盖:
      isUnderWater 在类中 Entity
    • addPassenger

      protected void addPassenger(Entity passenger)
      覆盖:
      addPassenger 在类中 Entity
    • getPickResult

      public ItemStack getPickResult()
      覆盖:
      getPickResult 在类中 Entity