net.minecraft.entity.vehicle

public abstract class AbstractBoatEntity

extends VehicleEntity implements Leashable

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Leashable

net.minecraft.world.entity.vehicle.boat.AbstractBoat
net.minecraft.class_10255
net.minecraft.entity.vehicle.AbstractBoatEntity

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
DATA_ID_PADDLE_LEFT
field_54448
LEFT_PADDLE_MOVING
private static final TrackedData<Boolean>
DATA_ID_PADDLE_RIGHT
field_54449
RIGHT_PADDLE_MOVING
private static final TrackedData<Integer>
DATA_ID_BUBBLE_TIME
field_54450
BUBBLE_WOBBLE_TICKS
public static final int
PADDLE_LEFT
field_54427
field_54427
public static final int
PADDLE_RIGHT
field_54445
field_54445
private static final int
TIME_TO_EJECT
field_54451
field_54451
private static final float
PADDLE_SPEED
field_54452
NEXT_PADDLE_PHASE
public static final double
PADDLE_SOUND_TIME
field_54446
EMIT_SOUND_EVENT_PADDLE_ROTATION
public static final int
BUBBLE_TIME
field_54447
field_54447
private final float[]
paddlePositions
field_54453
paddlePhases
private float
outOfControlTicks
field_54455
ticksUnderwater
private float
deltaRotation
field_54456
yawVelocity
private final PositionInterpolator
interpolation
field_55706
interpolator
private boolean
inputLeft
field_54444
pressingLeft
private boolean
inputRight
field_54428
pressingRight
private boolean
inputUp
field_54429
pressingForward
private boolean
inputDown
field_54430
pressingBack
private double
waterLevel
field_54431
waterLevel
private float
landFriction
field_54432
nearbySlipperiness
private AbstractBoatEntity$Location
status
field_54433
location
private AbstractBoatEntity$Location
oldStatus
field_54434
lastLocation
private double
lastYd
field_54435
fallVelocity
private boolean
isAboveBubbleColumn
field_54436
onBubbleColumnSurface
private boolean
bubbleColumnDirectionIsDown
field_54437
bubbleColumnIsDrag
private float
bubbleMultiplier
field_54438
bubbleWobbleStrength
private float
bubbleAngle
field_54439
bubbleWobble
private float
bubbleAngleO
field_54440
lastBubbleWobble
private Leashable$LeashData
leashData
field_54441
leashData
private final Supplier<Item>
dropItem
field_54442
itemSupplier

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractBoatEntity> type, World world, Supplier<Item> itemSupplier)

Method summary

