net.minecraft.world.entity.vehicle

public class Boat

extends Entity implements VariantHolder<Boat$Type>

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, VariantHolder

cdn
net.minecraft.world.entity.vehicle.Boat
net.minecraft.class_1690
net.minecraft.entity.vehicle.BoatEntity
net.minecraft.src.C_1205_
net.minecraft.world.entity.vehicle.EntityBoat

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Integer>
f
DATA_ID_HURT
field_7688
DAMAGE_WOBBLE_TICKS
f_38282_
private static final EntityDataAccessor<Integer>
g
DATA_ID_HURTDIR
field_7707
DAMAGE_WOBBLE_SIDE
f_38283_
private static final EntityDataAccessor<Float>
h
DATA_ID_DAMAGE
field_7705
DAMAGE_WOBBLE_STRENGTH
f_38284_
private static final EntityDataAccessor<Integer>
i
DATA_ID_TYPE
field_7698
BOAT_TYPE
f_38285_
private static final EntityDataAccessor<Boolean>
j
DATA_ID_PADDLE_LEFT
field_7687
LEFT_PADDLE_MOVING
f_38286_
private static final EntityDataAccessor<Boolean>
k
DATA_ID_PADDLE_RIGHT
field_7713
RIGHT_PADDLE_MOVING
f_38287_
private static final EntityDataAccessor<Integer>
l
DATA_ID_BUBBLE_TIME
field_7691
BUBBLE_WOBBLE_TICKS
f_38262_
public static final int
b
PADDLE_LEFT
field_30697
field_30697
f_150268_
public static final int
c
PADDLE_RIGHT
field_30698
field_30698
f_150269_
private static final int
m
TIME_TO_EJECT
field_30695
field_30695
f_150266_
private static final float
n
PADDLE_SPEED
field_30696
NEXT_PADDLE_PHASE
f_150267_
public static final double
d
PADDLE_SOUND_TIME
field_30699
EMIT_SOUND_EVENT_PADDLE_ROTATION
f_150270_
public static final int
e
BUBBLE_TIME
field_30700
field_30700
f_150271_
private final float[]
o
paddlePositions
field_7704
paddlePhases
f_38263_
private float
p
invFriction
field_7692
velocityDecay
f_38264_
private float
q
outOfControlTicks
field_7706
ticksUnderwater
f_38265_
private float
r
deltaRotation
field_7690
yawVelocity
f_38266_
private int
s
lerpSteps
field_7708
field_7708
f_38267_
private double
t
lerpX
field_7686
x
f_38268_
private double
u
lerpY
field_7700
y
f_38269_
private double
v
lerpZ
field_7685
z
f_38270_
private double
aE
lerpYRot
field_7699
boatYaw
f_38271_
private double
aF
lerpXRot
field_7684
boatPitch
f_38272_
private boolean
aG
inputLeft
field_7710
pressingLeft
f_38273_
private boolean
aH
inputRight
field_7695
pressingRight
f_38274_
private boolean
aI
inputUp
field_7709
pressingForward
f_38275_
private boolean
aJ
inputDown
field_7693
pressingBack
f_38276_
private double
aK
waterLevel
field_7697
waterLevel
f_38277_
private float
aL
landFriction
field_7714
nearbySlipperiness
f_38278_
private Boat$Status
aM
status
field_7702
location
f_38279_
private Boat$Status
aN
oldStatus
field_7701
lastLocation
f_38280_
private double
aO
lastYd
field_7696
fallVelocity
f_38281_
private boolean
aP
isAboveBubbleColumn
field_7689
onBubbleColumnSurface
f_38257_
private boolean
aQ
bubbleColumnDirectionIsDown
field_7703
bubbleColumnIsDrag
f_38258_
private float
aR
bubbleMultiplier
field_7712
bubbleWobbleStrength
f_38259_
private float
aS
bubbleAngle
field_7694
bubbleWobble
f_38260_
private float
aT
bubbleAngleO
field_7711
lastBubbleWobble
f_38261_

Constructor summary

ModifierConstructor
public (EntityType<? extends Boat> p_38291_, Level arg1)
public (Level world, double x, double y, double z)

Method summary

