public class ClientPlayerEntity extends AbstractClientPlayerEntity
PlayerEntity.SleepResult| 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 |
field_213837_d, rotateElytraX, rotateElytraY, rotateElytraZabilities, 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, 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, randomYawVelocity, 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, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldfield_213139_a_| Constructor and Description |
|---|
ClientPlayerEntity(Minecraft p_i50990_1_,
ClientWorld p_i50990_2_,
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) |
ItemEntity |
dropItem(boolean dropAll) |
void |
func_213823_a(SoundEvent p_213823_1_,
SoundCategory p_213823_2_,
float p_213823_3_,
float p_213823_4_) |
void |
func_213826_a(JigsawTileEntity p_213826_1_) |
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) |
boolean |
hasSneakingInput() |
void |
heal(float healAmount) |
boolean |
isAutoJumpEnabled() |
protected boolean |
isCurrentViewEntity() |
boolean |
isHandActive() |
boolean |
isRidingHorse() |
boolean |
isRowingBoat() |
boolean |
isServerWorld() |
boolean |
isSneaking() |
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 |
openMinecartCommandBlock(CommandBlockLogic commandBlock) |
void |
openSignEditor(SignTileEntity signTile) |
void |
openStructureBlock(StructureBlockTileEntity structure) |
void |
playSound(SoundEvent soundIn,
float volume,
float pitch) |
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 |
setSprinting(boolean sprinting) |
void |
setXPStats(float currentXP,
int maxXP,
int level) |
boolean |
shouldRenderSneaking() |
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, canPlayerEdit, canTriggerWalking, canUseCommandBlock, createCooldownTracker, damageArmor, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropInventory, dropItem, dropItem, fall, findAmmo, func_213365_e, func_213818_a, func_213822_a, func_223729_a, 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, getSplashSound, getStandingEyeHeight, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, giveExperiencePoints, hasReducedDebug, interactOn, isAllowEdit, isInvisibleToPlayer, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPushedByWater, isSpawnForced, isSpawnForced, isSwimming, isWearing, jump, onDeath, onEnchant, onFoodEaten, onKillEntity, openContainer, openHorseInventory, preparePlayerToSpawn, readAdditional, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, resetRecipes, setAbsorptionAmount, setGameType, setItemStackToSlot, setLeftShoulderEntity, setMotionMultiplier, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, startSleeping, takeStat, travel, trySleep, unlockRecipes, unlockRecipes, updatePose, updateSwimming, wakeUp, wakeUpPlayer, writeAdditional, xpBarCapaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, canAttack, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, createBrain, createSpawnPacket, curePotionEffects, decreaseAirSupply, determineNextAir, dismountEntity, dropLoot, dropSpecialItems, frostWalk, func_213314_bj, func_213343_cS, func_213344_a, func_213346_cF, func_213363_a, func_213371_e, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, handleFluidJump, handleFluidSneak, hasItemInSlot, isActiveItemStackBlocking, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isOnLadder, isPotionActive, isPotionApplicable, isSleeping, isSpinAttacking, knockBack, lookAt, markPotionsDirty, markVelocityChanged, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removePotionEffect, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, sendEndCombat, sendEnterCombat, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, shouldRiderFaceForward, spawnDrops, startSpinAttack, stopActiveHand, updateArmSwingProgress, updateDistance, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_213286_i, func_213296_b, func_213300_bk, func_213312_b, func_213320_d, func_213324_a, func_223307_a, func_223308_g, func_223310_a, func_223314_ad, getAbsoluteMotion, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFlag, getForward, getHeight, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMotion, getMountedYOffset, getPassengers, getPersistentData, getPitchYaw, getPose, getPosition, getPositionVec, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSubmergedHeight, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleSneakMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSpectatedByPlayer, isSprinting, isWet, makeFlySound, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, playSwimSound, processInitialInteract, read, recalculateSize, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setNoGravity, setOnFireFromLava, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, 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 p_i50990_1_, ClientWorld p_i50990_2_, 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 PlayerEntity@Nullable public ItemEntity dropItem(boolean dropAll)
dropItem 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 playSound(SoundEvent soundIn, float volume, float pitch)
playSound in class PlayerEntitypublic void func_213823_a(SoundEvent p_213823_1_, SoundCategory p_213823_2_, float p_213823_3_, float p_213823_4_)
func_213823_a 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 func_213826_a(JigsawTileEntity p_213826_1_)
func_213826_a 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 isSneaking()
isSneaking in class Entitypublic boolean hasSneakingInput()
public boolean shouldRenderSneaking()
shouldRenderSneaking in class Entitypublic 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)