public class ClientPlayerEntity extends AbstractClientPlayerEntity
PlayerEntity.SleepResultEntity.IMoveCallback| Modifier and Type | Field and Description |
|---|---|
ClientPlayNetHandler |
connection |
protected Minecraft |
mc |
MovementInput |
movementInput |
float |
prevRenderArmPitch |
float |
prevRenderArmYaw |
float |
prevTimeInPortal |
float |
renderArmPitch |
float |
renderArmYaw |
int |
sprintingTicksLeft |
protected int |
sprintToggleTimer |
float |
timeInPortal |
rotateElytraX, rotateElytraY, rotateElytraZ, worldClientabilities, cameraYaw, chasingPosX, chasingPosY, chasingPosZ, container, enterChestInventory, experience, experienceLevel, experienceTotal, eyesInWaterPlayer, fishingBobber, flyToggleTimer, foodStats, inventory, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, RIGHT_SHOULDER_ENTITY, spawnForced, spawnForcedMap, spawnPos, spawnPosMap, speedInAir, STANDING_SIZE, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldDUMMY| Constructor and Description |
|---|
ClientPlayerEntity(Minecraft minecraftIn,
ClientWorld clientWorldIn,
ClientPlayNetHandler p_i50990_3_,
StatisticsManager p_i50990_4_,
ClientRecipeBook p_i50990_5_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
canSwim() |
void |
closeScreen() |
void |
closeScreenAndDropStack() |
protected void |
damageEntity(DamageSource damageSrc,
float damageAmount) |
boolean |
func_225609_n_(boolean p_225609_1_) |
boolean |
func_228354_I_() |
Hand |
getActiveHand() |
float |
getHorseJumpPower() |
protected int |
getPermissionLevel() |
float |
getPitch(float partialTicks) |
ClientRecipeBook |
getRecipeBook() |
java.lang.String |
getServerBrand() |
StatisticsManager |
getStats() |
float |
getWaterBrightness() |
float |
getYaw(float partialTicks) |
void |
handleStatusUpdate(byte id) |
void |
heal(float healAmount) |
boolean |
isAutoJumpEnabled() |
boolean |
isCrouching() |
protected boolean |
isCurrentViewEntity() |
boolean |
isGlowing() |
boolean |
isHandActive() |
boolean |
isRidingHorse() |
boolean |
isRowingBoat() |
boolean |
isServerWorld() |
boolean |
isShiftKeyDown() |
boolean |
isShowDeathScreen() |
boolean |
isUser() |
void |
livingTick() |
void |
move(MoverType typeIn,
Vec3d pos) |
void |
notifyDataManagerChange(DataParameter<?> key) |
void |
onCriticalHit(Entity entityHit) |
void |
onEnchantmentCritical(Entity entityHit) |
void |
openBook(ItemStack stack,
Hand hand) |
void |
openCommandBlock(CommandBlockTileEntity commandBlock) |
void |
openJigsaw(JigsawTileEntity p_213826_1_) |
void |
openMinecartCommandBlock(CommandBlockLogic commandBlock) |
void |
openSignEditor(SignTileEntity signTile) |
void |
openStructureBlock(StructureBlockTileEntity structure) |
void |
playSound(SoundEvent soundIn,
float volume,
float pitch) |
void |
playSound(SoundEvent p_213823_1_,
SoundCategory p_213823_2_,
float p_213823_3_,
float p_213823_4_) |
protected void |
pushOutOfBlocks(double x,
double y,
double z) |
EffectInstance |
removeActivePotionEffect(Effect potioneffectin) |
void |
removeRecipeHighlight(IRecipe<?> p_193103_1_) |
void |
resetActiveHand() |
void |
respawnPlayer() |
void |
sendChatMessage(java.lang.String message) |
void |
sendHorseInventory() |
protected void |
sendHorseJump() |
void |
sendMessage(ITextComponent component) |
void |
sendPlayerAbilities() |
void |
sendStatusMessage(ITextComponent chatComponent,
boolean actionBar) |
void |
setActiveHand(Hand hand) |
void |
setPermissionLevel(int p_184839_1_) |
void |
setPlayerSPHealth(float health) |
void |
setServerBrand(java.lang.String brand) |
void |
setShowDeathScreen(boolean p_228355_1_) |
void |
setSprinting(boolean sprinting) |
void |
setXPStats(float currentXP,
int maxXP,
int level) |
boolean |
startRiding(Entity entityIn,
boolean force) |
void |
stopRiding() |
void |
swingArm(Hand hand) |
void |
tick() |
protected void |
updateAutoJump(float p_189810_1_,
float p_189810_2_) |
void |
updateEntityActionState() |
protected boolean |
updateEyesInWaterPlayer() |
void |
updateRidden() |
void |
updateSyncFields(ClientPlayerEntity old) |
getDownloadImageSkin, getFovModifier, getLocationCape, getLocationElytra, getLocationSkin, getLocationSkin, getPlayerInfo, getSkinType, hasPlayerInfo, hasSkin, isCreative, isPlayerInfoSet, isSpectatoraddExhaustion, addExperienceLevel, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, addStat, attackTargetEntityWithCurrentItem, blockUsingShield, canAttackPlayer, canEat, canHarvestBlock, canPickUpItem, canPlayerEdit, canTriggerWalking, canUseCommandBlock, createCooldownTracker, damageArmor, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropInventory, dropItem, dropItem, findAmmo, func_213822_a, func_223729_a, func_225514_a_, func_225652_a_, func_226560_a_, func_226563_dT_, func_226564_dU_, func_226565_dV_, func_226566_ei_, func_226567_ej_, func_226568_ek_, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBedLocation, getBedLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameAndUUID, getExperiencePoints, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHighspeedSplashSound, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getScoreboardName, getSize, getSleepTimer, getSoundCategory, getSpawnDimension, getSpeedFactor, getSplashSound, getStandingEyeHeight, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, giveExperiencePoints, hasReducedDebug, interactOn, isAllowEdit, isInvulnerableTo, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPushedByWater, isSpawnForced, isSpawnForced, isSwimming, isWearing, jump, onDeath, onEnchant, onFoodEaten, onKillEntity, onLivingFall, openContainer, openHorseInventory, openMerchantContainer, preparePlayerToSpawn, readAdditional, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, resetRecipes, setAbsorptionAmount, setGameType, setItemStackToSlot, setLeftShoulderEntity, setMotionMultiplier, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, startSleeping, takeStat, travel, trySleep, unlockRecipes, unlockRecipes, updatePose, updateSwimming, wakeUp, writeAdditional, xpBarCapaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, canAttack, canAttack, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createSpawnPacket, curePotionEffects, decreaseAirSupply, determineNextAir, dropLoot, dropSpecialItems, frostWalk, func_213343_cS, func_225508_e_, func_226292_a_, func_226293_b_, func_226294_cV_, func_226296_dJ_, func_226298_f_, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLootContextBuilder, getLootTableResourceLocation, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, handleFluidJump, handleFluidSneak, hasItemInSlot, isActiveItemStackBlocking, isActualySwimming, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isOnLadder, isPotionActive, isPotionApplicable, isSleeping, isSpinAttacking, knockBack, lookAt, markPotionsDirty, markVelocityChanged, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, playHurtSound, removePotionEffect, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, sendEndCombat, sendEnterCombat, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, shouldRiderFaceForward, spawnDrops, startSpinAttack, stopActiveHand, updateArmSwingProgress, updateDistance, updateFallState, updatePotionEffects, updatePotionMetadata, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, calculateUpVector, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_226265_a_, func_226266_a_, func_226276_cg_, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireTimer, getFlag, getForward, getHeight, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMotion, getMountedYOffset, getOnPosition, getPassengers, getPersistentData, getPitchYaw, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSubmergedHeight, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSpectatedByPlayer, isSprinting, isSteppingCarefully, isSuppressingBounce, isVisuallySwimming, isWet, makeFlySound, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playStepSound, playSwimSound, processInitialInteract, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapabilitypublic final ClientPlayNetHandler connection
public MovementInput movementInput
protected final Minecraft mc
protected int sprintToggleTimer
public int sprintingTicksLeft
public float renderArmYaw
public float renderArmPitch
public float prevRenderArmYaw
public float prevRenderArmPitch
public float timeInPortal
public float prevTimeInPortal
public ClientPlayerEntity(Minecraft minecraftIn, ClientWorld clientWorldIn, ClientPlayNetHandler p_i50990_3_, StatisticsManager p_i50990_4_, ClientRecipeBook p_i50990_5_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class PlayerEntitypublic void heal(float healAmount)
heal in class LivingEntitypublic boolean startRiding(Entity entityIn, boolean force)
startRiding in class Entitypublic void stopRiding()
stopRiding in class PlayerEntitypublic float getYaw(float partialTicks)
getYaw in class LivingEntitypublic void tick()
tick in class PlayerEntitypublic boolean func_225609_n_(boolean p_225609_1_)
func_225609_n_ in class PlayerEntitypublic void sendChatMessage(java.lang.String message)
public void swingArm(Hand hand)
swingArm in class LivingEntitypublic void respawnPlayer()
respawnPlayer in class PlayerEntityprotected void damageEntity(DamageSource damageSrc, float damageAmount)
damageEntity in class PlayerEntitypublic void closeScreen()
closeScreen in class PlayerEntitypublic void closeScreenAndDropStack()
public void setPlayerSPHealth(float health)
public void sendPlayerAbilities()
sendPlayerAbilities in class PlayerEntitypublic boolean isUser()
isUser in class PlayerEntityprotected void sendHorseJump()
public void sendHorseInventory()
public void setServerBrand(java.lang.String brand)
public java.lang.String getServerBrand()
public StatisticsManager getStats()
public ClientRecipeBook getRecipeBook()
public void removeRecipeHighlight(IRecipe<?> p_193103_1_)
protected int getPermissionLevel()
getPermissionLevel in class Entitypublic void setPermissionLevel(int p_184839_1_)
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage in class PlayerEntityprotected void pushOutOfBlocks(double x,
double y,
double z)
pushOutOfBlocks in class Entitypublic void setSprinting(boolean sprinting)
setSprinting in class LivingEntitypublic void setXPStats(float currentXP,
int maxXP,
int level)
public void sendMessage(ITextComponent component)
sendMessage in interface ICommandSourcesendMessage in class Entitypublic void handleStatusUpdate(byte id)
handleStatusUpdate in class PlayerEntitypublic void setShowDeathScreen(boolean p_228355_1_)
public boolean isShowDeathScreen()
public void playSound(SoundEvent soundIn, float volume, float pitch)
playSound in class PlayerEntitypublic void playSound(SoundEvent p_213823_1_, SoundCategory p_213823_2_, float p_213823_3_, float p_213823_4_)
playSound in class PlayerEntitypublic boolean isServerWorld()
isServerWorld in class LivingEntitypublic void setActiveHand(Hand hand)
setActiveHand in class LivingEntitypublic boolean isHandActive()
isHandActive in class LivingEntitypublic void resetActiveHand()
resetActiveHand in class LivingEntitypublic Hand getActiveHand()
getActiveHand in class LivingEntitypublic void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange in class LivingEntitypublic boolean isRidingHorse()
public float getHorseJumpPower()
public void openSignEditor(SignTileEntity signTile)
openSignEditor in class PlayerEntitypublic void openMinecartCommandBlock(CommandBlockLogic commandBlock)
openMinecartCommandBlock in class PlayerEntitypublic void openCommandBlock(CommandBlockTileEntity commandBlock)
openCommandBlock in class PlayerEntitypublic void openStructureBlock(StructureBlockTileEntity structure)
openStructureBlock in class PlayerEntitypublic void openJigsaw(JigsawTileEntity p_213826_1_)
openJigsaw in class PlayerEntitypublic void openBook(ItemStack stack, Hand hand)
openBook in class PlayerEntitypublic void onCriticalHit(Entity entityHit)
onCriticalHit in class PlayerEntitypublic void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical in class PlayerEntitypublic boolean isShiftKeyDown()
isShiftKeyDown in class Entitypublic boolean isCrouching()
isCrouching in class Entitypublic boolean func_228354_I_()
public void updateEntityActionState()
updateEntityActionState in class PlayerEntityprotected boolean isCurrentViewEntity()
public void livingTick()
livingTick in class PlayerEntitypublic void updateRidden()
updateRidden in class PlayerEntitypublic boolean isRowingBoat()
@Nullable public EffectInstance removeActivePotionEffect(@Nullable Effect potioneffectin)
removeActivePotionEffect in class LivingEntitypublic boolean isAutoJumpEnabled()
protected void updateAutoJump(float p_189810_1_,
float p_189810_2_)
public float getWaterBrightness()
protected boolean updateEyesInWaterPlayer()
updateEyesInWaterPlayer in class PlayerEntitypublic void updateSyncFields(ClientPlayerEntity old)