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, rotateElytraZ
abilities, 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, xpSeed
activeItemStack, 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, unused180
addedToChunk, 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, world
field_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, isSpectator
addExhaustion, 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, xpBarCap
addPotionEffect, 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, updateSpinAttack
addPassenger, 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, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public 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 PlayerEntity
public void heal(float healAmount)
heal
in class LivingEntity
public boolean startRiding(Entity entityIn, boolean force)
startRiding
in class Entity
public void stopRiding()
stopRiding
in class PlayerEntity
public float getYaw(float partialTicks)
getYaw
in class LivingEntity
public void tick()
tick
in class PlayerEntity
@Nullable public ItemEntity dropItem(boolean dropAll)
dropItem
in class PlayerEntity
public void sendChatMessage(java.lang.String message)
public void swingArm(Hand hand)
swingArm
in class LivingEntity
public void respawnPlayer()
respawnPlayer
in class PlayerEntity
protected void damageEntity(DamageSource damageSrc, float damageAmount)
damageEntity
in class PlayerEntity
public void closeScreen()
closeScreen
in class PlayerEntity
public void closeScreenAndDropStack()
public void setPlayerSPHealth(float health)
public void sendPlayerAbilities()
sendPlayerAbilities
in class PlayerEntity
public boolean isUser()
isUser
in class PlayerEntity
protected 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 Entity
public void setPermissionLevel(int p_184839_1_)
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage
in class PlayerEntity
protected void pushOutOfBlocks(double x, double y, double z)
pushOutOfBlocks
in class Entity
public void setSprinting(boolean sprinting)
setSprinting
in class LivingEntity
public void setXPStats(float currentXP, int maxXP, int level)
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSource
sendMessage
in class Entity
public void handleStatusUpdate(byte id)
handleStatusUpdate
in class PlayerEntity
public void playSound(SoundEvent soundIn, float volume, float pitch)
playSound
in class PlayerEntity
public 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 PlayerEntity
public boolean isServerWorld()
isServerWorld
in class LivingEntity
public void setActiveHand(Hand hand)
setActiveHand
in class LivingEntity
public boolean isHandActive()
isHandActive
in class LivingEntity
public void resetActiveHand()
resetActiveHand
in class LivingEntity
public Hand getActiveHand()
getActiveHand
in class LivingEntity
public void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange
in class LivingEntity
public boolean isRidingHorse()
public float getHorseJumpPower()
public void openSignEditor(SignTileEntity signTile)
openSignEditor
in class PlayerEntity
public void openMinecartCommandBlock(CommandBlockLogic commandBlock)
openMinecartCommandBlock
in class PlayerEntity
public void openCommandBlock(CommandBlockTileEntity commandBlock)
openCommandBlock
in class PlayerEntity
public void openStructureBlock(StructureBlockTileEntity structure)
openStructureBlock
in class PlayerEntity
public void func_213826_a(JigsawTileEntity p_213826_1_)
func_213826_a
in class PlayerEntity
public void openBook(ItemStack stack, Hand hand)
openBook
in class PlayerEntity
public void onCriticalHit(Entity entityHit)
onCriticalHit
in class PlayerEntity
public void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical
in class PlayerEntity
public boolean isSneaking()
isSneaking
in class Entity
public boolean hasSneakingInput()
public boolean shouldRenderSneaking()
shouldRenderSneaking
in class Entity
public void updateEntityActionState()
updateEntityActionState
in class PlayerEntity
protected boolean isCurrentViewEntity()
public void livingTick()
livingTick
in class PlayerEntity
public void updateRidden()
updateRidden
in class PlayerEntity
public boolean isRowingBoat()
@Nullable public EffectInstance removeActivePotionEffect(@Nullable Effect potioneffectin)
removeActivePotionEffect
in class LivingEntity
public boolean isAutoJumpEnabled()
protected void updateAutoJump(float p_189810_1_, float p_189810_2_)
public float getWaterBrightness()
protected boolean updateEyesInWaterPlayer()
updateEyesInWaterPlayer
in class PlayerEntity
public void updateSyncFields(ClientPlayerEntity old)