net.minecraft.world.entity.vehicle

public abstract class AbstractBoat

extends VehicleEntity implements Leashable

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Leashable

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

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
h
DATA_ID_PADDLE_LEFT
field_54448
LEFT_PADDLE_MOVING
private static final EntityDataAccessor<Boolean>
i
DATA_ID_PADDLE_RIGHT
field_54449
RIGHT_PADDLE_MOVING
private static final EntityDataAccessor<Integer>
j
DATA_ID_BUBBLE_TIME
field_54450
BUBBLE_WOBBLE_TICKS
public static final int
a
PADDLE_LEFT
field_54427
field_54427
public static final int
b
PADDLE_RIGHT
field_54445
field_54445
private static final int
k
TIME_TO_EJECT
field_54451
field_54451
private static final float
l
PADDLE_SPEED
field_54452
NEXT_PADDLE_PHASE
public static final double
c
PADDLE_SOUND_TIME
field_54446
EMIT_SOUND_EVENT_PADDLE_ROTATION
public static final int
d
BUBBLE_TIME
field_54447
field_54447
private final float[]
m
paddlePositions
field_54453
paddlePhases
private float
n
invFriction
field_54454
velocityDecay
private float
o
outOfControlTicks
field_54455
ticksUnderwater
private float
p
deltaRotation
field_54456
yawVelocity
private int
q
lerpSteps
field_54457
lerpTicks
private double
r
lerpX
field_54458
x
private double
s
lerpY
field_54459
y
private double
t
lerpZ
field_54460
z
private double
u
lerpYRot
field_54461
boatYaw
private double
ay
lerpXRot
field_54443
boatPitch
private boolean
az
inputLeft
field_54444
pressingLeft
private boolean
aA
inputRight
field_54428
pressingRight
private boolean
aB
inputUp
field_54429
pressingForward
private boolean
aC
inputDown
field_54430
pressingBack
private double
aD
waterLevel
field_54431
waterLevel
private float
aE
landFriction
field_54432
nearbySlipperiness
private AbstractBoat$Status
aF
status
field_54433
location
private AbstractBoat$Status
aG
oldStatus
field_54434
lastLocation
private double
aH
lastYd
field_54435
fallVelocity
private boolean
aI
isAboveBubbleColumn
field_54436
onBubbleColumnSurface
private boolean
aJ
bubbleColumnDirectionIsDown
field_54437
bubbleColumnIsDrag
private float
aK
bubbleMultiplier
field_54438
bubbleWobbleStrength
private float
aL
bubbleAngle
field_54439
bubbleWobble
private float
aM
bubbleAngleO
field_54440
lastBubbleWobble
private Leashable$LeashData
aN
leashData
field_54441
leashData
private final Supplier<Item>
aO
dropItem
field_54442
itemSupplier

Constructor summary

ModifierConstructor
public (EntityType<? extends AbstractBoat> type, Level world, Supplier<Item> itemSupplier)

Method summary

