public class EntityPlayerSP extends AbstractClientPlayer
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResult| Modifier and Type | Field and Description |
|---|---|
NetHandlerPlayClient |
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, rotateElytraZabilities, bedLocation, cameraYaw, chasingPosX, chasingPosY, chasingPosZ, enderChest, experience, experienceLevel, experienceTotal, eyesInWaterPlayer, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, renderOffsetX, renderOffsetY, renderOffsetZ, RIGHT_SHOULDER_ENTITY, sleeping, spawnForced, spawnForcedMap, spawnPos, spawnPosMap, speedInAir, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, field_208001_bq, field_208002_br, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, 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, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, world| Constructor and Description |
|---|
EntityPlayerSP(Minecraft p_i48190_1_,
World p_i48190_2_,
NetHandlerPlayClient p_i48190_3_,
StatisticsManager p_i48190_4_,
RecipeBookClient p_i48190_5_) |
getDownloadImageSkin, getFovModifier, getLocationCape, getLocationElytra, getLocationSkin, getLocationSkin, getPlayerInfo, getSkinType, hasPlayerInfo, hasSkin, isCreative, isPlayerInfoSet, isSpectatoraddExhaustion, addExperienceLevel, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, addStat, applyEntityCollision, attackTargetEntityWithCurrentItem, blockUsingShield, canAttackPlayer, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, canUseCommandBlock, createCooldownTracker, damageArmor, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropItem, dropItem, fall, func_207402_f, func_208017_dF, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDefaultEyeHeight, getDigSpeed, getDigSpeed, getDisplayName, getExperiencePoints, getEyeHeight, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHighspeedSplashSound, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getScoreboardName, getSleepTimer, getSoundCategory, getSpawnDimension, getSplashSound, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, giveExperiencePoints, hasReducedDebug, interactOn, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isSwimming, isWearing, jump, onDeath, onEnchant, onKillEntity, preparePlayerToSpawn, readAdditional, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, resetRecipes, setAbsorptionAmount, setGameType, setInWeb, setItemStackToSlot, setLeftShoulderEntity, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, takeStat, travel, trySleep, unlockRecipes, unlockRecipes, updateSize, updateSwimming, wakeUpPlayer, writeAdditional, xpBarCapaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, determineNextAir, dismountEntity, dropEquipment, dropFewItems, dropLoot, frostWalk, func_195061_cb, func_203010_cG, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributeMap, getCombatTracker, getCreatureAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleFluidJump, hasItemInSlot, isActiveItemStackBlocking, isAlive, isChild, isElytraFlying, isEntityUndead, isOnLadder, isPotionActive, isPotionApplicable, isSpinAttacking, knockBack, lerp, lookAt, markPotionsDirty, markVelocityChanged, moveRelative, onChangedPotionEffect, onDeathUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, remove, removePotionEffect, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAIMoveSpeed, setArrowCountInEntity, setHeadRotation, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, shouldRiderFaceForward, startSpinAttack, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadata, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_212321_a, getAdjustedHorizontalFacing, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyePosition, getFlag, getForward, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPitchYaw, getPosition, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getSubmergedHeight, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, handleFluidAcceleration, 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, isOutsideBorder, isPassenger, isPassenger, isPassenger, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSpectatedByPlayer, isSprinting, isWet, makeFlySound, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, playSwimSound, processInitialInteract, rayTrace, read, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setDropItemsWhenDead, setEntityId, setFire, setFlag, setGlowing, setInvisible, setInvulnerable, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getEntity, getPickedResult, isCreatureType, serializeNBT, shouldRenderInPass, shouldRiderSitgetCapabilitypublic final NetHandlerPlayClient connection
public MovementInput movementInput
protected 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 EntityPlayerSP(Minecraft p_i48190_1_, World p_i48190_2_, NetHandlerPlayClient p_i48190_3_, StatisticsManager p_i48190_4_, RecipeBookClient p_i48190_5_)
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class EntityPlayerpublic void heal(float healAmount)
heal in class EntityLivingBasepublic boolean startRiding(Entity entityIn, boolean force)
startRiding in class Entitypublic void stopRiding()
stopRiding in class EntityPlayerpublic float getYaw(float partialTicks)
getYaw in class EntityLivingBasepublic void tick()
tick in class EntityPlayer@Nullable public EntityItem dropItem(boolean dropAll)
dropItem in class EntityPlayerpublic ItemStack dropItemAndGetStack(EntityItem p_184816_1_)
dropItemAndGetStack in class EntityPlayerpublic void sendChatMessage(java.lang.String message)
public void swingArm(EnumHand hand)
swingArm in class EntityLivingBasepublic void respawnPlayer()
respawnPlayer in class EntityPlayerprotected void damageEntity(DamageSource damageSrc, float damageAmount)
damageEntity in class EntityPlayerpublic void closeScreen()
closeScreen in class EntityPlayerpublic void closeScreenAndDropStack()
public void setPlayerSPHealth(float health)
public void sendPlayerAbilities()
sendPlayerAbilities in class EntityPlayerpublic boolean isUser()
isUser in class EntityPlayerprotected void sendHorseJump()
public void sendHorseInventory()
public void setServerBrand(java.lang.String brand)
public java.lang.String getServerBrand()
public StatisticsManager getStats()
public RecipeBookClient 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 EntityPlayerprotected boolean pushOutOfBlocks(double x,
double y,
double z)
pushOutOfBlocks in class Entitypublic void setSprinting(boolean sprinting)
setSprinting in class EntityLivingBasepublic 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 EntityPlayerpublic void playSound(SoundEvent soundIn, float volume, float pitch)
playSound in class EntityPlayerpublic boolean isServerWorld()
isServerWorld in class EntityLivingBasepublic void setActiveHand(EnumHand hand)
setActiveHand in class EntityLivingBasepublic boolean isHandActive()
isHandActive in class EntityLivingBasepublic void resetActiveHand()
resetActiveHand in class EntityLivingBasepublic EnumHand getActiveHand()
getActiveHand in class EntityLivingBasepublic void notifyDataManagerChange(DataParameter<?> key)
notifyDataManagerChange in class EntityLivingBasepublic boolean isRidingHorse()
public float getHorseJumpPower()
public void openSignEditor(TileEntitySign signTile)
openSignEditor in class EntityPlayerpublic void openMinecartCommandBlock(CommandBlockBaseLogic commandBlock)
openMinecartCommandBlock in class EntityPlayerpublic void openCommandBlock(TileEntityCommandBlock commandBlock)
openCommandBlock in class EntityPlayerpublic void openStructureBlock(TileEntityStructure structure)
openStructureBlock in class EntityPlayerpublic void openBook(ItemStack stack, EnumHand hand)
openBook in class EntityPlayerpublic void displayGUIChest(IInventory chestInventory)
displayGUIChest in class EntityPlayerpublic void openHorseInventory(AbstractHorse horse, IInventory inventoryIn)
openHorseInventory in class EntityPlayerpublic void displayGui(IInteractionObject guiOwner)
displayGui in class EntityPlayerpublic void displayVillagerTradeGui(IMerchant villager)
displayVillagerTradeGui in class EntityPlayerpublic void onCriticalHit(Entity entityHit)
onCriticalHit in class EntityPlayerpublic void onEnchantmentCritical(Entity entityHit)
onEnchantmentCritical in class EntityPlayerpublic boolean isSneaking()
isSneaking in class Entitypublic void updateEntityActionState()
updateEntityActionState in class EntityPlayerprotected boolean isCurrentViewEntity()
public void livingTick()
livingTick in class EntityPlayerpublic void updateRidden()
updateRidden in class EntityPlayerpublic boolean isRowingBoat()
@Nullable public PotionEffect removeActivePotionEffect(@Nullable Potion potioneffectin)
removeActivePotionEffect in class EntityLivingBasepublic boolean isAutoJumpEnabled()
protected void updateAutoJump(float p_189810_1_,
float p_189810_2_)
public float getWaterBrightness()
protected boolean updateEyesInWaterPlayer()
updateEyesInWaterPlayer in class EntityPlayerpublic void updateSyncFields(EntityPlayerSP old)