Package net.minecraft.client.network
Class ClientPlayerEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.player.PlayerEntity
net.minecraft.client.network.AbstractClientPlayerEntity
net.minecraft.client.network.ClientPlayerEntity
- All Implemented Interfaces:
class_5568,CommandOutput,Nameable
@Environment(CLIENT) public class ClientPlayerEntity extends AbstractClientPlayerEntity
Represents the client's own player entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.player.PlayerEntity
PlayerEntity.SleepFailureReasonNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields inherited from class net.minecraft.client.network.AbstractClientPlayerEntity
clientWorld, elytraPitch, elytraRoll, elytraYawFields inherited from class net.minecraft.entity.player.PlayerEntity
abilityResyncCountdown, capeX, capeY, capeZ, currentScreenHandler, enchantmentTableSeed, enderChestInventory, experienceLevel, experiencePickUpDelay, experienceProgress, field_7509, fishHook, hungerManager, isSubmergedInWater, LEFT_SHOULDER_ENTITY, MAIN_ARM, PLAYER_MODEL_PARTS, playerScreenHandler, prevCapeX, prevCapeY, prevCapeZ, prevStrideDistance, RIGHT_SHOULDER_ENTITY, STANDING_DIMENSIONS, strideDistance, totalExperienceFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeedFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description ClientPlayerEntity(MinecraftClient client, ClientWorld world, ClientPlayNetworkHandler networkHandler, StatHandler stats, ClientRecipeBook recipeBook, boolean lastSneaking, boolean lastSprinting) -
Method Summary
Modifier and Type Method Description voidaddCritParticles(Entity target)voidaddEnchantedHitParticles(Entity target)protected voidapplyDamage(DamageSource source, float amount)protected voidautoJump(float dx, float dz)booleancanMoveVoluntarily()voidclearActiveItem()voidcloseHandledScreen()voidcloseScreen()booleandamage(DamageSource source, float amount)voiddismountVehicle()Dismounts the vehicle if present.booleandropSelectedItem(boolean dropEntireStack)HandgetActiveHand()floatgetMoodPercentage()Returns the percentage for the biome mood sound for the debug HUD to display.protected intgetPermissionLevel()floatgetPitch(float tickDelta)ClientRecipeBookgetRecipeBook()StringgetServerBrand()StatHandlergetStatHandler()floatgetUnderwaterVisibility()Returns the color multiplier of vision in water, so that visibility in water is reduced when the player just entered water.floatgetYaw(float tickDelta)voidhandleStatus(byte status)booleanhasJumpingMount()private booleanhasMovementInput()Returns whether the player has movement input.voidheal(float amount)booleanisAutoJumpEnabled()protected booleanisCamera()booleanisHoldingOntoLadder()booleanisInSneakingPose()Returns whether the entity is in a crouching pose.booleanisMainPlayer()booleanisRiding()booleanisSneaking()booleanisSubmergedInWater()Returns whether this entity's hitbox is fully submerged in water.booleanisUsingItem()private booleanisWalking()Vec3dmethod_30951(float float2)floatmethod_3151()voidmove(MovementType type, Vec3d movement)voidonRecipeDisplayed(Recipe<?> recipe)voidonTrackedDataSet(TrackedData<?> data)voidopenCommandBlockMinecartScreen(CommandBlockExecutor commandBlockExecutor)voidopenCommandBlockScreen(CommandBlockBlockEntity commandBlock)voidopenEditBookScreen(ItemStack book, Hand hand)voidopenEditSignScreen(SignBlockEntity sign)voidopenJigsawScreen(JigsawBlockEntity jigsaw)voidopenRidingInventory()voidopenStructureBlockScreen(StructureBlockBlockEntity structureBlock)voidplaySound(SoundEvent sound, float volume, float pitch)voidplaySound(SoundEvent event, SoundCategory category, float volume, float pitch)private voidpushOutOfBlocks(double x, double double2)StatusEffectInstanceremoveStatusEffectInternal(StatusEffect type)Removes a status effect from this entity without calling any listener.voidrequestRespawn()voidsendAbilitiesUpdate()voidsendChatMessage(String message)voidsendMessage(Text message, boolean actionBar)private voidsendMovementPackets()voidsendSystemMessage(Text message, UUID senderUuid)voidsetClientPermissionLevel(int clientPermissionLevel)voidsetCurrentHand(Hand hand)voidsetExperience(float progress, int total, int level)voidsetServerBrand(String serverBrand)voidsetShowsDeathScreen(boolean shouldShow)voidsetSprinting(boolean sprinting)private booleanshouldAutoJump()booleanshouldDisplaySoulSpeedEffects()booleanshouldSlowDown()booleanshouldSpawnSprintingParticles()booleanshowsDeathScreen()booleanstartRiding(Entity entity, boolean force)protected voidstartRidingJump()voidswingHand(Hand hand)voidtick()voidtickMovement()voidtickNewAi()voidtickRiding()voidupdateHealth(float health)private voidupdateNausea()protected booleanupdateWaterSubmersionState()private booleanwouldCollideAt(BlockPos pos)Methods inherited from class net.minecraft.client.network.AbstractClientPlayerEntity
canRenderCapeTexture, canRenderElytraTexture, getCapeTexture, getElytraTexture, getModel, getPlayerListEntry, getSkinId, getSkinTexture, getSpeed, hasSkinTexture, isCreative, isSpectator, loadSkinMethods inherited from class net.minecraft.entity.player.PlayerEntity
addExhaustion, addExperience, addExperienceLevels, addScore, addShoulderEntity, adjustMovementForSneaking, afterSpawn, applyEnchantmentCosts, attack, attackLivingEntity, canClimb, canConsume, canEquip, canFly, canFoodHeal, canHarvest, canModifyBlocks, canPlaceOn, checkFallFlying, clipAtLedge, createCooldownManager, createPlayerAttributes, damageArmor, damageShield, disableShield, doesNotSuffocate, dropInventory, dropItem, dropItem, dropShoulderEntities, eatFood, equipStack, findRespawnPosition, getAbilities, getAbsorptionAmount, getActiveEyeHeight, getArmorItems, getArrowType, getAttackCooldownProgress, getAttackCooldownProgressPerTick, getBlockBreakingSpeed, getBurningDuration, getCurrentExperience, getDeathSound, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEnchantmentTableSeed, getEnderChestInventory, getEntityName, getEquippedStack, getFallSound, getGameProfile, getHeightOffset, getHighSpeedSplashSound, getHungerManager, getHurtSound, getInventory, getItemCooldownManager, getItemsHand, getLuck, getMainArm, getMaxNetherPortalTime, getMovementSpeed, getName, getNextLevelExperience, getOfflinePlayerUuid, getPoses, getScore, getScoreboard, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSoundCategory, getSplashSound, getSwimSound, getUuidFromProfile, getVelocityMultiplier, giveItemStack, handleFallDamage, hasReducedDebugInfo, increaseStat, increaseStat, increaseTravelMotionStats, incrementStat, incrementStat, initDataTracker, interact, isBlockBreakingRestricted, isCreativeLevelTwoOp, isImmobile, isInvulnerableTo, isOnSoulSpeedBlock, isPartVisible, isPlayer, isSleepingLongEnough, isSwimming, isUsingSpyglass, jump, lockRecipes, method_29500, method_32318, method_33190, onDeath, onKilledOther, onSwimmingStart, openHandledScreen, openHorseInventory, readCustomDataFromTag, remove, resetLastAttackedTicks, resetStat, sendTradeOffers, setAbsorptionAmount, setFireTicks, setMainArm, setReducedDebugInfo, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldAlwaysDropXp, shouldCancelInteraction, shouldDamagePlayer, shouldDismount, shouldRenderName, shouldSwimInFluids, slowMovement, spawnSweepAttackParticles, startFallFlying, stopFallFlying, takeShieldHit, travel, trySleep, unlockRecipes, unlockRecipes, updateSize, updateSwimming, vanishCursedItems, wakeUp, wakeUp, writeCustomDataToTagMethods inherited from class net.minecraft.entity.LivingEntity
addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, baseTick, canBeRiddenInWater, canBreatheInWater, canDropLootAndXp, canFreeze, canHaveStatusEffect, canSee, canTarget, canTarget, canWalkOnFluid, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, createSpawnPacket, deserializeBrain, destroy, displaySoulSpeedEffects, drop, dropEquipment, dropLoot, dropXp, endCombat, enterCombat, fall, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockState, getBoundingBox, getBrain, getClimbingPos, getDamageTracker, getDespawnCounter, getDrinkSound, getEatSound, getEyeHeight, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getLootContextBuilder, getLootTable, getMainHandStack, getMaxHealth, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVisibilityBoundingBox, hasStackEquipped, hasStatusEffect, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isFallFlying, isHolding, isHolding, isInsideWall, isInSwimmingPose, isMobOrPlayer, isPushable, isSleeping, isTarget, isUndead, isUsingRiptide, kill, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_29242, method_30633, method_31079, method_32324, method_32325, method_32326, onAttacking, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, playHurtSound, pushAway, pushAwayFrom, removeSoulSpeedBoost, removeStatusEffect, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAttacker, setAttacking, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setStackInHand, setStingerCount, setStuckArrowCount, setYaw, shouldDropLoot, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swimUpward, swingHand, takeKnockback, teleport, tickCramming, tickHandSwing, tickRiptide, tickStatusEffects, triggerItemPickedUpByEntityCriteria, tryAttack, turnHead, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, entityDataRequiresOperator, equals, extinguish, fromTag, getAir, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getCameraPosVec, getChunkPos, getCommandSource, getCustomName, getDataTracker, getDefaultName, getEffectiveExplosionResistance, getEntityId, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeight, getHorizontalFacing, getHoverEvent, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getStandingEyeHeight, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getZ, handleAttack, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isRemoved, isSilent, isSneaky, isSprinting, isSubmergedIn, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29241, method_29919, method_30076, method_30330, method_30632, method_30634, method_30950, method_31166, method_31473, method_31744, method_31746, method_31748, method_32875, method_32877, method_33189, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, playFlySound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setFrozenTicks, setGlowing, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setPos, setPose, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldTrackOutput, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, streamPassengersRecursively, teleport, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
networkHandler
-
statHandler
-
recipeBook
-
tickables
-
clientPermissionLevel
private int clientPermissionLevel -
lastX
private double lastX -
lastBaseY
private double lastBaseY -
lastZ
private double lastZ -
lastYaw
private float lastYaw -
lastPitch
private float lastPitch -
lastOnGround
private boolean lastOnGround -
inSneakingPose
private boolean inSneakingPose -
lastSneaking
private boolean lastSneaking -
lastSprinting
private boolean lastSprinting -
ticksSinceLastPositionPacketSent
private int ticksSinceLastPositionPacketSent -
healthInitialized
private boolean healthInitialized -
serverBrand
-
input
-
client
-
ticksLeftToDoubleTapSprint
protected int ticksLeftToDoubleTapSprint -
ticksSinceSprintingChanged
public int ticksSinceSprintingChanged -
renderYaw
public float renderYaw -
renderPitch
public float renderPitch -
lastRenderYaw
public float lastRenderYaw -
lastRenderPitch
public float lastRenderPitch -
field_3938
private int field_3938 -
field_3922
private float field_3922 -
nextNauseaStrength
public float nextNauseaStrength -
lastNauseaStrength
public float lastNauseaStrength -
usingItem
private boolean usingItem -
activeHand
-
riding
private boolean riding -
autoJumpEnabled
private boolean autoJumpEnabled -
ticksToNextAutojump
private int ticksToNextAutojump -
falling
private boolean falling -
underwaterVisibilityTicks
private int underwaterVisibilityTicks -
showsDeathScreen
private boolean showsDeathScreen
-
-
Constructor Details
-
ClientPlayerEntity
public ClientPlayerEntity(MinecraftClient client, ClientWorld world, ClientPlayNetworkHandler networkHandler, StatHandler stats, ClientRecipeBook recipeBook, boolean lastSneaking, boolean lastSprinting)
-
-
Method Details
-
damage
- Overrides:
damagein classPlayerEntity
-
heal
public void heal(float amount)- Overrides:
healin classLivingEntity
-
startRiding
- Overrides:
startRidingin classEntity
-
dismountVehicle
public void dismountVehicle()Dismounts the vehicle if present.For players, will not trigger any networking changes. Use
LivingEntity.stopRiding()instead.- Overrides:
dismountVehiclein classPlayerEntity- See Also:
LivingEntity.stopRiding()
-
getPitch
public float getPitch(float tickDelta) -
getYaw
public float getYaw(float tickDelta)- Overrides:
getYawin classLivingEntity
-
tick
public void tick()- Overrides:
tickin classPlayerEntity
-
getMoodPercentage
public float getMoodPercentage()Returns the percentage for the biome mood sound for the debug HUD to display. -
sendMovementPackets
private void sendMovementPackets() -
dropSelectedItem
public boolean dropSelectedItem(boolean dropEntireStack)- Overrides:
dropSelectedItemin classPlayerEntity
-
sendChatMessage
-
swingHand
- Overrides:
swingHandin classLivingEntity
-
requestRespawn
public void requestRespawn()- Overrides:
requestRespawnin classPlayerEntity
-
applyDamage
- Overrides:
applyDamagein classPlayerEntity
-
closeHandledScreen
public void closeHandledScreen()- Overrides:
closeHandledScreenin classPlayerEntity
-
closeScreen
public void closeScreen() -
updateHealth
public void updateHealth(float health) -
sendAbilitiesUpdate
public void sendAbilitiesUpdate()- Overrides:
sendAbilitiesUpdatein classPlayerEntity
-
isMainPlayer
public boolean isMainPlayer()- Overrides:
isMainPlayerin classPlayerEntity
-
isHoldingOntoLadder
public boolean isHoldingOntoLadder()- Overrides:
isHoldingOntoLadderin classLivingEntity- Returns:
trueif this entity should not lose height while in a climbing state- See Also:
LivingEntity
-
shouldSpawnSprintingParticles
public boolean shouldSpawnSprintingParticles()- Overrides:
shouldSpawnSprintingParticlesin classEntity
-
shouldDisplaySoulSpeedEffects
public boolean shouldDisplaySoulSpeedEffects()- Overrides:
shouldDisplaySoulSpeedEffectsin classLivingEntity
-
startRidingJump
protected void startRidingJump() -
openRidingInventory
public void openRidingInventory() -
setServerBrand
-
getServerBrand
-
getStatHandler
-
getRecipeBook
-
onRecipeDisplayed
-
getPermissionLevel
protected int getPermissionLevel()- Overrides:
getPermissionLevelin classEntity
-
setClientPermissionLevel
public void setClientPermissionLevel(int clientPermissionLevel) -
sendMessage
- Overrides:
sendMessagein classPlayerEntity
-
pushOutOfBlocks
private void pushOutOfBlocks(double x, double double2) -
wouldCollideAt
-
setSprinting
public void setSprinting(boolean sprinting)- Overrides:
setSprintingin classLivingEntity
-
setExperience
public void setExperience(float progress, int total, int level) -
sendSystemMessage
- Specified by:
sendSystemMessagein interfaceCommandOutput- Overrides:
sendSystemMessagein classEntity
-
handleStatus
public void handleStatus(byte status)- Overrides:
handleStatusin classPlayerEntity
-
setShowsDeathScreen
public void setShowsDeathScreen(boolean shouldShow) -
showsDeathScreen
public boolean showsDeathScreen() -
playSound
- Overrides:
playSoundin classPlayerEntity
-
playSound
- Overrides:
playSoundin classPlayerEntity
-
canMoveVoluntarily
public boolean canMoveVoluntarily()- Overrides:
canMoveVoluntarilyin classLivingEntity
-
setCurrentHand
- Overrides:
setCurrentHandin classLivingEntity
-
isUsingItem
public boolean isUsingItem()- Overrides:
isUsingItemin classLivingEntity
-
clearActiveItem
public void clearActiveItem()- Overrides:
clearActiveItemin classLivingEntity
-
getActiveHand
- Overrides:
getActiveHandin classLivingEntity
-
onTrackedDataSet
- Overrides:
onTrackedDataSetin classLivingEntity
-
hasJumpingMount
public boolean hasJumpingMount() -
method_3151
public float method_3151() -
openEditSignScreen
- Overrides:
openEditSignScreenin classPlayerEntity
-
openCommandBlockMinecartScreen
- Overrides:
openCommandBlockMinecartScreenin classPlayerEntity
-
openCommandBlockScreen
- Overrides:
openCommandBlockScreenin classPlayerEntity
-
openStructureBlockScreen
- Overrides:
openStructureBlockScreenin classPlayerEntity
-
openJigsawScreen
- Overrides:
openJigsawScreenin classPlayerEntity
-
openEditBookScreen
- Overrides:
openEditBookScreenin classPlayerEntity
-
addCritParticles
- Overrides:
addCritParticlesin classPlayerEntity
-
addEnchantedHitParticles
- Overrides:
addEnchantedHitParticlesin classPlayerEntity
-
isSneaking
public boolean isSneaking()- Overrides:
isSneakingin classEntity
-
isInSneakingPose
public boolean isInSneakingPose()Returns whether the entity is in a crouching pose.Compared to
isSneaking(), it only makes the entity appear crouching and does not bring other effects of sneaking, such as no less obvious name label rendering, no dismounting while riding, etc.This is used by vanilla for non-player entities to crouch, such as for foxes and cats.
- Overrides:
isInSneakingPosein classEntity
-
shouldSlowDown
public boolean shouldSlowDown() -
tickNewAi
public void tickNewAi()- Overrides:
tickNewAiin classPlayerEntity
-
isCamera
protected boolean isCamera() -
tickMovement
public void tickMovement()- Overrides:
tickMovementin classPlayerEntity
-
updateNausea
private void updateNausea() -
tickRiding
public void tickRiding()- Overrides:
tickRidingin classPlayerEntity
-
isRiding
public boolean isRiding() -
removeStatusEffectInternal
Removes a status effect from this entity without calling any listener.This method does not perform any cleanup or synchronization operation. Under most circumstances, calling
LivingEntity.removeStatusEffect(net.minecraft.entity.effect.StatusEffect)is highly preferable.- Overrides:
removeStatusEffectInternalin classLivingEntity
-
move
-
isAutoJumpEnabled
public boolean isAutoJumpEnabled() -
autoJump
protected void autoJump(float dx, float dz) -
shouldAutoJump
private boolean shouldAutoJump() -
hasMovementInput
private boolean hasMovementInput()Returns whether the player has movement input.- Returns:
- True if the player has movement input, else false.
-
isWalking
private boolean isWalking() -
getUnderwaterVisibility
public float getUnderwaterVisibility()Returns the color multiplier of vision in water, so that visibility in water is reduced when the player just entered water. -
isSubmergedInWater
public boolean isSubmergedInWater()Returns whether this entity's hitbox is fully submerged in water.- Overrides:
isSubmergedInWaterin classEntity
-
updateWaterSubmersionState
protected boolean updateWaterSubmersionState()- Overrides:
updateWaterSubmersionStatein classPlayerEntity
-
method_30951
- Overrides:
method_30951in classPlayerEntity
-