Modifier and TypeMethod
public void
setInitialPos(double x, double y, double z)
method_64498(double arg0, double arg1, double arg2)
initPosition(double x, double y, double z)
protected Entity$MoveEffect
getMovementEmission()
method_33570()
getMoveEffect()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
canCollideWith(Entity entity)
method_30949(class_1297 arg0)
collidesWith(Entity arg0)
public static boolean
canVehicleCollide(Entity vehicle, Entity entity)
method_64486(class_1297 arg0, class_1297 arg1)
canCollide(Entity entity, Entity other)
public boolean
canBeCollidedWith(Entity other)
method_30948(class_1297 arg0)
isCollidable(Entity arg0)
public boolean
isPushable()
method_5810()
isPushable()
public Vec3d
getRelativePortalPosition(Direction$Axis axis, BlockUtil$FoundRectangle portalArea)
method_30633(class_2350$class_2351 arg0, class_5459$class_5460 arg1)
positionInPortal(Direction$Axis arg0, BlockLocating$Rectangle arg1)
protected abstract double
rideHeight(EntityDimensions dimensions)
method_64489(class_4048 arg0)
getPassengerAttachmentY(EntityDimensions dimensions)
protected Vec3d
getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
public void
onAboveBubbleColumn(boolean dragDown, BlockPos pos)
method_5700(boolean arg0, class_2338 arg1)
onBubbleColumnSurfaceCollision(boolean arg0, BlockPos arg1)
public void
push(Entity entity)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
public void
animateHurt(float yaw)
method_5879(float arg0)
animateDamage(float arg0)
public boolean
isPickable()
method_5863()
canHit()
public PositionInterpolator
getInterpolation()
method_66233()
getInterpolator()
public Direction
getMotionDirection()
method_5755()
getMovementDirection()
public void
tick()
method_5773()
tick()
private void
tickBubbleColumn()
method_64476()
handleBubbleColumn()
protected SoundEvent
getPaddleSound()
method_64494()
getPaddleSound()
public void
setPaddleState(boolean left, boolean right)
method_64490(boolean arg0, boolean arg1)
setPaddlesMoving(boolean left, boolean right)
public float
getRowingTime(int side, float a)
method_64485(int arg0, float arg1)
lerpPaddlePhase(int paddle, float tickProgress)
public Leashable$LeashData
getLeashData()
method_60955()
getLeashData()
public void
setLeashData(Leashable$LeashData leashData)
method_60960(class_9817$class_9818 arg0)
setLeashData(Leashable$LeashData arg0)
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
public boolean
supportQuadLeash()
method_70991()
canUseQuadLeashAttachmentPoint()
public Vec3d[]
getQuadLeashOffsets()
method_70992()
getQuadLeashOffsets()
private AbstractBoatEntity$Location
getStatus()
method_64478()
checkLocation()
public float
getWaterLevelAbove()
method_64495()
getWaterHeightBelow()
public float
getGroundFriction()
method_64497()
getNearbySlipperiness()
private boolean
checkInWater()
method_64479()
checkBoatInWater()
private AbstractBoatEntity$Location
isUnderwater()
method_64480()
getUnderWaterLocation()
protected double
getDefaultGravity()
method_7490()
getGravity()
private void
floatBoat()
method_64481()
updateVelocity()
protected float
getAirDrag()
method_1_5399()
getAirDragModifier()
private void
controlBoat()
method_64482()
updatePaddles()
protected float
getSinglePassengerXOffset()
method_64499()
getPassengerHorizontalOffset()
public boolean
hasEnoughSpaceFor(Entity entity)
method_64488(class_1297 arg0)
isSmallerThanBoat(Entity entity)
protected void
positionRider(Entity passenger, Entity$MoveFunction moveFunction)
method_5865(class_1297 arg0, class_1297$class_4738 arg1)
updatePassengerPosition(Entity arg0, Entity$PositionUpdater arg1)
public Vec3d
getDismountLocationForPassenger(LivingEntity passenger)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
protected void
clampRotation(Entity passenger)
method_64492(class_1297 arg0)
clampPassengerYaw(Entity passenger)
public void
onPassengerTurned(Entity passenger)
method_5644(class_1297 arg0)
onPassengerLookAround(Entity arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
method_5688(class_1657 arg0, class_1268 arg1, class_243 arg2)
interact(PlayerEntity arg0, Hand arg1, Vec3d arg2)
public void
remove(Entity$RemovalReason reason)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
protected void
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
public boolean
getPaddleState(int side)
method_64491(int arg0)
isPaddleMoving(int paddle)
private void
setBubbleTime(int val)
method_64496(int arg0)
setBubbleWobbleTicks(int bubbleWobbleTicks)
private int
getBubbleTime()
method_64483()
getBubbleWobbleTicks()
public float
getBubbleAngle(float a)
method_64484(float arg0)
lerpBubbleWobble(float tickProgress)
protected boolean
canAddPassenger(Entity passenger)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
protected int
getMaxPassengers()
method_64500()
getMaxPassengers()
public LivingEntity
getControllingPassenger()
method_5642()
getControllingPassenger()
public void
setInput(boolean left, boolean right, boolean up, boolean down)
method_64487(boolean arg0, boolean arg1, boolean arg2, boolean arg3)
setInputs(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack)
public boolean
isUnderWater()
method_5869()
isSubmergedInWater()
protected final Item
getDropItem()
method_7557()
asItem()
public final ItemStack
getPickResult()
method_31480()
getPickBlockStack()
protected Box
modifyPassengerFluidInteractionBox(AABB passengerBox)
method_1_2466(class_238 arg0)
adjustFluidCollisionBoxOfPassenger(Box arg0)
private static boolean
lambda$tickBubbleColumn$0(Entity arg0)
method_64493(class_1297 arg0)
method_64493(Entity passenger)