Package net.minecraft.client.network
Class AbstractClientPlayerEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.player.PlayerEntity
net.minecraft.client.network.AbstractClientPlayerEntity
- All Implemented Interfaces:
CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
ClientPlayerEntity,OtherClientPlayerEntity
@Environment(CLIENT) public abstract class AbstractClientPlayerEntity extends PlayerEntity
- Mappings:
Namespace Name official ehbintermediary net/minecraft/class_742named net/minecraft/client/network/AbstractClientPlayerEntity
-
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.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description private PlayerListEntrycachedScoreboardEntryClientWorldclientWorldfloatelytraPitchfloatelytraRollfloatelytraYawFields 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_28627, field_28629, 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, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description AbstractClientPlayerEntity(ClientWorld world, com.mojang.authlib.GameProfile profile) -
Method Summary
Modifier and Type Method Description booleancanRenderCapeTexture()booleancanRenderElytraTexture()IdentifiergetCapeTexture()IdentifiergetElytraTexture()StringgetModel()protected PlayerListEntrygetPlayerListEntry()static IdentifiergetSkinId(String playerName)IdentifiergetSkinTexture()floatgetSpeed()booleanhasSkinTexture()booleanisCreative()Returns whether this player is in creative mode.booleanisSpectator()static PlayerSkinTextureloadSkin(Identifier id, String playerName)Methods inherited from class net.minecraft.entity.player.PlayerEntity
addCritParticles, addEnchantedHitParticles, addExhaustion, addExperience, addExperienceLevels, addScore, addShoulderEntity, adjustMovementForSneaking, applyDamage, applyEnchantmentCosts, attack, attackLivingEntity, canConsume, canEquip, canFly, canFoodHeal, canHarvest, canModifyBlocks, canPlaceOn, canTakeDamage, checkFallFlying, clipAtLedge, closeHandledScreen, createCooldownManager, createPlayerAttributes, damage, damageArmor, damageShield, disableShield, dismountVehicle, doesNotSuffocate, dropInventory, dropItem, dropItem, dropSelectedItem, dropShoulderEntities, eatFood, equipStack, findRespawnPosition, getAbilities, getAbsorptionAmount, getActiveEyeHeight, getArmorItems, getArrowType, getAttackCooldownProgress, getAttackCooldownProgressPerTick, getBlockBreakingSpeed, getBurningDuration, getCommandItemSlot, getCurrentExperience, getDeathSound, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEnchantmentTableSeed, getEnderChestInventory, getEntityName, getEquippedStack, getFallSound, getGameProfile, getHeightOffset, getHighSpeedSplashSound, getHungerManager, getHurtSound, getInventory, getItemCooldownManager, getItemsHand, getLuck, getMainArm, getMaxNetherPortalTime, getMoveEffect, getMovementSpeed, getName, getNextLevelExperience, getOfflinePlayerUuid, getPoses, getScore, getScoreboard, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSoundCategory, getSplashSound, getSwimSound, getUuidFromProfile, getVelocityMultiplier, giveItemStack, handleFallDamage, handleStatus, hasReducedDebugInfo, increaseStat, increaseStat, increaseTravelMotionStats, incrementStat, incrementStat, initDataTracker, interact, isBlockBreakingRestricted, isCreativeLevelTwoOp, isImmobile, isInvulnerableTo, isMainPlayer, isOnSoulSpeedBlock, isPartVisible, isPlayer, isSleepingLongEnough, isSwimming, isUsingSpyglass, jump, lockRecipes, method_29500, method_30951, onDeath, onKilledOther, onPickupSlotClick, onSwimmingStart, openCommandBlockMinecartScreen, openCommandBlockScreen, openEditBookScreen, openEditSignScreen, openHandledScreen, openHorseInventory, openJigsawScreen, openStructureBlockScreen, playSound, playSound, readCustomDataFromNbt, remove, requestRespawn, resetLastAttackedTicks, resetStat, sendAbilitiesUpdate, sendMessage, sendTradeOffers, setAbsorptionAmount, setFireTicks, setMainArm, setReducedDebugInfo, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldAlwaysDropXp, shouldCancelInteraction, shouldDamagePlayer, shouldDismount, shouldRenderName, shouldSave, shouldSwimInFluids, slowMovement, spawnSweepAttackParticles, startFallFlying, stopFallFlying, takeShieldHit, tick, tickMovement, tickNewAi, tickRiding, travel, trySleep, unlockRecipes, unlockRecipes, updateSize, updateSwimming, updateWaterSubmersionState, vanishCursedItems, wakeUp, wakeUp, writeCustomDataToNbtMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, baseTick, canBeRiddenInWater, canBreatheInWater, canDropLootAndXp, canFreeze, canHaveStatusEffect, canMoveVoluntarily, canSee, canTarget, canTarget, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, createSpawnPacket, deserializeBrain, displaySoulSpeedEffects, drop, dropEquipment, dropLoot, dropXp, endCombat, enterCombat, fall, getActiveHand, 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, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVisibilityBoundingBox, getYaw, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isFallFlying, isHolding, isHolding, isHoldingOntoLadder, isInsideWall, isInSwimmingPose, isMobOrPlayer, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, kill, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_31079, method_33579, onAttacking, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playHurtSound, positionInPortal, pushAway, pushAwayFrom, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAttacker, setAttacking, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setMovementSpeed, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, setYaw, shouldDisplaySoulSpeedEffects, shouldDropLoot, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swimUpward, swingHand, swingHand, takeKnockback, teleport, tickCramming, tickHandSwing, tickInVoid, tickRiptide, tickStatusEffects, triggerItemPickedUpByEntityCriteria, tryAttack, turnHead, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, getAir, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGameEventHandler, getHeight, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPortalRect, 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, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isRemoved, isSilent, isSneaking, isSneaky, isSprinting, isSubmergedIn, isSubmergedInWater, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29241, method_29919, method_33332, method_33574, method_33575, method_33724, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFlag, setFrozenTicks, setGlowing, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setListener, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbt
-
Field Details
-
cachedScoreboardEntry
- Mappings:
Namespace Name Mixin selector official eLehb;e:Leek;intermediary field_3901Lnet/minecraft/class_742;field_3901:Lnet/minecraft/class_640;named cachedScoreboardEntryLnet/minecraft/client/network/AbstractClientPlayerEntity;cachedScoreboardEntry:Lnet/minecraft/client/network/PlayerListEntry;
-
elytraPitch
public float elytraPitch- Mappings:
Namespace Name Mixin selector official aLehb;a:Fintermediary field_3900Lnet/minecraft/class_742;field_3900:Fnamed elytraPitchLnet/minecraft/client/network/AbstractClientPlayerEntity;elytraPitch:F
-
elytraYaw
public float elytraYaw- Mappings:
Namespace Name Mixin selector official bLehb;b:Fintermediary field_3899Lnet/minecraft/class_742;field_3899:Fnamed elytraYawLnet/minecraft/client/network/AbstractClientPlayerEntity;elytraYaw:F
-
elytraRoll
public float elytraRoll- Mappings:
Namespace Name Mixin selector official cLehb;c:Fintermediary field_3898Lnet/minecraft/class_742;field_3898:Fnamed elytraRollLnet/minecraft/client/network/AbstractClientPlayerEntity;elytraRoll:F
-
clientWorld
- Mappings:
Namespace Name Mixin selector official dLehb;d:Leeg;intermediary field_17892Lnet/minecraft/class_742;field_17892:Lnet/minecraft/class_638;named clientWorldLnet/minecraft/client/network/AbstractClientPlayerEntity;clientWorld:Lnet/minecraft/client/world/ClientWorld;
-
-
Constructor Details
-
AbstractClientPlayerEntity
- Mappings:
Namespace Name Mixin selector official <init>Lehb;<init>(Leeg;Lcom/mojang/authlib/GameProfile;)Vintermediary <init>Lnet/minecraft/class_742;<init>(Lnet/minecraft/class_638;Lcom/mojang/authlib/GameProfile;)Vnamed <init>Lnet/minecraft/client/network/AbstractClientPlayerEntity;<init>(Lnet/minecraft/client/world/ClientWorld;Lcom/mojang/authlib/GameProfile;)V
-
-
Method Details
-
isSpectator
public boolean isSpectator()- Specified by:
isSpectatorin classPlayerEntity- Mappings:
Namespace Name Mixin selector official a_Laqx;a_()Zintermediary method_7325Lnet/minecraft/class_1297;method_7325()Znamed isSpectatorLnet/minecraft/entity/Entity;isSpectator()Z
-
isCreative
public boolean isCreative()Returns whether this player is in creative mode.- Specified by:
isCreativein classPlayerEntity- Mappings:
Namespace Name Mixin selector official b_Lbhn;b_()Zintermediary method_7337Lnet/minecraft/class_1657;method_7337()Znamed isCreativeLnet/minecraft/entity/player/PlayerEntity;isCreative()Z
-
canRenderCapeTexture
public boolean canRenderCapeTexture()- Mappings:
Namespace Name Mixin selector official cLehb;c()Zintermediary method_3125Lnet/minecraft/class_742;method_3125()Znamed canRenderCapeTextureLnet/minecraft/client/network/AbstractClientPlayerEntity;canRenderCapeTexture()Z
-
getPlayerListEntry
- Mappings:
Namespace Name Mixin selector official fLehb;f()Leek;intermediary method_3123Lnet/minecraft/class_742;method_3123()Lnet/minecraft/class_640;named getPlayerListEntryLnet/minecraft/client/network/AbstractClientPlayerEntity;getPlayerListEntry()Lnet/minecraft/client/network/PlayerListEntry;
-
hasSkinTexture
public boolean hasSkinTexture()- Mappings:
Namespace Name Mixin selector official nLehb;n()Zintermediary method_3127Lnet/minecraft/class_742;method_3127()Znamed hasSkinTextureLnet/minecraft/client/network/AbstractClientPlayerEntity;hasSkinTexture()Z
-
getSkinTexture
- Mappings:
Namespace Name Mixin selector official oLehb;o()Lwb;intermediary method_3117Lnet/minecraft/class_742;method_3117()Lnet/minecraft/class_2960;named getSkinTextureLnet/minecraft/client/network/AbstractClientPlayerEntity;getSkinTexture()Lnet/minecraft/util/Identifier;
-
getCapeTexture
- Mappings:
Namespace Name Mixin selector official pLehb;p()Lwb;intermediary method_3119Lnet/minecraft/class_742;method_3119()Lnet/minecraft/class_2960;named getCapeTextureLnet/minecraft/client/network/AbstractClientPlayerEntity;getCapeTexture()Lnet/minecraft/util/Identifier;
-
canRenderElytraTexture
public boolean canRenderElytraTexture()- Mappings:
Namespace Name Mixin selector official rLehb;r()Zintermediary method_3126Lnet/minecraft/class_742;method_3126()Znamed canRenderElytraTextureLnet/minecraft/client/network/AbstractClientPlayerEntity;canRenderElytraTexture()Z
-
getElytraTexture
- Mappings:
Namespace Name Mixin selector official uLehb;u()Lwb;intermediary method_3122Lnet/minecraft/class_742;method_3122()Lnet/minecraft/class_2960;named getElytraTextureLnet/minecraft/client/network/AbstractClientPlayerEntity;getElytraTexture()Lnet/minecraft/util/Identifier;
-
loadSkin
- Mappings:
Namespace Name Mixin selector official aLehb;a(Lwb;Ljava/lang/String;)Lert;intermediary method_3120Lnet/minecraft/class_742;method_3120(Lnet/minecraft/class_2960;Ljava/lang/String;)Lnet/minecraft/class_1046;named loadSkinLnet/minecraft/client/network/AbstractClientPlayerEntity;loadSkin(Lnet/minecraft/util/Identifier;Ljava/lang/String;)Lnet/minecraft/client/texture/PlayerSkinTexture;
-
getSkinId
- Mappings:
Namespace Name Mixin selector official dLehb;d(Ljava/lang/String;)Lwb;intermediary method_3124Lnet/minecraft/class_742;method_3124(Ljava/lang/String;)Lnet/minecraft/class_2960;named getSkinIdLnet/minecraft/client/network/AbstractClientPlayerEntity;getSkinId(Ljava/lang/String;)Lnet/minecraft/util/Identifier;
-
getModel
- Mappings:
Namespace Name Mixin selector official vLehb;v()Ljava/lang/String;intermediary method_3121Lnet/minecraft/class_742;method_3121()Ljava/lang/String;named getModelLnet/minecraft/client/network/AbstractClientPlayerEntity;getModel()Ljava/lang/String;
-
getSpeed
public float getSpeed()- Mappings:
Namespace Name Mixin selector official wLehb;w()Fintermediary method_3118Lnet/minecraft/class_742;method_3118()Fnamed getSpeedLnet/minecraft/client/network/AbstractClientPlayerEntity;getSpeed()F
-