Modifier and TypeMethod
protected float
a(bjs arg0, bir arg1)
getEyeHeight(Pose arg0, EntityDimensions arg1)
method_18378(class_4050 arg0, class_4048 arg1)
getEyeHeight(EntityPose arg0, EntityDimensions arg1)
m_6380_(C_535_ p_38328_, C_510_ arg1)
protected Entity$MovementEmission
aU()
getMovementEmission()
method_33570()
getMoveEffect()
m_142319_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
public boolean
h(biq arg0)
canCollideWith(Entity arg0)
method_30949(class_1297 arg0)
collidesWith(Entity arg0)
m_7337_(C_507_ arg0)
public static boolean
a(biq arg0, biq arg1)
canVehicleCollide(Entity arg0, Entity arg1)
method_30959(class_1297 arg0, class_1297 arg1)
canCollide(Entity entity, Entity other)
m_38323_(C_507_ p_38324_, C_507_ p_38325_)
public boolean
bx()
canBeCollidedWith()
method_30948()
isCollidable()
m_5829_()
public boolean
bs()
isPushable()
method_5810()
isPushable()
m_6094_()
protected Vec3
a(ha$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)
m_7643_(C_4687_$C_4689_ p_38336_, C_4777_$C_4778_ arg1)
protected org.joml.Vector3f
a(biq arg0, bir 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)
m_292594_(C_507_ p_299244_, C_510_ p_298802_, float arg2)
public boolean
a(bho arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_38320_, float arg1)
protected void
a(bho arg0)
destroy(DamageSource arg0)
method_42279(class_1282 arg0)
dropItems(DamageSource source)
m_213560_(C_489_ arg0)
public void
k(boolean arg0)
onAboveBubbleCol(boolean arg0)
method_5700(boolean arg0)
onBubbleColumnSurfaceCollision(boolean arg0)
m_6845_(boolean arg0)
public void
g(biq arg0)
push(Entity arg0)
method_5697(class_1297 arg0)
pushAwayFrom(Entity arg0)
m_7334_(C_507_ arg0)
public Item
q()
getDropItem()
method_7557()
asItem()
m_38369_()
public void
m(float arg0)
animateHurt(float arg0)
method_5879(float arg0)
animateDamage(float arg0)
m_6053_(float arg0)
public boolean
br()
isPickable()
method_5863()
canHit()
m_6087_()
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)
m_6453_(double p_38300_, double p_38302_, double p_38304_, float arg3, float arg4, int arg5)
public double
n_()
lerpTargetX()
method_53830()
getLerpTargetX()
m_293268_()
public double
K_()
lerpTargetY()
method_53827()
getLerpTargetY()
m_293950_()
public double
L_()
lerpTargetZ()
method_53828()
getLerpTargetZ()
m_292720_()
public float
d_()
lerpTargetXRot()
method_53829()
getLerpTargetPitch()
m_293123_()
public float
o_()
lerpTargetYRot()
method_53831()
getLerpTargetYaw()
m_293582_()
public Direction
cE()
getMotionDirection()
method_5755()
getMovementDirection()
m_6374_()
public void
l()
tick()
method_5773()
tick()
m_8119_()
private void
C()
tickBubbleColumn()
method_7550()
handleBubbleColumn()
m_38388_()
protected SoundEvent
s()
getPaddleSound()
method_7537()
getPaddleSoundEvent()
m_38370_()
private void
E()
tickLerp()
method_7555()
updatePositionAndRotation()
m_38391_()
public void
a(boolean arg0, boolean arg1)
setPaddleState(boolean arg0, boolean arg1)
method_7538(boolean arg0, boolean arg1)
setPaddleMovings(boolean leftMoving, boolean rightMoving)
m_38339_(boolean p_38341_, boolean arg1)
public float
a(int arg0, float arg1)
getRowingTime(int arg0, float arg1)
method_7551(int arg0, float arg1)
interpolatePaddlePhase(int paddle, float tickDelta)
m_38315_(int p_38317_, float arg1)
private Boat$Status
F()
getStatus()
method_7552()
checkLocation()
m_38392_()
public float
t()
getWaterLevelAbove()
method_7544()
getWaterHeightBelow()
m_38371_()
public float
v()
getGroundFriction()
method_7548()
getNearbySlipperiness()
m_38377_()
private boolean
G()
checkInWater()
method_7545()
checkBoatInWater()
m_38393_()
private Boat$Status
H()
isUnderwater()
method_7532()
getUnderWaterLocation()
m_38394_()
private void
I()
floatBoat()
method_7534()
updateVelocity()
m_38395_()
private void
K()
controlBoat()
method_7549()
updatePaddles()
m_38396_()
protected float
w()
getSinglePassengerXOffset()
method_42280()
getPassengerHorizontalOffset()
m_213802_()
public boolean
a(biq arg0)
hasEnoughSpaceFor(Entity arg0)
method_49182(class_1297 arg0)
isSmallerThanBoat(Entity entity)
m_271938_(C_507_ arg0)
protected void
a(biq arg0, biq$a arg1)
positionRider(Entity arg0, Entity$MoveFunction arg1)
method_5865(class_1297 arg0, class_1297$class_4738 arg1)
updatePassengerPosition(Entity arg0, Entity$PositionUpdater arg1)
m_19956_(C_507_ p_289571_, C_507_$C_509_ arg1)
public Vec3
b(bjg arg0)
getDismountLocationForPassenger(LivingEntity arg0)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity arg0)
m_7688_(C_524_ arg0)
protected void
b(biq arg0)
clampRotation(Entity arg0)
method_7546(class_1297 arg0)
clampPassengerYaw(Entity passenger)
m_38321_(C_507_ arg0)
public void
j(biq arg0)
onPassengerTurned(Entity arg0)
method_5644(class_1297 arg0)
onPassengerLookAround(Entity arg0)
m_7340_(C_507_ arg0)
protected void
b(qw arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
protected void
a(qw arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public InteractionResult
a(cbu arg0, bgx arg1)
interact(Player arg0, InteractionHand arg1)
method_5688(class_1657 arg0, class_1268 arg1)
interact(PlayerEntity arg0, Hand arg1)
m_6096_(C_1141_ p_38331_, C_470_ arg1)
protected void
a(double arg0, boolean arg1, dfj arg2, gw 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)
m_7840_(double p_38308_, boolean p_38310_, C_2064_ arg2, C_4675_ arg3)
public boolean
c(int arg0)
getPaddleState(int arg0)
method_7556(int arg0)
isPaddleMoving(int paddle)
m_38313_(int arg0)
public void
a(float arg0)
setDamage(float arg0)
method_7542(float arg0)
setDamageWobbleStrength(float wobbleStrength)
m_38311_(float arg0)
public float
x()
getDamage()
method_7554()
getDamageWobbleStrength()
m_38384_()
public void
d(int arg0)
setHurtTime(int arg0)
method_7553(int arg0)
setDamageWobbleTicks(int wobbleTicks)
m_38354_(int arg0)
public int
y()
getHurtTime()
method_7533()
getDamageWobbleTicks()
m_38385_()
private void
b(int arg0)
setBubbleTime(int arg0)
method_7531(int arg0)
setBubbleWobbleTicks(int wobbleTicks)
m_38366_(int arg0)
private int
L()
getBubbleTime()
method_7539()
getBubbleWobbleTicks()
m_38397_()
public float
b(float arg0)
getBubbleAngle(float arg0)
method_7547(float arg0)
interpolateBubbleWobble(float tickDelta)
m_38352_(float arg0)
public void
m(int arg0)
setHurtDir(int arg0)
method_7540(int arg0)
setDamageWobbleSide(int side)
m_38362_(int arg0)
public int
z()
getHurtDir()
method_7543()
getDamageWobbleSide()
m_38386_()
public void
a(cdn$b arg0)
setVariant(Boat$Type arg0)
method_47884(class_1690$class_1692 arg0)
setVariant(BoatEntity$Type arg0)
m_28464_(C_1205_$C_1208_ arg0)
public Boat$Type
A()
getVariant()
method_47885()
getVariant()
m_28554_()
protected boolean
r(biq arg0)
canAddPassenger(Entity arg0)
method_5818(class_1297 arg0)
canAddPassenger(Entity arg0)
m_7310_(C_507_ arg0)
protected int
B()
getMaxPassengers()
method_42281()
getMaxPassengers()
m_213801_()
public LivingEntity
cN()
getControllingPassenger()
method_5642()
getControllingPassenger()
m_6688_()
public void
a(boolean arg0, boolean arg1, boolean arg2, boolean arg3)
setInput(boolean arg0, boolean arg1, boolean arg2, boolean arg3)
method_7535(boolean arg0, boolean arg1, boolean arg2, boolean arg3)
setInputs(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack)
m_38342_(boolean p_38344_, boolean p_38345_, boolean p_38346_, boolean arg3)
protected Component
cn()
getTypeName()
method_23315()
getDefaultName()
m_5677_()
public boolean
bc()
isUnderWater()
method_5869()
isSubmergedInWater()
m_5842_()
public ItemStack
dy()
getPickResult()
method_31480()
getPickBlockStack()
m_142340_()