public class EntityPlayerSP extends AbstractClientPlayer
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResult| Modifier and Type | Field and Description |
|---|---|
private EnumHand |
activeHand |
private boolean |
autoJumpEnabled |
private int |
autoJumpTime |
NetHandlerPlayClient |
connection |
private boolean |
handActive |
private boolean |
hasValidHealth |
private float |
horseJumpPower |
private int |
horseJumpPowerCounter |
private float |
lastReportedPitch |
private double |
lastReportedPosX |
private double |
lastReportedPosY |
private double |
lastReportedPosZ |
private float |
lastReportedYaw |
protected Minecraft |
mc |
MovementInput |
movementInput |
private int |
permissionLevel |
private int |
positionUpdateTicks |
private boolean |
prevOnGround |
float |
prevRenderArmPitch |
float |
prevRenderArmYaw |
float |
prevTimeInPortal |
private RecipeBook |
recipeBook |
float |
renderArmPitch |
float |
renderArmYaw |
private boolean |
rowingBoat |
private java.lang.String |
serverBrand |
private boolean |
serverSneakState |
private boolean |
serverSprintState |
int |
sprintingTicksLeft |
protected int |
sprintToggleTimer |
private StatisticsManager |
statWriter |
float |
timeInPortal |
private boolean |
wasFallFlying |
rotateElytraX, rotateElytraY, rotateElytraZbedLocation, cameraYaw, capabilities, chasingPosX, chasingPosY, chasingPosZ, enderChest, experience, experienceLevel, experienceTotal, eyeHeight, 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, spawnChunkMap, spawnForced, spawnForcedMap, spawnPos, speedInAir, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, world| Constructor and Description |
|---|
EntityPlayerSP(Minecraft p_i47378_1_,
World p_i47378_2_,
NetHandlerPlayClient p_i47378_3_,
StatisticsManager p_i47378_4_,
RecipeBook p_i47378_5_) |
getDownloadImageSkin, getFovModifier, getLocationCape, getLocationElytra, getLocationSkin, getLocationSkin, getPlayerInfo, getSkinType, hasPlayerInfo, hasSkin, isCreative, isPlayerInfoSet, isSpectatoraddExhaustion, addExperience, addExperienceLevel, addItemStackToInventory, addMovementStat, addPrefix, addScore, addShoulderEntity, addStat, addSuffix, applyEntityAttributes, applyEntityCollision, attackTargetEntityWithCurrentItem, blockUsingShield, canAttackPlayer, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, canUseCommandBlock, createCooldownTracker, damageArmor, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropItem, dropItem, entityInit, fall, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDefaultEyeHeight, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameString, getExperiencePoints, getEyeHeight, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getSleepTimer, getSoundCategory, getSpawnDimension, getSplashSound, getSuffixes, getSwimSound, getTeam, getUUID, getWorldScoreboard, getXPSeed, getYOffset, hasCapability, hasReducedDebug, hasSpawnDimension, interactOn, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isWearing, jump, onDeath, onEnchant, onKillEntity, openGui, preparePlayerToSpawn, readEntityFromNBT, refreshDisplayName, registerFixesPlayer, replaceItemInInventory, resetCooldown, resetRecipes, sendCommandFeedback, setAbsorptionAmount, setDead, setGameType, setInWeb, setItemStackToSlot, setLeftShoulderEntity, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnChunk, setSpawnDimension, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, takeStat, travel, trySleep, unlockRecipes, unlockRecipes, updateSize, wakeUpPlayer, writeEntityToNBT, xpBarCapaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropLoot, frostWalk, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasItemInSlot, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isOnLadder, isPotionActive, isPotionApplicable, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, onChangedPotionEffect, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onKillCommand, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removePotionEffect, renderBrokenItemStack, resetPotionEffectMetadata, sendEndCombat, sendEnterCombat, setAIMoveSpeed, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, shouldRiderFaceForward, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateFallState, updateItemUse, updatePotionEffects, updatePotionMetadataaddEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, awardKillScore, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, changeDimension, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSpectatedByPlayer, isSprinting, isWet, makeFlySound, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onInsideBlock, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, processInitialInteract, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptionalpublic final NetHandlerPlayClient connection
private final StatisticsManager statWriter
private final RecipeBook recipeBook
private int permissionLevel
private double lastReportedPosX
private double lastReportedPosY
private double lastReportedPosZ
private float lastReportedYaw
private float lastReportedPitch
private boolean prevOnGround
private boolean serverSneakState
private boolean serverSprintState
private int positionUpdateTicks
private boolean hasValidHealth
private java.lang.String serverBrand
public MovementInput movementInput
protected Minecraft mc
protected int sprintToggleTimer
public int sprintingTicksLeft
public float renderArmYaw
public float renderArmPitch
public float prevRenderArmYaw
public float prevRenderArmPitch
private int horseJumpPowerCounter
private float horseJumpPower
public float timeInPortal
public float prevTimeInPortal
private boolean handActive
private EnumHand activeHand
private boolean rowingBoat
private boolean autoJumpEnabled
private int autoJumpTime
private boolean wasFallFlying
public EntityPlayerSP(Minecraft p_i47378_1_, World p_i47378_2_, NetHandlerPlayClient p_i47378_3_, StatisticsManager p_i47378_4_, RecipeBook p_i47378_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 dismountRidingEntity()
dismountRidingEntity in class EntityPlayerpublic Vec3d getLook(float partialTicks)
getLook in class EntityLivingBasepublic void onUpdate()
onUpdate in class EntityPlayerprivate void onUpdateWalkingPlayer()
@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 addStat(StatBase stat, int amount)
addStat in class EntityPlayerpublic 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 getStatFileWriter()
public RecipeBook getRecipeBook()
public void removeRecipeHighlight(IRecipe p_193103_1_)
public int getPermissionLevel()
public void setPermissionLevel(int p_184839_1_)
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage in class EntityPlayerprivate boolean isHeadspaceFree(BlockPos pos, int height)
protected boolean pushOutOfBlocks(double x,
double y,
double z)
pushOutOfBlocks in class Entityprivate boolean isOpenBlockSpace(BlockPos pos)
public void setSprinting(boolean sprinting)
setSprinting in class EntityLivingBasepublic void setXPStats(float currentXP,
int maxXP,
int level)
public void sendMessage(ITextComponent component)
sendMessage in interface ICommandSendersendMessage in class Entitypublic boolean canUseCommand(int permLevel,
java.lang.String commandName)
canUseCommand in interface ICommandSendercanUseCommand in class Entitypublic void handleStatusUpdate(byte id)
handleStatusUpdate in class EntityPlayerpublic BlockPos getPosition()
getPosition in interface ICommandSendergetPosition in class Entitypublic 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 openEditSign(TileEntitySign signTile)
openEditSign in class EntityPlayerpublic void displayGuiEditCommandCart(CommandBlockBaseLogic commandBlock)
displayGuiEditCommandCart in class EntityPlayerpublic void displayGuiCommandBlock(TileEntityCommandBlock commandBlock)
displayGuiCommandBlock in class EntityPlayerpublic void openEditStructure(TileEntityStructure structure)
openEditStructure in class EntityPlayerpublic void openBook(ItemStack stack, EnumHand hand)
openBook in class EntityPlayerpublic void displayGUIChest(IInventory chestInventory)
displayGUIChest in class EntityPlayerpublic void openGuiHorseInventory(AbstractHorse horse, IInventory inventoryIn)
openGuiHorseInventory 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 onLivingUpdate()
onLivingUpdate 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 void updateSyncFields(EntityPlayerSP old)