Class BoatEntity
- All Implemented Interfaces:
DataTracked,VariantHolder<BoatEntity.Type>,ScoreHolder,CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
ChestBoatEntity
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/BoatEntityintermediary net/minecraft/class_1690official cnv
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<Integer> private doubleprivate doubleprivate static final TrackedData<Integer> private booleanprivate floatprivate floatstatic final doubleA boat will emit a sound event every time a paddle is near this rotation.private doubleprivate static final intstatic final intstatic final intstatic final intprivate floatprivate BoatEntity.Locationprivate static final TrackedData<Boolean> private intprivate BoatEntity.Locationprivate floatprivate static final floatprivate booleanprivate final float[]private booleanprivate booleanprivate booleanprivate booleanprivate static final TrackedData<Boolean> private floatprivate floatprivate doubleprivate doubleprivate doubleprivate floatprivate doubleFields inherited from class net.minecraft.entity.vehicle.VehicleEntity
DAMAGE_WOBBLE_SIDE, DAMAGE_WOBBLE_STRENGTH, DAMAGE_WOBBLE_TICKSFields 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, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBoatEntity(EntityType<? extends BoatEntity> type, World world) BoatEntity(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).asItem()protected booleancanAddPassenger(Entity passenger) Returns whetherentitycan ride this entity.static booleancanCollide(Entity entity, Entity other) booleancanHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.private booleanprivate BoatEntity.Locationprotected voidclampPassengerYaw(Entity passenger) booleancollidesWith(Entity other) Returns whether this entity cannot occupy the same space withother.protected voidfall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private intReturns the passenger in control of this entity, ornullif there is none.protected TextReturns the default name of the entity.protected doublefloatdoubledoublefloatdoubleprotected intprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.floatprotected @Nullable SoundEventprotected Vec3dgetPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected floatReturns the stack for creative "pick block" functionality, ornullif there is none.private @Nullable BoatEntity.Locationfloatprivate voidprotected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.floatinterpolateBubbleWobble(float tickDelta) floatinterpolatePaddlePhase(int paddle, float tickDelta) booleanReturns whether other entities cannot occupy the same space with this entity.booleanisPaddleMoving(int paddle) booleanReturns whether the entity can be pushed by other entities.booleanisSmallerThanBoat(Entity entity) booleanReturns whether this entity's hitbox is fully submerged in water.voidonBubbleColumnSurfaceCollision(boolean drag) Called when the entity collides with a bubble column with an air above.voidonPassengerLookAround(Entity passenger) protected Vec3dpositionInPortal(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.voidpushAwayFrom(Entity entity) protected voidReads custom data fromnbt.private voidsetBubbleWobbleTicks(int wobbleTicks) voidsetInputs(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack) voidsetPaddleMovings(boolean leftMoving, boolean rightMoving) voidsetVariant(BoatEntity.Type type) voidtick()Ticks this entity.private voidupdatePassengerForDismount(LivingEntity passenger) Returns the position of the dismountedpassenger.protected voidupdatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater) private voidvoidupdateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) private voidprotected voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.vehicle.VehicleEntity
damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, killAndDropItem, killAndDropSelf, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKillMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, 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, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getProjectileDeflector, 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, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, 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, limitFallDistance, lookAt, move, moveToWorld, 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, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, 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, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
BOAT_TYPE
- Mappings:
Namespace Name Mixin selector named BOAT_TYPELnet/minecraft/entity/vehicle/BoatEntity;BOAT_TYPE:Lnet/minecraft/entity/data/TrackedData;intermediary field_7698Lnet/minecraft/class_1690;field_7698:Lnet/minecraft/class_2940;official iLcnv;i:Lajs;
-
LEFT_PADDLE_MOVING
- Mappings:
Namespace Name Mixin selector named LEFT_PADDLE_MOVINGLnet/minecraft/entity/vehicle/BoatEntity;LEFT_PADDLE_MOVING:Lnet/minecraft/entity/data/TrackedData;intermediary field_7687Lnet/minecraft/class_1690;field_7687:Lnet/minecraft/class_2940;official jLcnv;j:Lajs;
-
RIGHT_PADDLE_MOVING
- Mappings:
Namespace Name Mixin selector named RIGHT_PADDLE_MOVINGLnet/minecraft/entity/vehicle/BoatEntity;RIGHT_PADDLE_MOVING:Lnet/minecraft/entity/data/TrackedData;intermediary field_7713Lnet/minecraft/class_1690;field_7713:Lnet/minecraft/class_2940;official kLcnv;k:Lajs;
-
BUBBLE_WOBBLE_TICKS
- Mappings:
Namespace Name Mixin selector named BUBBLE_WOBBLE_TICKSLnet/minecraft/entity/vehicle/BoatEntity;BUBBLE_WOBBLE_TICKS:Lnet/minecraft/entity/data/TrackedData;intermediary field_7691Lnet/minecraft/class_1690;field_7691:Lnet/minecraft/class_2940;official lLcnv;l:Lajs;
-
field_30697
public static final int field_30697- See Also:
- Mappings:
Namespace Name Mixin selector named field_30697Lnet/minecraft/entity/vehicle/BoatEntity;field_30697:Iintermediary field_30697Lnet/minecraft/class_1690;field_30697:Iofficial bLcnv;b:I
-
field_30698
public static final int field_30698- See Also:
- Mappings:
Namespace Name Mixin selector named field_30698Lnet/minecraft/entity/vehicle/BoatEntity;field_30698:Iintermediary field_30698Lnet/minecraft/class_1690;field_30698:Iofficial cLcnv;c:I
-
field_30695
private static final int field_30695- See Also:
- Mappings:
Namespace Name Mixin selector named field_30695Lnet/minecraft/entity/vehicle/BoatEntity;field_30695:Iintermediary field_30695Lnet/minecraft/class_1690;field_30695:Iofficial mLcnv;m:I
-
NEXT_PADDLE_PHASE
private static final float NEXT_PADDLE_PHASE- See Also:
- Mappings:
Namespace Name Mixin selector named NEXT_PADDLE_PHASELnet/minecraft/entity/vehicle/BoatEntity;NEXT_PADDLE_PHASE:Fintermediary field_30696Lnet/minecraft/class_1690;field_30696:Fofficial nLcnv;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_ROTATIONLnet/minecraft/entity/vehicle/BoatEntity;EMIT_SOUND_EVENT_PADDLE_ROTATION:Dintermediary field_30699Lnet/minecraft/class_1690;field_30699:Dofficial dLcnv;d:D
-
field_30700
public static final int field_30700- See Also:
- Mappings:
Namespace Name Mixin selector named field_30700Lnet/minecraft/entity/vehicle/BoatEntity;field_30700:Iintermediary field_30700Lnet/minecraft/class_1690;field_30700:Iofficial eLcnv;e:I
-
paddlePhases
private final float[] paddlePhases- Mappings:
Namespace Name Mixin selector named paddlePhasesLnet/minecraft/entity/vehicle/BoatEntity;paddlePhases:[Fintermediary field_7704Lnet/minecraft/class_1690;field_7704:[Fofficial oLcnv;o:[F
-
velocityDecay
private float velocityDecay- Mappings:
Namespace Name Mixin selector named velocityDecayLnet/minecraft/entity/vehicle/BoatEntity;velocityDecay:Fintermediary field_7692Lnet/minecraft/class_1690;field_7692:Fofficial pLcnv;p:F
-
ticksUnderwater
private float ticksUnderwater- Mappings:
Namespace Name Mixin selector named ticksUnderwaterLnet/minecraft/entity/vehicle/BoatEntity;ticksUnderwater:Fintermediary field_7706Lnet/minecraft/class_1690;field_7706:Fofficial qLcnv;q:F
-
yawVelocity
private float yawVelocity- Mappings:
Namespace Name Mixin selector named yawVelocityLnet/minecraft/entity/vehicle/BoatEntity;yawVelocity:Fintermediary field_7690Lnet/minecraft/class_1690;field_7690:Fofficial rLcnv;r:F
-
lerpTicks
private int lerpTicks- Mappings:
Namespace Name Mixin selector named lerpTicksLnet/minecraft/entity/vehicle/BoatEntity;lerpTicks:Iintermediary field_7708Lnet/minecraft/class_1690;field_7708:Iofficial sLcnv;s:I
-
x
private double x- Mappings:
Namespace Name Mixin selector named xLnet/minecraft/entity/vehicle/BoatEntity;x:Dintermediary field_7686Lnet/minecraft/class_1690;field_7686:Dofficial tLcnv;t:D
-
y
private double y- Mappings:
Namespace Name Mixin selector named yLnet/minecraft/entity/vehicle/BoatEntity;y:Dintermediary field_7700Lnet/minecraft/class_1690;field_7700:Dofficial uLcnv;u:D
-
z
private double z- Mappings:
Namespace Name Mixin selector named zLnet/minecraft/entity/vehicle/BoatEntity;z:Dintermediary field_7685Lnet/minecraft/class_1690;field_7685:Dofficial vLcnv;v:D
-
boatYaw
private double boatYaw- Mappings:
Namespace Name Mixin selector named boatYawLnet/minecraft/entity/vehicle/BoatEntity;boatYaw:Dintermediary field_7699Lnet/minecraft/class_1690;field_7699:Dofficial aFLcnv;aF:D
-
boatPitch
private double boatPitch- Mappings:
Namespace Name Mixin selector named boatPitchLnet/minecraft/entity/vehicle/BoatEntity;boatPitch:Dintermediary field_7684Lnet/minecraft/class_1690;field_7684:Dofficial aGLcnv;aG:D
-
pressingLeft
private boolean pressingLeft- Mappings:
Namespace Name Mixin selector named pressingLeftLnet/minecraft/entity/vehicle/BoatEntity;pressingLeft:Zintermediary field_7710Lnet/minecraft/class_1690;field_7710:Zofficial aHLcnv;aH:Z
-
pressingRight
private boolean pressingRight- Mappings:
Namespace Name Mixin selector named pressingRightLnet/minecraft/entity/vehicle/BoatEntity;pressingRight:Zintermediary field_7695Lnet/minecraft/class_1690;field_7695:Zofficial aILcnv;aI:Z
-
pressingForward
private boolean pressingForward- Mappings:
Namespace Name Mixin selector named pressingForwardLnet/minecraft/entity/vehicle/BoatEntity;pressingForward:Zintermediary field_7709Lnet/minecraft/class_1690;field_7709:Zofficial aJLcnv;aJ:Z
-
pressingBack
private boolean pressingBack- Mappings:
Namespace Name Mixin selector named pressingBackLnet/minecraft/entity/vehicle/BoatEntity;pressingBack:Zintermediary field_7693Lnet/minecraft/class_1690;field_7693:Zofficial aKLcnv;aK:Z
-
waterLevel
private double waterLevel- Mappings:
Namespace Name Mixin selector named waterLevelLnet/minecraft/entity/vehicle/BoatEntity;waterLevel:Dintermediary field_7697Lnet/minecraft/class_1690;field_7697:Dofficial aLLcnv;aL:D
-
nearbySlipperiness
private float nearbySlipperiness- Mappings:
Namespace Name Mixin selector named nearbySlipperinessLnet/minecraft/entity/vehicle/BoatEntity;nearbySlipperiness:Fintermediary field_7714Lnet/minecraft/class_1690;field_7714:Fofficial aMLcnv;aM:F
-
location
- Mappings:
Namespace Name Mixin selector named locationLnet/minecraft/entity/vehicle/BoatEntity;location:Lnet/minecraft/entity/vehicle/BoatEntity$Location;intermediary field_7702Lnet/minecraft/class_1690;field_7702:Lnet/minecraft/class_1690$class_1691;official aNLcnv;aN:Lcnv$a;
-
lastLocation
- Mappings:
Namespace Name Mixin selector named lastLocationLnet/minecraft/entity/vehicle/BoatEntity;lastLocation:Lnet/minecraft/entity/vehicle/BoatEntity$Location;intermediary field_7701Lnet/minecraft/class_1690;field_7701:Lnet/minecraft/class_1690$class_1691;official aOLcnv;aO:Lcnv$a;
-
fallVelocity
private double fallVelocity- Mappings:
Namespace Name Mixin selector named fallVelocityLnet/minecraft/entity/vehicle/BoatEntity;fallVelocity:Dintermediary field_7696Lnet/minecraft/class_1690;field_7696:Dofficial aPLcnv;aP:D
-
onBubbleColumnSurface
private boolean onBubbleColumnSurface- Mappings:
Namespace Name Mixin selector named onBubbleColumnSurfaceLnet/minecraft/entity/vehicle/BoatEntity;onBubbleColumnSurface:Zintermediary field_7689Lnet/minecraft/class_1690;field_7689:Zofficial aQLcnv;aQ:Z
-
bubbleColumnIsDrag
private boolean bubbleColumnIsDrag- Mappings:
Namespace Name Mixin selector named bubbleColumnIsDragLnet/minecraft/entity/vehicle/BoatEntity;bubbleColumnIsDrag:Zintermediary field_7703Lnet/minecraft/class_1690;field_7703:Zofficial aRLcnv;aR:Z
-
bubbleWobbleStrength
private float bubbleWobbleStrength- Mappings:
Namespace Name Mixin selector named bubbleWobbleStrengthLnet/minecraft/entity/vehicle/BoatEntity;bubbleWobbleStrength:Fintermediary field_7712Lnet/minecraft/class_1690;field_7712:Fofficial aSLcnv;aS:F
-
bubbleWobble
private float bubbleWobble- Mappings:
Namespace Name Mixin selector named bubbleWobbleLnet/minecraft/entity/vehicle/BoatEntity;bubbleWobble:Fintermediary field_7694Lnet/minecraft/class_1690;field_7694:Fofficial aTLcnv;aT:F
-
lastBubbleWobble
private float lastBubbleWobble- Mappings:
Namespace Name Mixin selector named lastBubbleWobbleLnet/minecraft/entity/vehicle/BoatEntity;lastBubbleWobble:Fintermediary field_7711Lnet/minecraft/class_1690;field_7711:Fofficial aULcnv;aU:F
-
-
Constructor Details
-
BoatEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbrw;<init>(Lbsc;Ldaz;)V
-
BoatEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/vehicle/BoatEntity;<init>(Lnet/minecraft/world/World;DDD)Vintermediary <init>Lnet/minecraft/class_1690;<init>(Lnet/minecraft/class_1937;DDD)Vofficial <init>Lcnv;<init>(Ldaz;DDD)V
-
-
Method Details
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin 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 getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official bbLbrw;bb()Lbrw$b;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTrackerin 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 initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLbrw;a(Lajw$a;)V
-
collidesWith
Returns whether this entity cannot occupy the same space withother.This returns
falseifotheris connected through vehicles.- Overrides:
collidesWithin classEntity- Returns:
- whether this entity cannot occupy the same space with
other - See Also:
- Mappings:
Namespace Name Mixin selector named collidesWithLnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Zintermediary method_30949Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Zofficial iLbrw;i(Lbrw;)Z
-
canCollide
- Mappings:
Namespace Name Mixin selector named canCollideLnet/minecraft/entity/vehicle/BoatEntity;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Zintermediary method_30959Lnet/minecraft/class_1690;method_30959(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Zofficial aLcnv;a(Lbrw;Lbrw;)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.BoatEntityandShulkerEntityhas this behavior.- Overrides:
isCollidablein classEntity- Returns:
- whether other entities cannot occupy the same space with this entity
- See Also:
- Mappings:
Namespace Name Mixin selector named isCollidableLnet/minecraft/entity/Entity;isCollidable()Zintermediary method_30948Lnet/minecraft/class_1297;method_30948()Zofficial bFLbrw;bF()Z
-
isPushable
public boolean isPushable()Returns whether the entity can be pushed by other entities.- Overrides:
isPushablein classEntity- Returns:
- whether the entity can be pushed by other entities
- Mappings:
Namespace Name Mixin selector named isPushableLnet/minecraft/entity/Entity;isPushable()Zintermediary method_5810Lnet/minecraft/class_1297;method_5810()Zofficial bALbrw;bA()Z
-
positionInPortal
Returns the entity's position in the portal after teleportation.- Overrides:
positionInPortalin classEntity- Returns:
- the entity's position in the portal after teleportation
- See Also:
- Mappings:
Namespace Name Mixin selector named positionInPortalLnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;intermediary method_30633Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;official aLbrw;a(Lit$a;Ll$a;)Leum;
-
getPassengerAttachmentPos
protected Vec3d getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor) - Overrides:
getPassengerAttachmentPosin classEntity- Mappings:
Namespace Name Mixin selector named getPassengerAttachmentPosLnet/minecraft/entity/Entity;getPassengerAttachmentPos(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;F)Lnet/minecraft/util/math/Vec3d;intermediary method_52533Lnet/minecraft/class_1297;method_52533(Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;F)Lnet/minecraft/class_243;official aLbrw;a(Lbrw;Lbrz;F)Leum;
-
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.
BoatEntityuses this to spawn splash particles.- Overrides:
onBubbleColumnSurfaceCollisionin classEntity- Parameters:
drag- whether the entity should be dragged downwards- Mappings:
Namespace Name Mixin selector named onBubbleColumnSurfaceCollisionLnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(Z)Vintermediary method_5700Lnet/minecraft/class_1297;method_5700(Z)Vofficial lLbrw;l(Z)V
-
pushAwayFrom
- Overrides:
pushAwayFromin classEntity- Mappings:
Namespace Name Mixin selector named pushAwayFromLnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)Vintermediary method_5697Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)Vofficial hLbrw;h(Lbrw;)V
-
asItem
- Specified by:
asItemin classVehicleEntity- Mappings:
Namespace Name Mixin selector named asItemLnet/minecraft/entity/vehicle/VehicleEntity;asItem()Lnet/minecraft/item/Item;intermediary method_7557Lnet/minecraft/class_8836;method_7557()Lnet/minecraft/class_1792;official ah_Lcog;ah_()Lctl;
-
animateDamage
public void animateDamage(float yaw) Called on the client to animate the entity's damage (the wobble).- Overrides:
animateDamagein classEntity- Mappings:
Namespace Name Mixin selector named animateDamageLnet/minecraft/entity/Entity;animateDamage(F)Vintermediary method_5879Lnet/minecraft/class_1297;method_5879(F)Vofficial mLbrw;m(F)V
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHitin classEntity- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector named canHitLnet/minecraft/entity/Entity;canHit()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Zofficial bzLbrw;bz()Z
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps) - Overrides:
updateTrackedPositionAndAnglesin classEntity- Mappings:
Namespace Name Mixin selector named updateTrackedPositionAndAnglesLnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)Vintermediary method_5759Lnet/minecraft/class_1297;method_5759(DDDFFI)Vofficial aLbrw;a(DDDFFI)V
-
getLerpTargetX
public double getLerpTargetX()- Overrides:
getLerpTargetXin classEntity- Mappings:
Namespace Name Mixin selector named getLerpTargetXLnet/minecraft/entity/Entity;getLerpTargetX()Dintermediary method_53830Lnet/minecraft/class_1297;method_53830()Dofficial c_Lbrw;c_()D
-
getLerpTargetY
public double getLerpTargetY()- Overrides:
getLerpTargetYin classEntity- Mappings:
Namespace Name Mixin selector named getLerpTargetYLnet/minecraft/entity/Entity;getLerpTargetY()Dintermediary method_53827Lnet/minecraft/class_1297;method_53827()Dofficial d_Lbrw;d_()D
-
getLerpTargetZ
public double getLerpTargetZ()- Overrides:
getLerpTargetZin classEntity- Mappings:
Namespace Name Mixin selector named getLerpTargetZLnet/minecraft/entity/Entity;getLerpTargetZ()Dintermediary method_53828Lnet/minecraft/class_1297;method_53828()Dofficial L_Lbrw;L_()D
-
getLerpTargetPitch
public float getLerpTargetPitch()- Overrides:
getLerpTargetPitchin classEntity- Mappings:
Namespace Name Mixin selector named getLerpTargetPitchLnet/minecraft/entity/Entity;getLerpTargetPitch()Fintermediary method_53829Lnet/minecraft/class_1297;method_53829()Fofficial M_Lbrw;M_()F
-
getLerpTargetYaw
public float getLerpTargetYaw()- Overrides:
getLerpTargetYawin classEntity- Mappings:
Namespace Name Mixin selector named getLerpTargetYawLnet/minecraft/entity/Entity;getLerpTargetYaw()Fintermediary method_53831Lnet/minecraft/class_1297;method_53831()Fofficial e_Lbrw;e_()F
-
getMovementDirection
- Overrides:
getMovementDirectionin classEntity- Mappings:
Namespace Name Mixin selector named getMovementDirectionLnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;intermediary method_5755Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;official cILbrw;cI()Lit;
-
tick
public void tick()Ticks this entity.- Overrides:
tickin 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 tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial lLbrw;l()V
-
handleBubbleColumn
private void handleBubbleColumn()- Mappings:
Namespace Name Mixin selector named handleBubbleColumnLnet/minecraft/entity/vehicle/BoatEntity;handleBubbleColumn()Vintermediary method_7550Lnet/minecraft/class_1690;method_7550()Vofficial zLcnv;z()V
-
getPaddleSoundEvent
- Mappings:
Namespace Name Mixin selector named getPaddleSoundEventLnet/minecraft/entity/vehicle/BoatEntity;getPaddleSoundEvent()Lnet/minecraft/sound/SoundEvent;intermediary method_7537Lnet/minecraft/class_1690;method_7537()Lnet/minecraft/class_3414;official sLcnv;s()Lavh;
-
updatePositionAndRotation
private void updatePositionAndRotation()- Mappings:
Namespace Name Mixin selector named updatePositionAndRotationLnet/minecraft/entity/vehicle/BoatEntity;updatePositionAndRotation()Vintermediary method_7555Lnet/minecraft/class_1690;method_7555()Vofficial ALcnv;A()V
-
setPaddleMovings
public void setPaddleMovings(boolean leftMoving, boolean rightMoving) - Mappings:
Namespace Name Mixin selector named setPaddleMovingsLnet/minecraft/entity/vehicle/BoatEntity;setPaddleMovings(ZZ)Vintermediary method_7538Lnet/minecraft/class_1690;method_7538(ZZ)Vofficial aLcnv;a(ZZ)V
-
interpolatePaddlePhase
public float interpolatePaddlePhase(int paddle, float tickDelta) - Mappings:
Namespace Name Mixin selector named interpolatePaddlePhaseLnet/minecraft/entity/vehicle/BoatEntity;interpolatePaddlePhase(IF)Fintermediary method_7551Lnet/minecraft/class_1690;method_7551(IF)Fofficial aLcnv;a(IF)F
-
checkLocation
- Mappings:
Namespace Name Mixin selector named checkLocationLnet/minecraft/entity/vehicle/BoatEntity;checkLocation()Lnet/minecraft/entity/vehicle/BoatEntity$Location;intermediary method_7552Lnet/minecraft/class_1690;method_7552()Lnet/minecraft/class_1690$class_1691;official BLcnv;B()Lcnv$a;
-
getWaterHeightBelow
public float getWaterHeightBelow()- Mappings:
Namespace Name Mixin selector named getWaterHeightBelowLnet/minecraft/entity/vehicle/BoatEntity;getWaterHeightBelow()Fintermediary method_7544Lnet/minecraft/class_1690;method_7544()Fofficial uLcnv;u()F
-
getNearbySlipperiness
public float getNearbySlipperiness()- Mappings:
Namespace Name Mixin selector named getNearbySlipperinessLnet/minecraft/entity/vehicle/BoatEntity;getNearbySlipperiness()Fintermediary method_7548Lnet/minecraft/class_1690;method_7548()Fofficial vLcnv;v()F
-
checkBoatInWater
private boolean checkBoatInWater()- Mappings:
Namespace Name Mixin selector named checkBoatInWaterLnet/minecraft/entity/vehicle/BoatEntity;checkBoatInWater()Zintermediary method_7545Lnet/minecraft/class_1690;method_7545()Zofficial CLcnv;C()Z
-
getUnderWaterLocation
- Mappings:
Namespace Name Mixin selector named getUnderWaterLocationLnet/minecraft/entity/vehicle/BoatEntity;getUnderWaterLocation()Lnet/minecraft/entity/vehicle/BoatEntity$Location;intermediary method_7532Lnet/minecraft/class_1690;method_7532()Lnet/minecraft/class_1690$class_1691;official DLcnv;D()Lcnv$a;
-
getGravity
protected double getGravity()- Overrides:
getGravityin classEntity- Mappings:
Namespace Name Mixin selector named getGravityLnet/minecraft/entity/Entity;getGravity()Dintermediary method_7490Lnet/minecraft/class_1297;method_7490()Dofficial aYLbrw;aY()D
-
updateVelocity
private void updateVelocity()- Mappings:
Namespace Name Mixin selector named updateVelocityLnet/minecraft/entity/vehicle/BoatEntity;updateVelocity()Vintermediary method_7534Lnet/minecraft/class_1690;method_7534()Vofficial ELcnv;E()V
-
updatePaddles
private void updatePaddles()- Mappings:
Namespace Name Mixin selector named updatePaddlesLnet/minecraft/entity/vehicle/BoatEntity;updatePaddles()Vintermediary method_7549Lnet/minecraft/class_1690;method_7549()Vofficial GLcnv;G()V
-
getPassengerHorizontalOffset
protected float getPassengerHorizontalOffset()- Mappings:
Namespace Name Mixin selector named getPassengerHorizontalOffsetLnet/minecraft/entity/vehicle/BoatEntity;getPassengerHorizontalOffset()Fintermediary method_42280Lnet/minecraft/class_1690;method_42280()Fofficial wLcnv;w()F
-
isSmallerThanBoat
- Mappings:
Namespace Name Mixin selector named isSmallerThanBoatLnet/minecraft/entity/vehicle/BoatEntity;isSmallerThanBoat(Lnet/minecraft/entity/Entity;)Zintermediary method_49182Lnet/minecraft/class_1690;method_49182(Lnet/minecraft/class_1297;)Zofficial bLcnv;b(Lbrw;)Z
-
updatePassengerPosition
- Overrides:
updatePassengerPositionin classEntity- Mappings:
Namespace Name Mixin selector named updatePassengerPositionLnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)Vintermediary method_5865Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)Vofficial aLbrw;a(Lbrw;Lbrw$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:
updatePassengerForDismountin classEntity- Returns:
- the position of the dismounted
passenger - See Also:
- Mappings:
Namespace Name Mixin selector named updatePassengerForDismountLnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;intermediary method_24829Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;official bLbrw;b(Lbsq;)Leum;
-
clampPassengerYaw
- Mappings:
Namespace Name Mixin selector named clampPassengerYawLnet/minecraft/entity/vehicle/BoatEntity;clampPassengerYaw(Lnet/minecraft/entity/Entity;)Vintermediary method_7546Lnet/minecraft/class_1690;method_7546(Lnet/minecraft/class_1297;)Vofficial cLcnv;c(Lbrw;)V
-
onPassengerLookAround
- Overrides:
onPassengerLookAroundin classEntity- Mappings:
Namespace Name Mixin selector named onPassengerLookAroundLnet/minecraft/entity/Entity;onPassengerLookAround(Lnet/minecraft/entity/Entity;)Vintermediary method_5644Lnet/minecraft/class_1297;method_5644(Lnet/minecraft/class_1297;)Vofficial kLbrw;k(Lbrw;)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:
writeCustomDataToNbtin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbrw;b(Lud;)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.
nbtmight 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:
readCustomDataFromNbtin classEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbrw;a(Lud;)V
-
interact
Called when a player interacts with this entity.- Overrides:
interactin classEntity- Parameters:
player- the playerhand- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector named interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5688Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLbrw;a(Lcly;Lbpv;)Lbpw;
-
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:
fallin 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, emits, then callsinvalid reference
GameEvent#HIT_GROUNDEntity.onLanding(). Otherwise, ifheightDifferenceis negative, it subtracts that value fromEntity.fallDistance. - Mappings:
Namespace Name Mixin selector named fallLnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_5623Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Vofficial aLbrw;a(DZLdrd;Lio;)V
-
isPaddleMoving
public boolean isPaddleMoving(int paddle) - Mappings:
Namespace Name Mixin selector named isPaddleMovingLnet/minecraft/entity/vehicle/BoatEntity;isPaddleMoving(I)Zintermediary method_7556Lnet/minecraft/class_1690;method_7556(I)Zofficial cLcnv;c(I)Z
-
setBubbleWobbleTicks
private void setBubbleWobbleTicks(int wobbleTicks) - Mappings:
Namespace Name Mixin selector named setBubbleWobbleTicksLnet/minecraft/entity/vehicle/BoatEntity;setBubbleWobbleTicks(I)Vintermediary method_7531Lnet/minecraft/class_1690;method_7531(I)Vofficial bLcnv;b(I)V
-
getBubbleWobbleTicks
private int getBubbleWobbleTicks()- Mappings:
Namespace Name Mixin selector named getBubbleWobbleTicksLnet/minecraft/entity/vehicle/BoatEntity;getBubbleWobbleTicks()Iintermediary method_7539Lnet/minecraft/class_1690;method_7539()Iofficial HLcnv;H()I
-
interpolateBubbleWobble
public float interpolateBubbleWobble(float tickDelta) - Mappings:
Namespace Name Mixin selector named interpolateBubbleWobbleLnet/minecraft/entity/vehicle/BoatEntity;interpolateBubbleWobble(F)Fintermediary method_7547Lnet/minecraft/class_1690;method_7547(F)Fofficial aLcnv;a(F)F
-
setVariant
- Specified by:
setVariantin interfaceVariantHolder<BoatEntity.Type>- Mappings:
Namespace Name Mixin selector named setVariantLnet/minecraft/entity/vehicle/BoatEntity;setVariant(Lnet/minecraft/entity/vehicle/BoatEntity$Type;)Vintermediary method_47884Lnet/minecraft/class_1690;method_47884(Lnet/minecraft/class_1690$class_1692;)Vofficial aLcnv;a(Lcnv$b;)V
-
getVariant
- Specified by:
getVariantin interfaceVariantHolder<BoatEntity.Type>- Mappings:
Namespace Name Mixin selector named getVariantLnet/minecraft/entity/vehicle/BoatEntity;getVariant()Lnet/minecraft/entity/vehicle/BoatEntity$Type;intermediary method_47885Lnet/minecraft/class_1690;method_47885()Lnet/minecraft/class_1690$class_1692;official xLcnv;x()Lcnv$b;
-
canAddPassenger
Returns whetherentitycan ride this entity.Returning
falsecauses other entities to be unable to ride this entity. For example,BoatEntityuses 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:
canAddPassengerin classEntity- Returns:
- whether
entitycan ride this entity - See Also:
- Mappings:
Namespace Name Mixin selector named canAddPassengerLnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Zintermediary method_5818Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Zofficial rLbrw;r(Lbrw;)Z
-
getMaxPassengers
protected int getMaxPassengers()- Mappings:
Namespace Name Mixin selector named getMaxPassengersLnet/minecraft/entity/vehicle/BoatEntity;getMaxPassengers()Iintermediary method_42281Lnet/minecraft/class_1690;method_42281()Iofficial yLcnv;y()I
-
getControllingPassenger
Returns the passenger in control of this entity, ornullif there is none.Rideable entities should override this to return the entity. This is usually
#getFirstPassenger.- Overrides:
getControllingPassengerin classEntity- Returns:
- the passenger in control of this entity, or
nullif there is none - See Also:
- Mappings:
Namespace Name Mixin selector named getControllingPassengerLnet/minecraft/entity/Entity;getControllingPassenger()Lnet/minecraft/entity/LivingEntity;intermediary method_5642Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1309;official cQLbrw;cQ()Lbsq;
-
setInputs
public void setInputs(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack) - Mappings:
Namespace Name Mixin selector named setInputsLnet/minecraft/entity/vehicle/BoatEntity;setInputs(ZZZZ)Vintermediary method_7535Lnet/minecraft/class_1690;method_7535(ZZZZ)Vofficial aLcnv;a(ZZZZ)V
-
getDefaultName
Returns the default name of the entity.- Overrides:
getDefaultNamein classEntity- Returns:
- the default name of the entity
- See Also:
- Mappings:
Namespace Name Mixin selector named getDefaultNameLnet/minecraft/entity/Entity;getDefaultName()Lnet/minecraft/text/Text;intermediary method_23315Lnet/minecraft/class_1297;method_23315()Lnet/minecraft/class_2561;official crLbrw;cr()Lwx;
-
isSubmergedInWater
public boolean isSubmergedInWater()Returns whether this entity's hitbox is fully submerged in water.- Overrides:
isSubmergedInWaterin classEntity- Returns:
- whether this entity's hitbox is fully submerged in water
- Mappings:
Namespace Name Mixin selector named isSubmergedInWaterLnet/minecraft/entity/Entity;isSubmergedInWater()Zintermediary method_5869Lnet/minecraft/class_1297;method_5869()Zofficial bjLbrw;bj()Z
-
getPickBlockStack
Returns the stack for creative "pick block" functionality, ornullif 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
MobEntityhandles the spawn eggs.ItemFrameEntityinstead returns the copy of the stack held in the frame.- Overrides:
getPickBlockStackin classEntity- Returns:
- the stack for creative "pick block" functionality, or
nullif there is none - Mappings:
Namespace Name Mixin selector named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;official dCLbrw;dC()Lctq;
-