net.minecraft.world.entity.vehicle

public abstract class AbstractBoat

extends VehicleEntity implements Leashable

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Leashable

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

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
outOfControlTicks
field_54455
ticksUnderwater
private float
o
deltaRotation
field_54456
yawVelocity
private final InterpolationHandler
p
interpolation
field_55706
interpolator
private boolean
q
inputLeft
field_54444
pressingLeft
private boolean
r
inputRight
field_54428
pressingRight
private boolean
s
inputUp
field_54429
pressingForward
private boolean
t
inputDown
field_54430
pressingBack
private double
u
waterLevel
field_54431
waterLevel
private float
ay
landFriction
field_54432
nearbySlipperiness
private AbstractBoat$Status
az
status
field_54433
location
private AbstractBoat$Status
aA
oldStatus
field_54434
lastLocation
private double
aB
lastYd
field_54435
fallVelocity
private boolean
aC
isAboveBubbleColumn
field_54436
onBubbleColumnSurface
private boolean
aD
bubbleColumnDirectionIsDown
field_54437
bubbleColumnIsDrag
private float
aE
bubbleMultiplier
field_54438
bubbleWobbleStrength
private float
aF
bubbleAngle
field_54439
bubbleWobble
private float
aG
bubbleAngleO
field_54440
lastBubbleWobble
private Leashable$LeashData
aH
leashData
field_54441
leashData
private final Supplier<Item>
aI
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(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
i(bwa arg0)
canCollideWith(Entity arg0)
method_30949(class_1297 arg0)
collidesWith(Entity arg0)
public static boolean
a(bwa arg0, bwa arg1)
canVehicleCollide(Entity arg0, Entity arg1)
method_64486(class_1297 arg0, class_1297 arg1)
canCollide(Entity entity, Entity other)
public boolean
bM()
canBeCollidedWith()
method_30948()
isCollidable()
public boolean
bH()
isPushable()
method_5810()
isPushable()
public Vec3
a(ja$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(bwd arg0)
rideHeight(EntityDimensions arg0)
method_64489(class_4048 arg0)
getPassengerAttachmentY(EntityDimensions dimensions)
protected Vec3
a(bwa arg0, bwd 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
a(boolean arg0, iu arg1)
onAboveBubbleColumn(boolean arg0, BlockPos arg1)
method_5700(boolean arg0, class_2338 arg1)
onBubbleColumnSurfaceCollision(boolean arg0, BlockPos arg1)
public void
h(bwa arg0)
push(Entity arg0)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
public void
q(float arg0)
animateHurt(float arg0)
method_5879(float arg0)
animateDamage(float arg0)
public boolean
bG()
isPickable()
method_5863()
canHit()
public InterpolationHandler
N_()
getInterpolation()
method_66233()
getInterpolator()
public Direction
cP()
getMotionDirection()
method_5755()
getMovementDirection()
public void
h()
tick()
method_5773()
tick()
private void
v()
tickBubbleColumn()
method_64476()
handleBubbleColumn()
protected SoundEvent
f()
getPaddleSound()
method_64494()
getPaddleSound()
public void
a(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(bwx$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(bwa arg0, float arg1)
elasticRangeLeashBehaviour(Entity arg0, float arg1)
method_61162(class_1297 arg0, float arg1)
applyLeashElasticity(Entity arg0, float arg1)
private AbstractBoat$Status
x()
getStatus()
method_64478()
checkLocation()
public float
g()
getWaterLevelAbove()
method_64495()
getWaterHeightBelow()
public float
j()
getGroundFriction()
method_64497()
getNearbySlipperiness()
private boolean
D()
checkInWater()
method_64479()
checkBoatInWater()
private AbstractBoat$Status
E()
isUnderwater()
method_64480()
getUnderWaterLocation()
protected double
bd()
getDefaultGravity()
method_7490()
getGravity()
private void
F()
floatBoat()
method_64481()
updateVelocity()
private void
G()
controlBoat()
method_64482()
updatePaddles()
protected float
m()
getSinglePassengerXOffset()
method_64499()
getPassengerHorizontalOffset()
public boolean
b(bwa arg0)
hasEnoughSpaceFor(Entity arg0)
method_64488(class_1297 arg0)
isSmallerThanBoat(Entity entity)
protected void
a(bwa arg0, bwa$b 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(bwz arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
protected void
c(bwa arg0)
clampRotation(Entity arg0)
method_64492(class_1297 arg0)
clampPassengerYaw(Entity passenger)
public void
k(bwa arg0)
onPassengerTurned(Entity arg0)
method_5644(class_1297 arg0)
onPassengerLookAround(Entity arg0)
protected void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
protected void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public InteractionResult
a(cqs arg0, btx arg1)
interact(Player arg0, InteractionHand arg1)
method_5688(class_1657 arg0, class_1268 arg1)
interact(PlayerEntity arg0, Hand arg1)
public void
a(bwa$e arg0)
remove(Entity$RemovalReason arg0)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason arg0)
protected void
a(double arg0, boolean arg1, dzo arg2, iu 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(bwa arg0)
canAddPassenger(Entity arg0)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
protected int
n()
getMaxPassengers()
method_64500()
getMaxPassengers()
public LivingEntity
cW()
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
bn()
isUnderWater()
method_5869()
isSubmergedInWater()
protected final Item
o()
getDropItem()
method_7557()
asItem()
public final ItemStack
dI()
getPickResult()
method_31480()
getPickBlockStack()