Class BoatEntity
- All Implemented Interfaces:
VariantHolder<BoatEntity.Type>,CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
ChestBoatEntity
- Mappings:
Namespace Name official byiintermediary net/minecraft/class_1690named net/minecraft/entity/vehicle/BoatEntity
-
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 floatprivate static final TrackedData<Integer>private static final TrackedData<Float>private static final TrackedData<Integer>static 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 intprivate floatprivate BoatEntity.Locationprivate static final TrackedData<Boolean>private 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.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_36331, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_RIDING_COOLDOWN, MAX_SCOREBOARD_TAGS, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, VELOCITY_AFFECTING_POS_Y_OFFSET, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, worldFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
ConstructorsConstructorDescriptionBoatEntity(EntityType<? extends BoatEntity> type, World world) BoatEntity(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled 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.LocationbooleancollidesWith(Entity other) Returns whether this entity cannot occupy the same space withother.protected voidcopyEntityData(Entity entity) booleandamage(DamageSource source, float amount) Applies a damage to this entity.protected voiddropItems(DamageSource source) protected voidfall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition) Called when the entity falls.private intintfloatintprotected floatgetEyeHeight(EntityPose pose, EntityDimensions dimensions) protected intdoubleprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.floatprotected @Nullable SoundEventprotected floatReturns the stack for creative "pick block" functionality, ornullif there is none.Returns the passenger in control of this entity, ornullif there is none.private @Nullable BoatEntity.Locationfloatprivate voidprotected voidInitializes 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.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) voidsetDamageWobbleSide(int side) voidsetDamageWobbleStrength(float wobbleStrength) voidsetDamageWobbleTicks(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.voidupdatePassengerPosition(Entity passenger) private voidvoidupdateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate) private voidprotected voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, extinguishWithSound, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasPrimaryPassenger, hasVehicle, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, limitFallDistance, lookAt, method_45320, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onKilledOther, onLanding, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playExtinguishSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, 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, setOnFireFromLava, setOnGround, setPitch, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
DAMAGE_WOBBLE_TICKS
- Mappings:
Namespace Name Mixin selector official fLbyi;f:Labn;intermediary field_7688Lnet/minecraft/class_1690;field_7688:Lnet/minecraft/class_2940;named DAMAGE_WOBBLE_TICKSLnet/minecraft/entity/vehicle/BoatEntity;DAMAGE_WOBBLE_TICKS:Lnet/minecraft/entity/data/TrackedData;
-
DAMAGE_WOBBLE_SIDE
- Mappings:
Namespace Name Mixin selector official aoLbyi;ao:Labn;intermediary field_7707Lnet/minecraft/class_1690;field_7707:Lnet/minecraft/class_2940;named DAMAGE_WOBBLE_SIDELnet/minecraft/entity/vehicle/BoatEntity;DAMAGE_WOBBLE_SIDE:Lnet/minecraft/entity/data/TrackedData;
-
DAMAGE_WOBBLE_STRENGTH
- Mappings:
Namespace Name Mixin selector official apLbyi;ap:Labn;intermediary field_7705Lnet/minecraft/class_1690;field_7705:Lnet/minecraft/class_2940;named DAMAGE_WOBBLE_STRENGTHLnet/minecraft/entity/vehicle/BoatEntity;DAMAGE_WOBBLE_STRENGTH:Lnet/minecraft/entity/data/TrackedData;
-
BOAT_TYPE
- Mappings:
Namespace Name Mixin selector official aqLbyi;aq:Labn;intermediary field_7698Lnet/minecraft/class_1690;field_7698:Lnet/minecraft/class_2940;named BOAT_TYPELnet/minecraft/entity/vehicle/BoatEntity;BOAT_TYPE:Lnet/minecraft/entity/data/TrackedData;
-
LEFT_PADDLE_MOVING
- Mappings:
Namespace Name Mixin selector official arLbyi;ar:Labn;intermediary field_7687Lnet/minecraft/class_1690;field_7687:Lnet/minecraft/class_2940;named LEFT_PADDLE_MOVINGLnet/minecraft/entity/vehicle/BoatEntity;LEFT_PADDLE_MOVING:Lnet/minecraft/entity/data/TrackedData;
-
RIGHT_PADDLE_MOVING
- Mappings:
Namespace Name Mixin selector official asLbyi;as:Labn;intermediary field_7713Lnet/minecraft/class_1690;field_7713:Lnet/minecraft/class_2940;named RIGHT_PADDLE_MOVINGLnet/minecraft/entity/vehicle/BoatEntity;RIGHT_PADDLE_MOVING:Lnet/minecraft/entity/data/TrackedData;
-
BUBBLE_WOBBLE_TICKS
- Mappings:
Namespace Name Mixin selector official atLbyi;at:Labn;intermediary field_7691Lnet/minecraft/class_1690;field_7691:Lnet/minecraft/class_2940;named BUBBLE_WOBBLE_TICKSLnet/minecraft/entity/vehicle/BoatEntity;BUBBLE_WOBBLE_TICKS:Lnet/minecraft/entity/data/TrackedData;
-
field_30697
public static final int field_30697- See Also:
- Mappings:
Namespace Name Mixin selector official bLbyi;b:Iintermediary field_30697Lnet/minecraft/class_1690;field_30697:Inamed field_30697Lnet/minecraft/entity/vehicle/BoatEntity;field_30697:I
-
field_30698
public static final int field_30698- See Also:
- Mappings:
Namespace Name Mixin selector official cLbyi;c:Iintermediary field_30698Lnet/minecraft/class_1690;field_30698:Inamed field_30698Lnet/minecraft/entity/vehicle/BoatEntity;field_30698:I
-
field_30695
private static final int field_30695- See Also:
- Mappings:
Namespace Name Mixin selector official auLbyi;au:Iintermediary field_30695Lnet/minecraft/class_1690;field_30695:Inamed field_30695Lnet/minecraft/entity/vehicle/BoatEntity;field_30695:I
-
NEXT_PADDLE_PHASE
private static final float NEXT_PADDLE_PHASE- See Also:
- Mappings:
Namespace Name Mixin selector official avLbyi;av:Fintermediary field_30696Lnet/minecraft/class_1690;field_30696:Fnamed NEXT_PADDLE_PHASELnet/minecraft/entity/vehicle/BoatEntity;NEXT_PADDLE_PHASE: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 official dLbyi;d:Dintermediary field_30699Lnet/minecraft/class_1690;field_30699:Dnamed EMIT_SOUND_EVENT_PADDLE_ROTATIONLnet/minecraft/entity/vehicle/BoatEntity;EMIT_SOUND_EVENT_PADDLE_ROTATION:D
-
field_30700
public static final int field_30700- See Also:
- Mappings:
Namespace Name Mixin selector official eLbyi;e:Iintermediary field_30700Lnet/minecraft/class_1690;field_30700:Inamed field_30700Lnet/minecraft/entity/vehicle/BoatEntity;field_30700:I
-
paddlePhases
private final float[] paddlePhases- Mappings:
Namespace Name Mixin selector official awLbyi;aw:[Fintermediary field_7704Lnet/minecraft/class_1690;field_7704:[Fnamed paddlePhasesLnet/minecraft/entity/vehicle/BoatEntity;paddlePhases:[F
-
velocityDecay
private float velocityDecay- Mappings:
Namespace Name Mixin selector official axLbyi;ax:Fintermediary field_7692Lnet/minecraft/class_1690;field_7692:Fnamed velocityDecayLnet/minecraft/entity/vehicle/BoatEntity;velocityDecay:F
-
ticksUnderwater
private float ticksUnderwater- Mappings:
Namespace Name Mixin selector official ayLbyi;ay:Fintermediary field_7706Lnet/minecraft/class_1690;field_7706:Fnamed ticksUnderwaterLnet/minecraft/entity/vehicle/BoatEntity;ticksUnderwater:F
-
yawVelocity
private float yawVelocity- Mappings:
Namespace Name Mixin selector official azLbyi;az:Fintermediary field_7690Lnet/minecraft/class_1690;field_7690:Fnamed yawVelocityLnet/minecraft/entity/vehicle/BoatEntity;yawVelocity:F
-
field_7708
private int field_7708- Mappings:
Namespace Name Mixin selector official aALbyi;aA:Iintermediary field_7708Lnet/minecraft/class_1690;field_7708:Inamed field_7708Lnet/minecraft/entity/vehicle/BoatEntity;field_7708:I
-
x
private double x- Mappings:
Namespace Name Mixin selector official aBLbyi;aB:Dintermediary field_7686Lnet/minecraft/class_1690;field_7686:Dnamed xLnet/minecraft/entity/vehicle/BoatEntity;x:D
-
y
private double y- Mappings:
Namespace Name Mixin selector official aCLbyi;aC:Dintermediary field_7700Lnet/minecraft/class_1690;field_7700:Dnamed yLnet/minecraft/entity/vehicle/BoatEntity;y:D
-
z
private double z- Mappings:
Namespace Name Mixin selector official aDLbyi;aD:Dintermediary field_7685Lnet/minecraft/class_1690;field_7685:Dnamed zLnet/minecraft/entity/vehicle/BoatEntity;z:D
-
boatYaw
private double boatYaw- Mappings:
Namespace Name Mixin selector official aELbyi;aE:Dintermediary field_7699Lnet/minecraft/class_1690;field_7699:Dnamed boatYawLnet/minecraft/entity/vehicle/BoatEntity;boatYaw:D
-
boatPitch
private double boatPitch- Mappings:
Namespace Name Mixin selector official aFLbyi;aF:Dintermediary field_7684Lnet/minecraft/class_1690;field_7684:Dnamed boatPitchLnet/minecraft/entity/vehicle/BoatEntity;boatPitch:D
-
pressingLeft
private boolean pressingLeft- Mappings:
Namespace Name Mixin selector official aGLbyi;aG:Zintermediary field_7710Lnet/minecraft/class_1690;field_7710:Znamed pressingLeftLnet/minecraft/entity/vehicle/BoatEntity;pressingLeft:Z
-
pressingRight
private boolean pressingRight- Mappings:
Namespace Name Mixin selector official aHLbyi;aH:Zintermediary field_7695Lnet/minecraft/class_1690;field_7695:Znamed pressingRightLnet/minecraft/entity/vehicle/BoatEntity;pressingRight:Z
-
pressingForward
private boolean pressingForward- Mappings:
Namespace Name Mixin selector official aILbyi;aI:Zintermediary field_7709Lnet/minecraft/class_1690;field_7709:Znamed pressingForwardLnet/minecraft/entity/vehicle/BoatEntity;pressingForward:Z
-
pressingBack
private boolean pressingBack- Mappings:
Namespace Name Mixin selector official aJLbyi;aJ:Zintermediary field_7693Lnet/minecraft/class_1690;field_7693:Znamed pressingBackLnet/minecraft/entity/vehicle/BoatEntity;pressingBack:Z
-
waterLevel
private double waterLevel- Mappings:
Namespace Name Mixin selector official aKLbyi;aK:Dintermediary field_7697Lnet/minecraft/class_1690;field_7697:Dnamed waterLevelLnet/minecraft/entity/vehicle/BoatEntity;waterLevel:D
-
nearbySlipperiness
private float nearbySlipperiness- Mappings:
Namespace Name Mixin selector official aLLbyi;aL:Fintermediary field_7714Lnet/minecraft/class_1690;field_7714:Fnamed nearbySlipperinessLnet/minecraft/entity/vehicle/BoatEntity;nearbySlipperiness:F
-
location
- Mappings:
Namespace Name Mixin selector official aMLbyi;aM:Lbyi$a;intermediary field_7702Lnet/minecraft/class_1690;field_7702:Lnet/minecraft/class_1690$class_1691;named locationLnet/minecraft/entity/vehicle/BoatEntity;location:Lnet/minecraft/entity/vehicle/BoatEntity$Location;
-
lastLocation
- Mappings:
Namespace Name Mixin selector official aNLbyi;aN:Lbyi$a;intermediary field_7701Lnet/minecraft/class_1690;field_7701:Lnet/minecraft/class_1690$class_1691;named lastLocationLnet/minecraft/entity/vehicle/BoatEntity;lastLocation:Lnet/minecraft/entity/vehicle/BoatEntity$Location;
-
fallVelocity
private double fallVelocity- Mappings:
Namespace Name Mixin selector official aOLbyi;aO:Dintermediary field_7696Lnet/minecraft/class_1690;field_7696:Dnamed fallVelocityLnet/minecraft/entity/vehicle/BoatEntity;fallVelocity:D
-
onBubbleColumnSurface
private boolean onBubbleColumnSurface- Mappings:
Namespace Name Mixin selector official aPLbyi;aP:Zintermediary field_7689Lnet/minecraft/class_1690;field_7689:Znamed onBubbleColumnSurfaceLnet/minecraft/entity/vehicle/BoatEntity;onBubbleColumnSurface:Z
-
bubbleColumnIsDrag
private boolean bubbleColumnIsDrag- Mappings:
Namespace Name Mixin selector official aQLbyi;aQ:Zintermediary field_7703Lnet/minecraft/class_1690;field_7703:Znamed bubbleColumnIsDragLnet/minecraft/entity/vehicle/BoatEntity;bubbleColumnIsDrag:Z
-
bubbleWobbleStrength
private float bubbleWobbleStrength- Mappings:
Namespace Name Mixin selector official aRLbyi;aR:Fintermediary field_7712Lnet/minecraft/class_1690;field_7712:Fnamed bubbleWobbleStrengthLnet/minecraft/entity/vehicle/BoatEntity;bubbleWobbleStrength:F
-
bubbleWobble
private float bubbleWobble- Mappings:
Namespace Name Mixin selector official aSLbyi;aS:Fintermediary field_7694Lnet/minecraft/class_1690;field_7694:Fnamed bubbleWobbleLnet/minecraft/entity/vehicle/BoatEntity;bubbleWobble:F
-
lastBubbleWobble
private float lastBubbleWobble- Mappings:
Namespace Name Mixin selector official aTLbyi;aT:Fintermediary field_7711Lnet/minecraft/class_1690;field_7711:Fnamed lastBubbleWobbleLnet/minecraft/entity/vehicle/BoatEntity;lastBubbleWobble:F
-
-
Constructor Details
-
BoatEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbdr;<init>(Lbdv;Lcjw;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
BoatEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbyi;<init>(Lcjw;DDD)Vintermediary <init>Lnet/minecraft/class_1690;<init>(Lnet/minecraft/class_1937;DDD)Vnamed <init>Lnet/minecraft/entity/vehicle/BoatEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
-
Method Details
-
getEyeHeight
- Overrides:
getEyeHeightin classEntity- Mappings:
Namespace Name Mixin selector official aLbdr;a(Lbes;Lbds;)Fintermediary method_18378Lnet/minecraft/class_1297;method_18378(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)Fnamed getEyeHeightLnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin classEntity- Mappings:
Namespace Name Mixin selector official aSLbdr;aS()Lbdr$b;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
-
initDataTracker
protected void initDataTracker()Initializes data tracker.- Specified by:
initDataTrackerin classEntity- Mappings:
Namespace Name Mixin selector official a_Lbdr;a_()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()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 official hLbdr;h(Lbdr;)Zintermediary method_30949Lnet/minecraft/class_1297;method_30949(Lnet/minecraft/class_1297;)Znamed collidesWithLnet/minecraft/entity/Entity;collidesWith(Lnet/minecraft/entity/Entity;)Z
-
canCollide
- Mappings:
Namespace Name Mixin selector official aLbyi;a(Lbdr;Lbdr;)Zintermediary method_30959Lnet/minecraft/class_1690;method_30959(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Znamed canCollideLnet/minecraft/entity/vehicle/BoatEntity;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)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 official btLbdr;bt()Zintermediary method_30948Lnet/minecraft/class_1297;method_30948()Znamed isCollidableLnet/minecraft/entity/Entity;isCollidable()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 official boLbdr;bo()Zintermediary method_5810Lnet/minecraft/class_1297;method_5810()Znamed isPushableLnet/minecraft/entity/Entity;isPushable()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 official aLbdr;a(Lgv$a;Lk$a;)Leae;intermediary method_30633Lnet/minecraft/class_1297;method_30633(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_5459$class_5460;)Lnet/minecraft/class_243;named positionInPortalLnet/minecraft/entity/Entity;positionInPortal(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/world/BlockLocating$Rectangle;)Lnet/minecraft/util/math/Vec3d;
-
getMountedHeightOffset
public double getMountedHeightOffset()- Overrides:
getMountedHeightOffsetin classEntity- Mappings:
Namespace Name Mixin selector official bwLbdr;bw()Dintermediary method_5621Lnet/minecraft/class_1297;method_5621()Dnamed getMountedHeightOffsetLnet/minecraft/entity/Entity;getMountedHeightOffset()D
-
damage
Applies a damage to this entity. The exact implementation differs between subclasses.LivingEntityhas health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.Some entities like
ItemEntityalso have health value, which the overridden method decrements. There also exist several entities, likeEndCrystalEntity, where any damage discards the entity (perhaps with an explosion).If this is overridden, it must check the result of
Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource)and return early.- Overrides:
damagein classEntity- Returns:
- whether the entity was actually damaged
- See Also:
- Mappings:
Namespace Name Mixin selector official aLbdr;a(Lbcz;F)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Znamed damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
dropItems
- Mappings:
Namespace Name Mixin selector official aLbyi;a(Lbcz;)Vintermediary method_42279Lnet/minecraft/class_1690;method_42279(Lnet/minecraft/class_1282;)Vnamed dropItemsLnet/minecraft/entity/vehicle/BoatEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
-
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 official kLbdr;k(Z)Vintermediary method_5700Lnet/minecraft/class_1297;method_5700(Z)Vnamed onBubbleColumnSurfaceCollisionLnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(Z)V
-
pushAwayFrom
- Overrides:
pushAwayFromin classEntity- Mappings:
Namespace Name Mixin selector official gLbdr;g(Lbdr;)Vintermediary method_5697Lnet/minecraft/class_1297;method_5697(Lnet/minecraft/class_1297;)Vnamed pushAwayFromLnet/minecraft/entity/Entity;pushAwayFrom(Lnet/minecraft/entity/Entity;)V
-
asItem
- Mappings:
Namespace Name Mixin selector official hLbyi;h()Lcdp;intermediary method_7557Lnet/minecraft/class_1690;method_7557()Lnet/minecraft/class_1792;named asItemLnet/minecraft/entity/vehicle/BoatEntity;asItem()Lnet/minecraft/item/Item;
-
animateDamage
public void animateDamage()Called on the client to animate the entity's damage (the wobble).- Overrides:
animateDamagein classEntity- Mappings:
Namespace Name Mixin selector official bGLbdr;bG()Vintermediary method_5879Lnet/minecraft/class_1297;method_5879()Vnamed animateDamageLnet/minecraft/entity/Entity;animateDamage()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 official bnLbdr;bn()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Znamed canHitLnet/minecraft/entity/Entity;canHit()Z
-
updateTrackedPositionAndAngles
public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate) - Overrides:
updateTrackedPositionAndAnglesin classEntity- Mappings:
Namespace Name Mixin selector official aLbdr;a(DDDFFIZ)Vintermediary method_5759Lnet/minecraft/class_1297;method_5759(DDDFFIZ)Vnamed updateTrackedPositionAndAnglesLnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
-
getMovementDirection
- Overrides:
getMovementDirectionin classEntity- Mappings:
Namespace Name Mixin selector official cBLbdr;cB()Lgv;intermediary method_5755Lnet/minecraft/class_1297;method_5755()Lnet/minecraft/class_2350;named getMovementDirectionLnet/minecraft/entity/Entity;getMovementDirection()Lnet/minecraft/util/math/Direction;
-
tick
public void tick()Ticks this entity. -
handleBubbleColumn
private void handleBubbleColumn()- Mappings:
Namespace Name Mixin selector official uLbyi;u()Vintermediary method_7550Lnet/minecraft/class_1690;method_7550()Vnamed handleBubbleColumnLnet/minecraft/entity/vehicle/BoatEntity;handleBubbleColumn()V
-
getPaddleSoundEvent
- Mappings:
Namespace Name Mixin selector official iLbyi;i()Laln;intermediary method_7537Lnet/minecraft/class_1690;method_7537()Lnet/minecraft/class_3414;named getPaddleSoundEventLnet/minecraft/entity/vehicle/BoatEntity;getPaddleSoundEvent()Lnet/minecraft/sound/SoundEvent;
-
updatePositionAndRotation
private void updatePositionAndRotation()- Mappings:
Namespace Name Mixin selector official wLbyi;w()Vintermediary method_7555Lnet/minecraft/class_1690;method_7555()Vnamed updatePositionAndRotationLnet/minecraft/entity/vehicle/BoatEntity;updatePositionAndRotation()V
-
setPaddleMovings
public void setPaddleMovings(boolean leftMoving, boolean rightMoving) - Mappings:
Namespace Name Mixin selector official aLbyi;a(ZZ)Vintermediary method_7538Lnet/minecraft/class_1690;method_7538(ZZ)Vnamed setPaddleMovingsLnet/minecraft/entity/vehicle/BoatEntity;setPaddleMovings(ZZ)V
-
interpolatePaddlePhase
public float interpolatePaddlePhase(int paddle, float tickDelta) - Mappings:
Namespace Name Mixin selector official aLbyi;a(IF)Fintermediary method_7551Lnet/minecraft/class_1690;method_7551(IF)Fnamed interpolatePaddlePhaseLnet/minecraft/entity/vehicle/BoatEntity;interpolatePaddlePhase(IF)F
-
checkLocation
- Mappings:
Namespace Name Mixin selector official xLbyi;x()Lbyi$a;intermediary method_7552Lnet/minecraft/class_1690;method_7552()Lnet/minecraft/class_1690$class_1691;named checkLocationLnet/minecraft/entity/vehicle/BoatEntity;checkLocation()Lnet/minecraft/entity/vehicle/BoatEntity$Location;
-
getWaterHeightBelow
public float getWaterHeightBelow()- Mappings:
Namespace Name Mixin selector official jLbyi;j()Fintermediary method_7544Lnet/minecraft/class_1690;method_7544()Fnamed getWaterHeightBelowLnet/minecraft/entity/vehicle/BoatEntity;getWaterHeightBelow()F
-
getNearbySlipperiness
public float getNearbySlipperiness()- Mappings:
Namespace Name Mixin selector official kLbyi;k()Fintermediary method_7548Lnet/minecraft/class_1690;method_7548()Fnamed getNearbySlipperinessLnet/minecraft/entity/vehicle/BoatEntity;getNearbySlipperiness()F
-
checkBoatInWater
private boolean checkBoatInWater()- Mappings:
Namespace Name Mixin selector official yLbyi;y()Zintermediary method_7545Lnet/minecraft/class_1690;method_7545()Znamed checkBoatInWaterLnet/minecraft/entity/vehicle/BoatEntity;checkBoatInWater()Z
-
getUnderWaterLocation
- Mappings:
Namespace Name Mixin selector official zLbyi;z()Lbyi$a;intermediary method_7532Lnet/minecraft/class_1690;method_7532()Lnet/minecraft/class_1690$class_1691;named getUnderWaterLocationLnet/minecraft/entity/vehicle/BoatEntity;getUnderWaterLocation()Lnet/minecraft/entity/vehicle/BoatEntity$Location;
-
updateVelocity
private void updateVelocity()- Mappings:
Namespace Name Mixin selector official ALbyi;A()Vintermediary method_7534Lnet/minecraft/class_1690;method_7534()Vnamed updateVelocityLnet/minecraft/entity/vehicle/BoatEntity;updateVelocity()V
-
updatePaddles
private void updatePaddles()- Mappings:
Namespace Name Mixin selector official BLbyi;B()Vintermediary method_7549Lnet/minecraft/class_1690;method_7549()Vnamed updatePaddlesLnet/minecraft/entity/vehicle/BoatEntity;updatePaddles()V
-
getPassengerHorizontalOffset
protected float getPassengerHorizontalOffset()- Mappings:
Namespace Name Mixin selector official mLbyi;m()Fintermediary method_42280Lnet/minecraft/class_1690;method_42280()Fnamed getPassengerHorizontalOffsetLnet/minecraft/entity/vehicle/BoatEntity;getPassengerHorizontalOffset()F
-
updatePassengerPosition
- Overrides:
updatePassengerPositionin classEntity- Mappings:
Namespace Name Mixin selector official iLbdr;i(Lbdr;)Vintermediary method_5865Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;)Vnamed updatePassengerPositionLnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;)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 official bLbdr;b(Lbeg;)Leae;intermediary method_24829Lnet/minecraft/class_1297;method_24829(Lnet/minecraft/class_1309;)Lnet/minecraft/class_243;named updatePassengerForDismountLnet/minecraft/entity/Entity;updatePassengerForDismount(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Vec3d;
-
copyEntityData
- Mappings:
Namespace Name Mixin selector official aLbyi;a(Lbdr;)Vintermediary method_7546Lnet/minecraft/class_1690;method_7546(Lnet/minecraft/class_1297;)Vnamed copyEntityDataLnet/minecraft/entity/vehicle/BoatEntity;copyEntityData(Lnet/minecraft/entity/Entity;)V
-
onPassengerLookAround
- Overrides:
onPassengerLookAroundin classEntity- Mappings:
Namespace Name Mixin selector official jLbdr;j(Lbdr;)Vintermediary method_5644Lnet/minecraft/class_1297;method_5644(Lnet/minecraft/class_1297;)Vnamed onPassengerLookAroundLnet/minecraft/entity/Entity;onPassengerLookAround(Lnet/minecraft/entity/Entity;)V
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses has 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 official bLbdr;b(Lqp;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses has 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 official aLbdr;a(Lqp;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)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 official aLbdr;a(Lbwp;Lbcl;)Lbcm;intermediary method_5688Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
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- Mappings:
Namespace Name Mixin selector official aLbdr;a(DZLcyt;Lgp;)Vintermediary method_5623Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Vnamed fallLnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
-
isPaddleMoving
public boolean isPaddleMoving(int paddle) - Mappings:
Namespace Name Mixin selector official cLbyi;c(I)Zintermediary method_7556Lnet/minecraft/class_1690;method_7556(I)Znamed isPaddleMovingLnet/minecraft/entity/vehicle/BoatEntity;isPaddleMoving(I)Z
-
setDamageWobbleStrength
public void setDamageWobbleStrength(float wobbleStrength) - Mappings:
Namespace Name Mixin selector official aLbyi;a(F)Vintermediary method_7542Lnet/minecraft/class_1690;method_7542(F)Vnamed setDamageWobbleStrengthLnet/minecraft/entity/vehicle/BoatEntity;setDamageWobbleStrength(F)V
-
getDamageWobbleStrength
public float getDamageWobbleStrength()- Mappings:
Namespace Name Mixin selector official oLbyi;o()Fintermediary method_7554Lnet/minecraft/class_1690;method_7554()Fnamed getDamageWobbleStrengthLnet/minecraft/entity/vehicle/BoatEntity;getDamageWobbleStrength()F
-
setDamageWobbleTicks
public void setDamageWobbleTicks(int wobbleTicks) - Mappings:
Namespace Name Mixin selector official dLbyi;d(I)Vintermediary method_7553Lnet/minecraft/class_1690;method_7553(I)Vnamed setDamageWobbleTicksLnet/minecraft/entity/vehicle/BoatEntity;setDamageWobbleTicks(I)V
-
getDamageWobbleTicks
public int getDamageWobbleTicks()- Mappings:
Namespace Name Mixin selector official pLbyi;p()Iintermediary method_7533Lnet/minecraft/class_1690;method_7533()Inamed getDamageWobbleTicksLnet/minecraft/entity/vehicle/BoatEntity;getDamageWobbleTicks()I
-
setBubbleWobbleTicks
private void setBubbleWobbleTicks(int wobbleTicks) - Mappings:
Namespace Name Mixin selector official aLbyi;a(I)Vintermediary method_7531Lnet/minecraft/class_1690;method_7531(I)Vnamed setBubbleWobbleTicksLnet/minecraft/entity/vehicle/BoatEntity;setBubbleWobbleTicks(I)V
-
getBubbleWobbleTicks
private int getBubbleWobbleTicks()- Mappings:
Namespace Name Mixin selector official DLbyi;D()Iintermediary method_7539Lnet/minecraft/class_1690;method_7539()Inamed getBubbleWobbleTicksLnet/minecraft/entity/vehicle/BoatEntity;getBubbleWobbleTicks()I
-
interpolateBubbleWobble
public float interpolateBubbleWobble(float tickDelta) - Mappings:
Namespace Name Mixin selector official bLbyi;b(F)Fintermediary method_7547Lnet/minecraft/class_1690;method_7547(F)Fnamed interpolateBubbleWobbleLnet/minecraft/entity/vehicle/BoatEntity;interpolateBubbleWobble(F)F
-
setDamageWobbleSide
public void setDamageWobbleSide(int side) - Mappings:
Namespace Name Mixin selector official mLbyi;m(I)Vintermediary method_7540Lnet/minecraft/class_1690;method_7540(I)Vnamed setDamageWobbleSideLnet/minecraft/entity/vehicle/BoatEntity;setDamageWobbleSide(I)V
-
getDamageWobbleSide
public int getDamageWobbleSide()- Mappings:
Namespace Name Mixin selector official rLbyi;r()Iintermediary method_7543Lnet/minecraft/class_1690;method_7543()Inamed getDamageWobbleSideLnet/minecraft/entity/vehicle/BoatEntity;getDamageWobbleSide()I
-
setVariant
- Specified by:
setVariantin interfaceVariantHolder<BoatEntity.Type>- Mappings:
Namespace Name Mixin selector official aLbyi;a(Lbyi$b;)Vintermediary method_47884Lnet/minecraft/class_1690;method_47884(Lnet/minecraft/class_1690$class_1692;)Vnamed setVariantLnet/minecraft/entity/vehicle/BoatEntity;setVariant(Lnet/minecraft/entity/vehicle/BoatEntity$Type;)V
-
getVariant
- Specified by:
getVariantin interfaceVariantHolder<BoatEntity.Type>- Mappings:
Namespace Name Mixin selector official sLbyi;s()Lbyi$b;intermediary method_47885Lnet/minecraft/class_1690;method_47885()Lnet/minecraft/class_1690$class_1692;named getVariantLnet/minecraft/entity/vehicle/BoatEntity;getVariant()Lnet/minecraft/entity/vehicle/BoatEntity$Type;
-
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 official pLbdr;p(Lbdr;)Zintermediary method_5818Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Znamed canAddPassengerLnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
-
getMaxPassengers
protected int getMaxPassengers()- Mappings:
Namespace Name Mixin selector official tLbyi;t()Iintermediary method_42281Lnet/minecraft/class_1690;method_42281()Inamed getMaxPassengersLnet/minecraft/entity/vehicle/BoatEntity;getMaxPassengers()I
-
getPrimaryPassenger
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:
getPrimaryPassengerin classEntity- Returns:
- the passenger in control of this entity, or
nullif there is none - See Also:
- Mappings:
Namespace Name Mixin selector official cLLbdr;cL()Lbdr;intermediary method_5642Lnet/minecraft/class_1297;method_5642()Lnet/minecraft/class_1297;named getPrimaryPassengerLnet/minecraft/entity/Entity;getPrimaryPassenger()Lnet/minecraft/entity/Entity;
-
setInputs
public void setInputs(boolean pressingLeft, boolean pressingRight, boolean pressingForward, boolean pressingBack) - Mappings:
Namespace Name Mixin selector official aLbyi;a(ZZZZ)Vintermediary method_7535Lnet/minecraft/class_1690;method_7535(ZZZZ)Vnamed setInputsLnet/minecraft/entity/vehicle/BoatEntity;setInputs(ZZZZ)V
-
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 official aZLbdr;aZ()Zintermediary method_5869Lnet/minecraft/class_1297;method_5869()Znamed isSubmergedInWaterLnet/minecraft/entity/Entity;isSubmergedInWater()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 official dsLbdr;ds()Lcdt;intermediary method_31480Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;named getPickBlockStackLnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
-