Class BoatEntity
- All Implemented Interfaces:
DataTracked
,Leashable
,VariantHolder<BoatEntity.Type>
,ScoreHolder
,CommandOutput
,Nameable
,EntityLike
- Direct Known Subclasses:
ChestBoatEntity
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/BoatEntity
intermediary net/minecraft/class_1690
official cov
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final TrackedData
<Integer> private double
private double
private static final TrackedData
<Integer> private boolean
private float
private float
static final double
A boat will emit a sound event every time a paddle is near this rotation.private double
private static final int
static final int
static final int
static final int
private float
private BoatEntity.Location
private Leashable.LeashData
private static final TrackedData
<Boolean> private int
private BoatEntity.Location
private float
private static final float
private boolean
private final float[]
private boolean
private boolean
private boolean
private boolean
private static final TrackedData
<Boolean> private float
private float
private double
private double
private double
private float
private double
Fields inherited from class net.minecraft.entity.vehicle.VehicleEntity
DAMAGE_WOBBLE_SIDE, DAMAGE_WOBBLE_STRENGTH, DAMAGE_WOBBLE_TICKS
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorDescriptionBoatEntity
(EntityType<? extends BoatEntity> type, World world) BoatEntity
(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionvoid
animateDamage
(float yaw) Called on the client to animate the entity's damage (the wobble).void
applyLeashElasticity
(Entity leashHolder, float distance) asItem()
protected boolean
canAddPassenger
(Entity passenger) Returns whetherentity
can ride this entity.static boolean
canCollide
(Entity entity, Entity other) boolean
canHit()
Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.private boolean
private BoatEntity.Location
protected void
clampPassengerYaw
(Entity passenger) boolean
collidesWith
(Entity other) Returns whether this entity cannot occupy the same space withother
.protected void
fall
(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private int
Returns the passenger in control of this entity, ornull
if there is none.protected Text
Returns the default name of the entity.protected double
Returns the offset from the entity's position where the leash is attached to.float
double
double
float
double
protected int
protected Entity.MoveEffect
Returns the possible effect(s) of an entity moving.float
protected @Nullable SoundEvent
protected Vec3d
getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected float
Returns the stack for creative "pick block" functionality, ornull
if there is none.private @Nullable BoatEntity.Location
float
private void
protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.interact
(PlayerEntity player, Hand hand) Called when a player interacts with this entity.float
interpolateBubbleWobble
(float tickDelta) float
interpolatePaddlePhase
(int paddle, float tickDelta) boolean
Returns whether other entities cannot occupy the same space with this entity.boolean
isPaddleMoving
(int paddle) boolean
Returns whether the entity can be pushed by other entities.boolean
isSmallerThanBoat
(Entity entity) boolean
Returns whether this entity's hitbox is fully submerged in water.void
onBubbleColumnSurfaceCollision
(boolean drag) Called when the entity collides with a bubble column with an air above.void
onPassengerLookAround
(Entity passenger) positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.void
pushAwayFrom
(Entity entity) protected void
Reads custom data fromnbt
.void
remove
(Entity.RemovalReason reason) Removes the entity.private void
setBubbleWobbleTicks
(int wobbleTicks) void
setInputs
(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack) void
setLeashData
(Leashable.LeashData leashData) void
setPaddleMovings
(boolean leftMoving, boolean rightMoving) void
setVariant
(BoatEntity.Type type) void
tick()
Ticks this entity.private void
updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.protected void
updatePassengerPosition
(Entity passenger, Entity.PositionUpdater positionUpdater) private void
void
updateTrackedPositionAndAngles
(double x, double y, double z, float yaw, float pitch, int interpolationSteps) private void
protected void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.vehicle.VehicleEntity
damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, killAndDropItem, killAndDropSelf, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKill
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMovement, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
Methods inherited from interface net.minecraft.entity.Leashable
attachLeash, beforeLeashTick, canBeLeashed, canLeashAttachTo, detachLeash, detachLeash, getLeashHolder, isLeashed, mightBeLeashed, onShortLeashTick, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
BOAT_TYPE
- Mappings:
Namespace Name Mixin selector named BOAT_TYPE
Lnet/minecraft/entity/vehicle/BoatEntity;BOAT_TYPE:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7698
Lnet/minecraft/class_1690;field_7698:Lnet/minecraft/class_2940;
official i
Lcov;i:Lajw;
-
LEFT_PADDLE_MOVING
- Mappings:
Namespace Name Mixin selector named LEFT_PADDLE_MOVING
Lnet/minecraft/entity/vehicle/BoatEntity;LEFT_PADDLE_MOVING:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7687
Lnet/minecraft/class_1690;field_7687:Lnet/minecraft/class_2940;
official j
Lcov;j:Lajw;
-
RIGHT_PADDLE_MOVING
- Mappings:
Namespace Name Mixin selector named RIGHT_PADDLE_MOVING
Lnet/minecraft/entity/vehicle/BoatEntity;RIGHT_PADDLE_MOVING:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7713
Lnet/minecraft/class_1690;field_7713:Lnet/minecraft/class_2940;
official k
Lcov;k:Lajw;
-
BUBBLE_WOBBLE_TICKS
- Mappings:
Namespace Name Mixin selector named BUBBLE_WOBBLE_TICKS
Lnet/minecraft/entity/vehicle/BoatEntity;BUBBLE_WOBBLE_TICKS:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7691
Lnet/minecraft/class_1690;field_7691:Lnet/minecraft/class_2940;
official l
Lcov;l:Lajw;
-
field_30697
public static final int field_30697- See Also:
- Mappings:
Namespace Name Mixin selector named field_30697
Lnet/minecraft/entity/vehicle/BoatEntity;field_30697:I
intermediary field_30697
Lnet/minecraft/class_1690;field_30697:I
official b
Lcov;b:I
-
field_30698
public static final int field_30698- See Also:
- Mappings:
Namespace Name Mixin selector named field_30698
Lnet/minecraft/entity/vehicle/BoatEntity;field_30698:I
intermediary field_30698
Lnet/minecraft/class_1690;field_30698:I
official c
Lcov;c:I
-
field_30695
private static final int field_30695- See Also:
- Mappings:
Namespace Name Mixin selector named field_30695
Lnet/minecraft/entity/vehicle/BoatEntity;field_30695:I
intermediary field_30695
Lnet/minecraft/class_1690;field_30695:I
official m
Lcov;m:I
-
NEXT_PADDLE_PHASE
private static final float NEXT_PADDLE_PHASE- See Also:
- Mappings:
Namespace Name Mixin selector named NEXT_PADDLE_PHASE
Lnet/minecraft/entity/vehicle/BoatEntity;NEXT_PADDLE_PHASE:F
intermediary field_30696
Lnet/minecraft/class_1690;field_30696:F
official n
Lcov;n:F
-
EMIT_SOUND_EVENT_PADDLE_ROTATION
public static final double EMIT_SOUND_EVENT_PADDLE_ROTATIONA boat will emit a sound event every time a paddle is near this rotation.- See Also:
- Mappings:
Namespace Name Mixin selector named EMIT_SOUND_EVENT_PADDLE_ROTATION
Lnet/minecraft/entity/vehicle/BoatEntity;EMIT_SOUND_EVENT_PADDLE_ROTATION:D
intermediary field_30699
Lnet/minecraft/class_1690;field_30699:D
official d
Lcov;d:D
-
field_30700
public static final int field_30700- See Also:
- Mappings:
Namespace Name Mixin selector named field_30700
Lnet/minecraft/entity/vehicle/BoatEntity;field_30700:I
intermediary field_30700
Lnet/minecraft/class_1690;field_30700:I
official e
Lcov;e:I
-
paddlePhases
private final float[] paddlePhases- Mappings:
Namespace Name Mixin selector named paddlePhases
Lnet/minecraft/entity/vehicle/BoatEntity;paddlePhases:[F
intermediary field_7704
Lnet/minecraft/class_1690;field_7704:[F
official o
Lcov;o:[F
-
velocityDecay
private float velocityDecay- Mappings:
Namespace Name Mixin selector named velocityDecay
Lnet/minecraft/entity/vehicle/BoatEntity;velocityDecay:F
intermediary field_7692
Lnet/minecraft/class_1690;field_7692:F
official p
Lcov;p:F
-
ticksUnderwater
private float ticksUnderwater- Mappings:
Namespace Name Mixin selector named ticksUnderwater
Lnet/minecraft/entity/vehicle/BoatEntity;ticksUnderwater:F
intermediary field_7706
Lnet/minecraft/class_1690;field_7706:F
official q
Lcov;q:F
-
yawVelocity
private float yawVelocity- Mappings:
Namespace Name Mixin selector named yawVelocity
Lnet/minecraft/entity/vehicle/BoatEntity;yawVelocity:F
intermediary field_7690
Lnet/minecraft/class_1690;field_7690:F
official r
Lcov;r:F
-
lerpTicks
private int lerpTicks- Mappings:
Namespace Name Mixin selector named lerpTicks
Lnet/minecraft/entity/vehicle/BoatEntity;lerpTicks:I
intermediary field_7708
Lnet/minecraft/class_1690;field_7708:I
official s
Lcov;s:I
-
x
private double x- Mappings:
Namespace Name Mixin selector named x
Lnet/minecraft/entity/vehicle/BoatEntity;x:D
intermediary field_7686
Lnet/minecraft/class_1690;field_7686:D
official t
Lcov;t:D
-
y
private double y- Mappings:
Namespace Name Mixin selector named y
Lnet/minecraft/entity/vehicle/BoatEntity;y:D
intermediary field_7700
Lnet/minecraft/class_1690;field_7700:D
official u
Lcov;u:D
-
z
private double z- Mappings:
Namespace Name Mixin selector named z
Lnet/minecraft/entity/vehicle/BoatEntity;z:D
intermediary field_7685
Lnet/minecraft/class_1690;field_7685:D
official v
Lcov;v:D
-
boatYaw
private double boatYaw- Mappings:
Namespace Name Mixin selector named boatYaw
Lnet/minecraft/entity/vehicle/BoatEntity;boatYaw:D
intermediary field_7699
Lnet/minecraft/class_1690;field_7699:D
official aD
Lcov;aD:D
-
boatPitch
private double boatPitch- Mappings:
Namespace Name Mixin selector named boatPitch
Lnet/minecraft/entity/vehicle/BoatEntity;boatPitch:D
intermediary field_7684
Lnet/minecraft/class_1690;field_7684:D
official aE
Lcov;aE:D
-
pressingLeft
private boolean pressingLeft- Mappings:
Namespace Name Mixin selector named pressingLeft
Lnet/minecraft/entity/vehicle/BoatEntity;pressingLeft:Z
intermediary field_7710
Lnet/minecraft/class_1690;field_7710:Z
official aF
Lcov;aF:Z
-
pressingRight
private boolean pressingRight- Mappings:
Namespace Name Mixin selector named pressingRight
Lnet/minecraft/entity/vehicle/BoatEntity;pressingRight:Z
intermediary field_7695
Lnet/minecraft/class_1690;field_7695:Z
official aG
Lcov;aG:Z
-
pressingForward
private boolean pressingForward- Mappings:
Namespace Name Mixin selector named pressingForward
Lnet/minecraft/entity/vehicle/BoatEntity;pressingForward:Z
intermediary field_7709
Lnet/minecraft/class_1690;field_7709:Z
official aH
Lcov;aH:Z
-
pressingBack
private boolean pressingBack- Mappings:
Namespace Name Mixin selector named pressingBack
Lnet/minecraft/entity/vehicle/BoatEntity;pressingBack:Z
intermediary field_7693
Lnet/minecraft/class_1690;field_7693:Z
official aI
Lcov;aI:Z
-
waterLevel
private double waterLevel- Mappings:
Namespace Name Mixin selector named waterLevel
Lnet/minecraft/entity/vehicle/BoatEntity;waterLevel:D
intermediary field_7697
Lnet/minecraft/class_1690;field_7697:D
official aJ
Lcov;aJ:D
-
nearbySlipperiness
private float nearbySlipperiness- Mappings:
Namespace Name Mixin selector named nearbySlipperiness
Lnet/minecraft/entity/vehicle/BoatEntity;nearbySlipperiness:F
intermediary field_7714
Lnet/minecraft/class_1690;field_7714:F
official aK
Lcov;aK:F
-
location
- Mappings:
Namespace Name Mixin selector named location
Lnet/minecraft/entity/vehicle/BoatEntity;location:Lnet/minecraft/entity/vehicle/BoatEntity$Location;
intermediary field_7702
Lnet/minecraft/class_1690;field_7702:Lnet/minecraft/class_1690$class_1691;
official aL
Lcov;aL:Lcov$a;
-
lastLocation
- Mappings:
Namespace Name Mixin selector named lastLocation
Lnet/minecraft/entity/vehicle/BoatEntity;lastLocation:Lnet/minecraft/entity/vehicle/BoatEntity$Location;
intermediary field_7701
Lnet/minecraft/class_1690;field_7701:Lnet/minecraft/class_1690$class_1691;
official aM
Lcov;aM:Lcov$a;
-
fallVelocity
private double fallVelocity- Mappings:
Namespace Name Mixin selector named fallVelocity
Lnet/minecraft/entity/vehicle/BoatEntity;fallVelocity:D
intermediary field_7696
Lnet/minecraft/class_1690;field_7696:D
official aN
Lcov;aN:D
-
onBubbleColumnSurface
private boolean onBubbleColumnSurface- Mappings:
Namespace Name Mixin selector named onBubbleColumnSurface
Lnet/minecraft/entity/vehicle/BoatEntity;onBubbleColumnSurface:Z
intermediary field_7689
Lnet/minecraft/class_1690;field_7689:Z
official aO
Lcov;aO:Z
-
bubbleColumnIsDrag
private boolean bubbleColumnIsDrag- Mappings:
Namespace Name Mixin selector named bubbleColumnIsDrag
Lnet/minecraft/entity/vehicle/BoatEntity;bubbleColumnIsDrag:Z
intermediary field_7703
Lnet/minecraft/class_1690;field_7703:Z
official aP
Lcov;aP:Z
-
bubbleWobbleStrength
private float bubbleWobbleStrength- Mappings:
Namespace Name Mixin selector named bubbleWobbleStrength
Lnet/minecraft/entity/vehicle/BoatEntity;bubbleWobbleStrength:F
intermediary field_7712
Lnet/minecraft/class_1690;field_7712:F
official aQ
Lcov;aQ:F
-
bubbleWobble
private float bubbleWobble- Mappings:
Namespace Name Mixin selector named bubbleWobble
Lnet/minecraft/entity/vehicle/BoatEntity;bubbleWobble:F
intermediary field_7694
Lnet/minecraft/class_1690;field_7694:F
official aR
Lcov;aR:F
-
lastBubbleWobble
private float lastBubbleWobble- Mappings:
Namespace Name Mixin selector named lastBubbleWobble
Lnet/minecraft/entity/vehicle/BoatEntity;lastBubbleWobble:F
intermediary field_7711
Lnet/minecraft/class_1690;field_7711:F
official aS
Lcov;aS:F
-
leashData
- Mappings:
Namespace Name Mixin selector named leashData
Lnet/minecraft/entity/vehicle/BoatEntity;leashData:Lnet/minecraft/entity/Leashable$LeashData;
intermediary field_52225
Lnet/minecraft/class_1690;field_52225:Lnet/minecraft/class_9817$class_9818;
official aT
Lcov;aT:Lbtk$a;
-
-
Constructor Details
-
BoatEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbsr;<init>(Lbsx;Ldcw;)V
-
BoatEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/vehicle/BoatEntity;<init>(Lnet/minecraft/world/World;DDD)V
intermediary <init>
Lnet/minecraft/class_1690;<init>(Lnet/minecraft/class_1937;DDD)V
official <init>
Lcov;<init>(Ldcw;DDD)V
-
-
Method Details
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffect
in classEntity
- Implementation Note:
- If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
- Mappings:
Namespace Name Mixin selector named getMoveEffect
Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
intermediary method_33570
Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
official bc
Lbsr;bc()Lbsr$b;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classVehicleEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbsr;a(Laka$a;)V
-
collidesWith
Returns whether this entity cannot occupy the same space withother
.This returns
false
ifother
is connected through vehicles.- Overrides:
collidesWith
in classEntity
- Returns:
- whether this entity cannot occupy the same space with
other
- See Also:
- Mappings:
Namespace Name Mixin selector named collidesWith
Lnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
intermediary method_30949
Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Z
official i
Lbsr;i(Lbsr;)Z
-
canCollide
- Mappings:
Namespace Name Mixin selector named canCollide
Lnet/minecraft/entity/vehicle/BoatEntity;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Z
intermediary method_30959
Lnet/minecraft/class_1690;method_30959(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Z
official a
Lcov;a(Lbsr;Lbsr;)Z
-
isCollidable
public boolean isCollidable()Returns whether other entities cannot occupy the same space with this entity.If
true
, other entities can stand on this entity without falling.BoatEntity
andShulkerEntity
has this behavior.- Overrides:
isCollidable
in classEntity
- Returns:
- whether other entities cannot occupy the same space with this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named isCollidable
Lnet/minecraft/entity/Entity;isCollidable()Z
intermediary method_30948
Lnet/minecraft/class_1297;method_30948()Z
official bG
Lbsr;bG()Z
-
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
isPushable
in classEntity
- Returns:
- whether the entity can be pushed by other entities
- Mappings:
Namespace Name Mixin selector named isPushable
Lnet/minecraft/entity/Entity;isPushable()Z
intermediary method_5810
Lnet/minecraft/class_1297;method_5810()Z
official bB
Lbsr;bB()Z
-
positionInPortal
Returns the entity's position in the portal after teleportation.- Overrides:
positionInPortal
in classEntity
- Returns:
- the entity's position in the portal after teleportation
- See Also:
- Mappings:
Namespace Name Mixin selector named positionInPortal
Lnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
intermediary method_30633
Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;
official a
Lbsr;a(Lji$a;Ll$a;)Lexc;
-
getPassengerAttachmentPos
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Overrides:
getPassengerAttachmentPos
in classEntity
- Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPos
Lnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;
intermediary method_52533
Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;
official a
Lbsr;a(Lbsr;Lbsu;F)Lexc;
-
onBubbleColumnSurfaceCollision
public void onBubbleColumnSurfaceCollision(boolean drag) Called when the entity collides with a bubble column with an air above.This applies the bubble column velocity by default.
BoatEntity
uses this to spawn splash particles.- Overrides:
onBubbleColumnSurfaceCollision
in classEntity
- Parameters:
drag
- whether the entity should be dragged downwards- Mappings:
Namespace Name Mixin selector named onBubbleColumnSurfaceCollision
Lnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(Z)V
intermediary method_5700
Lnet/minecraft/class_1297;method_5700(Z)V
official l
Lbsr;l(Z)V
-
pushAwayFrom
- Overrides:
pushAwayFrom
in classEntity
- Mappings:
Namespace Name Mixin selector named pushAwayFrom
Lnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
intermediary method_5697
Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)V
official h
Lbsr;h(Lbsr;)V
-
asItem
- Specified by:
asItem
in classVehicleEntity
- Mappings:
Namespace Name Mixin selector named asItem
Lnet/minecraft/entity/vehicle/VehicleEntity;asItem()Lnet/minecraft/item/Item;
intermediary method_7557
Lnet/minecraft/class_8836;method_7557()Lnet/minecraft/class_1792;
official ak_
Lcpg;ak_()Lcul;
-
animateDamage
public void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Overrides:
animateDamage
in classEntity
- Mappings:
Namespace Name Mixin selector named animateDamage
Lnet/minecraft/entity/Entity;animateDamage(F)V
intermediary method_5879
Lnet/minecraft/class_1297;method_5879(F)V
official n
Lbsr;n(F)V
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHit
in classEntity
- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector named canHit
Lnet/minecraft/entity/Entity;canHit()Z
intermediary method_5863
Lnet/minecraft/class_1297;method_5863()Z
official bA
Lbsr;bA()Z
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAngles
in classEntity
- Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAngles
Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
intermediary method_5759
Lnet/minecraft/class_1297;method_5759(DDDFFI)V
official a
Lbsr;a(DDDFFI)V
-
getLerpTargetX
public double getLerpTargetX()- Overrides:
getLerpTargetX
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetX
Lnet/minecraft/entity/Entity;getLerpTargetX()D
intermediary method_53830
Lnet/minecraft/class_1297;method_53830()D
official c_
Lbsr;c_()D
-
getLerpTargetY
public double getLerpTargetY()- Overrides:
getLerpTargetY
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetY
Lnet/minecraft/entity/Entity;getLerpTargetY()D
intermediary method_53827
Lnet/minecraft/class_1297;method_53827()D
official d_
Lbsr;d_()D
-
getLerpTargetZ
public double getLerpTargetZ()- Overrides:
getLerpTargetZ
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetZ
Lnet/minecraft/entity/Entity;getLerpTargetZ()D
intermediary method_53828
Lnet/minecraft/class_1297;method_53828()D
official P_
Lbsr;P_()D
-
getLerpTargetPitch
public float getLerpTargetPitch()- Overrides:
getLerpTargetPitch
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetPitch
Lnet/minecraft/entity/Entity;getLerpTargetPitch()F
intermediary method_53829
Lnet/minecraft/class_1297;method_53829()F
official Q_
Lbsr;Q_()F
-
getLerpTargetYaw
public float getLerpTargetYaw()- Overrides:
getLerpTargetYaw
in classEntity
- Mappings:
Namespace Name Mixin selector named getLerpTargetYaw
Lnet/minecraft/entity/Entity;getLerpTargetYaw()F
intermediary method_53831
Lnet/minecraft/class_1297;method_53831()F
official e_
Lbsr;e_()F
-
getMovementDirection
- Overrides:
getMovementDirection
in classEntity
- Mappings:
Namespace Name Mixin selector named getMovementDirection
Lnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
intermediary method_5755
Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;
official cI
Lbsr;cI()Lji;
-
tick
public void tick()Ticks this entity.- Overrides:
tick
in classEntity
- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();
should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
Entity.baseTick()
. - Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/Entity;tick()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
official l
Lbsr;l()V
-
handleBubbleColumn
private void handleBubbleColumn()- Mappings:
Namespace Name Mixin selector named handleBubbleColumn
Lnet/minecraft/entity/vehicle/BoatEntity;handleBubbleColumn()V
intermediary method_7550
Lnet/minecraft/class_1690;method_7550()V
official B
Lcov;B()V
-
getPaddleSoundEvent
- Mappings:
Namespace Name Mixin selector named getPaddleSoundEvent
Lnet/minecraft/entity/vehicle/BoatEntity;getPaddleSoundEvent()Lnet/minecraft/sound/SoundEvent;
intermediary method_7537
Lnet/minecraft/class_1690;method_7537()Lnet/minecraft/class_3414;
official s
Lcov;s()Lavo;
-
updatePositionAndRotation
private void updatePositionAndRotation()- Mappings:
Namespace Name Mixin selector named updatePositionAndRotation
Lnet/minecraft/entity/vehicle/BoatEntity;updatePositionAndRotation()V
intermediary method_7555
Lnet/minecraft/class_1690;method_7555()V
official C
Lcov;C()V
-
setPaddleMovings
public void setPaddleMovings(boolean leftMoving, boolean rightMoving) - Mappings:
Namespace Name Mixin selector named setPaddleMovings
Lnet/minecraft/entity/vehicle/BoatEntity;setPaddleMovings(ZZ)V
intermediary method_7538
Lnet/minecraft/class_1690;method_7538(ZZ)V
official b
Lcov;b(ZZ)V
-
interpolatePaddlePhase
public float interpolatePaddlePhase(int paddle, float tickDelta) - Mappings:
Namespace Name Mixin selector named interpolatePaddlePhase
Lnet/minecraft/entity/vehicle/BoatEntity;interpolatePaddlePhase(IF)F
intermediary method_7551
Lnet/minecraft/class_1690;method_7551(IF)F
official a
Lcov;a(IF)F
-
getLeashData
- Specified by:
getLeashData
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named getLeashData
Lnet/minecraft/entity/Leashable;getLeashData()Lnet/minecraft/entity/Leashable$LeashData;
intermediary method_60955
Lnet/minecraft/class_9817;method_60955()Lnet/minecraft/class_9817$class_9818;
official X_
Lbtk;X_()Lbtk$a;
-
setLeashData
- Specified by:
setLeashData
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named setLeashData
Lnet/minecraft/entity/Leashable;setLeashData(Lnet/minecraft/entity/Leashable$LeashData;)V
intermediary method_60960
Lnet/minecraft/class_9817;method_60960(Lnet/minecraft/class_9817$class_9818;)V
official a
Lbtk;a(Lbtk$a;)V
-
getLeashOffset
Returns the offset from the entity's position where the leash is attached to.This is different from
Entity.getLeashPos(float)
; this method is called on the entity which a leash is attached to.- Overrides:
getLeashOffset
in classEntity
- Returns:
- the offset from the entity's position where the leash is attached to
- See Also:
- Mappings:
Namespace Name Mixin selector named getLeashOffset
Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
intermediary method_29919
Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
official cM
Lbsr;cM()Lexc;
-
applyLeashElasticity
- Specified by:
applyLeashElasticity
in interfaceLeashable
- Mappings:
Namespace Name Mixin selector named applyLeashElasticity
Lnet/minecraft/entity/Leashable;applyLeashElasticity(Lnet/minecraft/entity/Entity;F)V
intermediary method_61162
Lnet/minecraft/class_9817;method_61162(Lnet/minecraft/class_1297;F)V
official b
Lbtk;b(Lbsr;F)V
-
checkLocation
- Mappings:
Namespace Name Mixin selector named checkLocation
Lnet/minecraft/entity/vehicle/BoatEntity;checkLocation()Lnet/minecraft/entity/vehicle/BoatEntity$Location;
intermediary method_7552
Lnet/minecraft/class_1690;method_7552()Lnet/minecraft/class_1690$class_1691;
official D
Lcov;D()Lcov$a;
-
getWaterHeightBelow
public float getWaterHeightBelow()- Mappings:
Namespace Name Mixin selector named getWaterHeightBelow
Lnet/minecraft/entity/vehicle/BoatEntity;getWaterHeightBelow()F
intermediary method_7544
Lnet/minecraft/class_1690;method_7544()F
official t
Lcov;t()F
-
getNearbySlipperiness
public float getNearbySlipperiness()- Mappings:
Namespace Name Mixin selector named getNearbySlipperiness
Lnet/minecraft/entity/vehicle/BoatEntity;getNearbySlipperiness()F
intermediary method_7548
Lnet/minecraft/class_1690;method_7548()F
official v
Lcov;v()F
-
checkBoatInWater
private boolean checkBoatInWater()- Mappings:
Namespace Name Mixin selector named checkBoatInWater
Lnet/minecraft/entity/vehicle/BoatEntity;checkBoatInWater()Z
intermediary method_7545
Lnet/minecraft/class_1690;method_7545()Z
official E
Lcov;E()Z
-
getUnderWaterLocation
- Mappings:
Namespace Name Mixin selector named getUnderWaterLocation
Lnet/minecraft/entity/vehicle/BoatEntity;getUnderWaterLocation()Lnet/minecraft/entity/vehicle/BoatEntity$Location;
intermediary method_7532
Lnet/minecraft/class_1690;method_7532()Lnet/minecraft/class_1690$class_1691;
official H
Lcov;H()Lcov$a;
-
getGravity
protected double getGravity()- Overrides:
getGravity
in classEntity
- Mappings:
Namespace Name Mixin selector named getGravity
Lnet/minecraft/entity/Entity;getGravity()D
intermediary method_7490
Lnet/minecraft/class_1297;method_7490()D
official aZ
Lbsr;aZ()D
-
updateVelocity
private void updateVelocity()- Mappings:
Namespace Name Mixin selector named updateVelocity
Lnet/minecraft/entity/vehicle/BoatEntity;updateVelocity()V
intermediary method_7534
Lnet/minecraft/class_1690;method_7534()V
official I
Lcov;I()V
-
updatePaddles
private void updatePaddles()- Mappings:
Namespace Name Mixin selector named updatePaddles
Lnet/minecraft/entity/vehicle/BoatEntity;updatePaddles()V
intermediary method_7549
Lnet/minecraft/class_1690;method_7549()V
official J
Lcov;J()V
-
getPassengerHorizontalOffset
protected float getPassengerHorizontalOffset()- Mappings:
Namespace Name Mixin selector named getPassengerHorizontalOffset
Lnet/minecraft/entity/vehicle/BoatEntity;getPassengerHorizontalOffset()F
intermediary method_42280
Lnet/minecraft/class_1690;method_42280()F
official w
Lcov;w()F
-
isSmallerThanBoat
- Mappings:
Namespace Name Mixin selector named isSmallerThanBoat
Lnet/minecraft/entity/vehicle/BoatEntity;isSmallerThanBoat(Lnet/minecraft/entity/Entity;)Z
intermediary method_49182
Lnet/minecraft/class_1690;method_49182(Lnet/minecraft/class_1297;)Z
official c
Lcov;c(Lbsr;)Z
-
updatePassengerPosition
- Overrides:
updatePassengerPosition
in classEntity
- Mappings:
Namespace Name Mixin selector named updatePassengerPosition
Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)V
intermediary method_5865
Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)V
official a
Lbsr;a(Lbsr;Lbsr$a;)V
-
updatePassengerForDismount
Returns the position of the dismountedpassenger
.Vehicles should override this to return a suitable dismounting position for the passenger. Check the implementation of the subclass for details.
- Overrides:
updatePassengerForDismount
in classEntity
- Returns:
- the position of the dismounted
passenger
- See Also:
- Mappings:
Namespace Name Mixin selector named updatePassengerForDismount
Lnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
intermediary method_24829
Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;
official b
Lbsr;b(Lbtn;)Lexc;
-
clampPassengerYaw
- Mappings:
Namespace Name Mixin selector named clampPassengerYaw
Lnet/minecraft/entity/vehicle/BoatEntity;clampPassengerYaw(Lnet/minecraft/entity/Entity;)V
intermediary method_7546
Lnet/minecraft/class_1690;method_7546(Lnet/minecraft/class_1297;)V
official d
Lcov;d(Lbsr;)V
-
onPassengerLookAround
- Overrides:
onPassengerLookAround
in classEntity
- Mappings:
Namespace Name Mixin selector named onPassengerLookAround
Lnet/minecraft/entity/Entity;onPassengerLookAround(Lnet/minecraft/entity/Entity;)V
intermediary method_5644
Lnet/minecraft/class_1297;method_5644(Lnet/minecraft/class_1297;)V
official k
Lbsr;k(Lbsr;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Specified by:
writeCustomDataToNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbsr;b(Lub;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Specified by:
readCustomDataFromNbt
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbsr;a(Lub;)V
-
interact
Called when a player interacts with this entity.- Overrides:
interact
in classEntity
- Parameters:
player
- the playerhand
- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector named interact
Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
intermediary method_5688
Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
official a
Lbsr;a(Lcmx;Lbqq;)Lbqr;
-
remove
Removes the entity.- Overrides:
remove
in classEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named remove
Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_5650
Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
official a
Lbsr;a(Lbsr$c;)V
-
fall
protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls. Flying mobs should override this to do nothing.- Overrides:
fall
in classEntity
- Implementation Note:
- If on ground, this calls
Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, float)
, which can add or reduce fall damage, emitsGameEvent.HIT_GROUND
, then callsEntity.onLanding()
. Otherwise, ifheightDifference
is negative, it subtracts that value fromEntity.fallDistance
. - Mappings:
Namespace Name Mixin selector named fall
Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_5623
Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
official a
Lbsr;a(DZLdtc;Ljd;)V
-
isPaddleMoving
public boolean isPaddleMoving(int paddle) - Mappings:
Namespace Name Mixin selector named isPaddleMoving
Lnet/minecraft/entity/vehicle/BoatEntity;isPaddleMoving(I)Z
intermediary method_7556
Lnet/minecraft/class_1690;method_7556(I)Z
official c
Lcov;c(I)Z
-
setBubbleWobbleTicks
private void setBubbleWobbleTicks(int wobbleTicks) - Mappings:
Namespace Name Mixin selector named setBubbleWobbleTicks
Lnet/minecraft/entity/vehicle/BoatEntity;setBubbleWobbleTicks(I)V
intermediary method_7531
Lnet/minecraft/class_1690;method_7531(I)V
official b
Lcov;b(I)V
-
getBubbleWobbleTicks
private int getBubbleWobbleTicks()- Mappings:
Namespace Name Mixin selector named getBubbleWobbleTicks
Lnet/minecraft/entity/vehicle/BoatEntity;getBubbleWobbleTicks()I
intermediary method_7539
Lnet/minecraft/class_1690;method_7539()I
official K
Lcov;K()I
-
interpolateBubbleWobble
public float interpolateBubbleWobble(float tickDelta) - Mappings:
Namespace Name Mixin selector named interpolateBubbleWobble
Lnet/minecraft/entity/vehicle/BoatEntity;interpolateBubbleWobble(F)F
intermediary method_7547
Lnet/minecraft/class_1690;method_7547(F)F
official a
Lcov;a(F)F
-
setVariant
- Specified by:
setVariant
in interfaceVariantHolder<BoatEntity.Type>
- Mappings:
Namespace Name Mixin selector named setVariant
Lnet/minecraft/entity/vehicle/BoatEntity;setVariant(Lnet/minecraft/entity/vehicle/BoatEntity$Type;)V
intermediary method_47884
Lnet/minecraft/class_1690;method_47884(Lnet/minecraft/class_1690$class_1692;)V
official a
Lcov;a(Lcov$b;)V
-
getVariant
- Specified by:
getVariant
in interfaceVariantHolder<BoatEntity.Type>
- Mappings:
Namespace Name Mixin selector named getVariant
Lnet/minecraft/entity/vehicle/BoatEntity;getVariant()Lnet/minecraft/entity/vehicle/BoatEntity$Type;
intermediary method_47885
Lnet/minecraft/class_1690;method_47885()Lnet/minecraft/class_1690$class_1692;
official x
Lcov;x()Lcov$b;
-
canAddPassenger
Returns whetherentity
can ride this entity.Returning
false
causes other entities to be unable to ride this entity. For example,BoatEntity
uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).This is the opposite of
Entity.canStartRiding(net.minecraft.entity.Entity)
.- Overrides:
canAddPassenger
in classEntity
- Returns:
- whether
entity
can ride this entity - See Also:
- Mappings:
Namespace Name Mixin selector named canAddPassenger
Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
intermediary method_5818
Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
official r
Lbsr;r(Lbsr;)Z
-
getMaxPassengers
protected int getMaxPassengers()- Mappings:
Namespace Name Mixin selector named getMaxPassengers
Lnet/minecraft/entity/vehicle/BoatEntity;getMaxPassengers()I
intermediary method_42281
Lnet/minecraft/class_1690;method_42281()I
official F
Lcov;F()I
-
getControllingPassenger
Returns the passenger in control of this entity, ornull
if there is none.Rideable entities should override this to return the entity. This is usually
#getFirstPassenger
.- Overrides:
getControllingPassenger
in classEntity
- Returns:
- the passenger in control of this entity, or
null
if there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getControllingPassenger
Lnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;
intermediary method_5642
Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;
official cQ
Lbsr;cQ()Lbtn;
-
setInputs
public void setInputs(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack) - Mappings:
Namespace Name Mixin selector named setInputs
Lnet/minecraft/entity/vehicle/BoatEntity;setInputs(ZZZZ)V
intermediary method_7535
Lnet/minecraft/class_1690;method_7535(ZZZZ)V
official a
Lcov;a(ZZZZ)V
-
getDefaultName
Returns the default name of the entity.- Overrides:
getDefaultName
in classEntity
- Returns:
- the default name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultName
Lnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;
intermediary method_23315
Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;
official cs
Lbsr;cs()Lwz;
-
isSubmergedInWater
public boolean isSubmergedInWater()Returns whether this entity's hitbox is fully submerged in water.- Overrides:
isSubmergedInWater
in classEntity
- Returns:
- whether this entity's hitbox is fully submerged in water
- Mappings:
Namespace Name Mixin selector named isSubmergedInWater
Lnet/minecraft/entity/Entity;isSubmergedInWater()Z
intermediary method_5869
Lnet/minecraft/class_1297;method_5869()Z
official bk
Lbsr;bk()Z
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornull
if there is none.If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that
MobEntity
handles the spawn eggs.ItemFrameEntity
instead returns the copy of the stack held in the frame.- Overrides:
getPickBlockStack
in classEntity
- Returns:
- the stack for creative "pick block" functionality, or
null
if there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStack
Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
intermediary method_31480
Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
official dB
Lbsr;dB()Lcuq;
-