Modifier and TypeMethod
public void
p(double arg0, double arg1, double arg2)
setInitialPos(double arg0, double arg1, double arg2)
method_64498(double arg0, double arg1, double arg2)
initPosition(double x, double y, double z)
protected Entity$MovementEmission
bg()
getMovementEmission()
method_33570()
getMoveEffect()
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
i(bvk arg0)
canCollideWith(Entity arg0)
method_30949(class_1297 arg0)
collidesWith(Entity arg0)
public static boolean
a(bvk arg0, bvk arg1)
canVehicleCollide(Entity arg0, Entity arg1)
method_64486(class_1297 arg0, class_1297 arg1)
canCollide(Entity entity, Entity other)
public boolean
bN()
canBeCollidedWith()
method_30948()
isCollidable()
public boolean
bI()
isPushable()
method_5810()
isPushable()
public Vec3
a(jm$a arg0, l$a arg1)
getRelativePortalPosition(Direction$Axis arg0, BlockUtil$FoundRectangle arg1)
method_30633(class_2350$class_2351 arg0, class_5459$class_5460 arg1)
positionInPortal(Direction$Axis arg0, BlockLocating$Rectangle arg1)
protected abstract double
b(bvn arg0)
rideHeight(EntityDimensions arg0)
method_64489(class_4048 arg0)
getPassengerAttachmentY(EntityDimensions dimensions)
protected Vec3
a(bvk arg0, bvn arg1, float arg2)
getPassengerAttachmentPoint(Entity arg0, EntityDimensions arg1, float arg2)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
public void
l(boolean arg0)
onAboveBubbleCol(boolean arg0)
method_5700(boolean arg0)
onBubbleColumnSurfaceCollision(boolean arg0)
public void
h(bvk arg0)
push(Entity arg0)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
public void
p(float arg0)
animateHurt(float arg0)
method_5879(float arg0)
animateDamage(float arg0)
public boolean
bH()
isPickable()
method_5863()
canHit()
public void
f_()
cancelLerp()
method_64610()
resetLerp()
public void
a(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
lerpTo(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
method_5759(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
updateTrackedPositionAndAngles(double arg0, double arg1, double arg2, float arg3, float arg4, int arg5)
public double
R_()
lerpTargetX()
method_53830()
getLerpTargetX()
public double
S_()
lerpTargetY()
method_53827()
getLerpTargetY()
public double
g_()
lerpTargetZ()
method_53828()
getLerpTargetZ()
public float
r_()
lerpTargetXRot()
method_53829()
getLerpTargetPitch()
public float
h_()
lerpTargetYRot()
method_53831()
getLerpTargetYaw()
public Direction
cP()
getMotionDirection()
method_5755()
getMovementDirection()
public void
h()
tick()
method_5773()
tick()
private void
D()
tickBubbleColumn()
method_64476()
handleBubbleColumn()
protected SoundEvent
l()
getPaddleSound()
method_64494()
getPaddleSound()
private void
E()
tickLerp()
method_64477()
updatePositionAndRotation()
public void
b(boolean arg0, boolean arg1)
setPaddleState(boolean arg0, boolean arg1)
method_64490(boolean arg0, boolean arg1)
setPaddlesMoving(boolean left, boolean right)
public float
a(int arg0, float arg1)
getRowingTime(int arg0, float arg1)
method_64485(int arg0, float arg1)
lerpPaddlePhase(int paddle, float tickDelta)
public Leashable$LeashData
T_()
getLeashData()
method_60955()
getLeashData()
public void
a(bwe$a arg0)
setLeashData(Leashable$LeashData arg0)
method_60960(class_9817$class_9818 arg0)
setLeashData(Leashable$LeashData arg0)
public Vec3
cT()
getLeashOffset()
method_29919()
getLeashOffset()
public void
b(bvk arg0, float arg1)
elasticRangeLeashBehaviour(Entity arg0, float arg1)
method_61162(class_1297 arg0, float arg1)
applyLeashElasticity(Entity arg0, float arg1)
private AbstractBoat$Status
F()
getStatus()
method_64478()
checkLocation()
public float
m()
getWaterLevelAbove()
method_64495()
getWaterHeightBelow()
public float
p()
getGroundFriction()
method_64497()
getNearbySlipperiness()
private boolean
G()
checkInWater()
method_64479()
checkBoatInWater()
private AbstractBoat$Status
H()
isUnderwater()
method_64480()
getUnderWaterLocation()
protected double
bd()
getDefaultGravity()
method_7490()
getGravity()
private void
I()
floatBoat()
method_64481()
updateVelocity()
private void
J()
controlBoat()
method_64482()
updatePaddles()
protected float
s()
getSinglePassengerXOffset()
method_64499()
getPassengerHorizontalOffset()
public boolean
b(bvk arg0)
hasEnoughSpaceFor(Entity arg0)
method_64488(class_1297 arg0)
isSmallerThanBoat(Entity entity)
protected void
a(bvk arg0, bvk$a arg1)
positionRider(Entity arg0, Entity$MoveFunction arg1)
method_5865(class_1297 arg0, class_1297$class_4738 arg1)
updatePassengerPosition(Entity arg0, Entity$PositionUpdater arg1)
public Vec3
b(bwg arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
protected void
c(bvk arg0)
clampRotation(Entity arg0)
method_64492(class_1297 arg0)
clampPassengerYaw(Entity passenger)
public void
k(bvk arg0)
onPassengerTurned(Entity arg0)
method_5644(class_1297 arg0)
onPassengerLookAround(Entity arg0)
protected void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
protected void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public InteractionResult
a(cpx arg0, bti arg1)
interact(Player arg0, InteractionHand arg1)
method_5688(class_1657 arg0, class_1268 arg1)
interact(PlayerEntity arg0, Hand arg1)
public void
a(bvk$d arg0)
remove(Entity$RemovalReason arg0)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
protected void
a(double arg0, boolean arg1, dxv arg2, jh arg3)
checkFallDamage(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
public boolean
c(int arg0)
getPaddleState(int arg0)
method_64491(int arg0)
isPaddleMoving(int paddle)
private void
m(int arg0)
setBubbleTime(int arg0)
method_64496(int arg0)
setBubbleWobbleTicks(int bubbleWobbleTicks)
private int
K()
getBubbleTime()
method_64483()
getBubbleWobbleTicks()
public float
a(float arg0)
getBubbleAngle(float arg0)
method_64484(float arg0)
lerpBubbleWobble(float tickDelta)
protected boolean
r(bvk arg0)
canAddPassenger(Entity arg0)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
protected int
t()
getMaxPassengers()
method_64500()
getMaxPassengers()
public LivingEntity
cX()
getControllingPassenger()
method_5642()
getControllingPassenger()
public void
a(boolean arg0, boolean arg1, boolean arg2, boolean arg3)
setInput(boolean arg0, boolean arg1, boolean arg2, boolean arg3)
method_64487(boolean arg0, boolean arg1, boolean arg2, boolean arg3)
setInputs(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack)
public boolean
bo()
isUnderWater()
method_5869()
isSubmergedInWater()
protected final Item
u()
getDropItem()
method_7557()
asItem()
public final ItemStack
dJ()
getPickResult()
method_31480()
getPickBlockStack()