Package net.minecraft.src
Class EntityClientPlayerMP
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityLivingBase
net.minecraft.src.EntityPlayer
net.minecraft.src.AbstractClientPlayer
net.minecraft.src.EntityPlayerSP
net.minecraft.src.EntityClientPlayerMP
- All Implemented Interfaces:
ICommandSender
-
Field Summary
FieldsFields inherited from class net.minecraft.src.EntityPlayerSP
exhaustionAddedSinceLastGuiUpdate, mc, movementInput, prevRenderArmPitch, prevRenderArmYaw, prevTimeInPortal, renderArmPitch, renderArmYaw, sprintingTicksLeft, sprintToggleTimer, timeInPortalFields inherited from class net.minecraft.src.AbstractClientPlayer
locationStevePngFields inherited from class net.minecraft.src.EntityPlayer
airRecoveryCountdown, cameraYaw, capabilities, currentMiningSpeedModifier, deathCount, EXHAUSTION_JUMPING, EXHAUSTION_JUMPING_SPRINTING, experience, experienceLevel, experienceTotal, field_71079_bU, field_71082_cx, field_71085_bR, field_71089_bV, field_71091_bM, field_71094_bP, field_71095_bQ, field_71096_bN, field_71097_bO, fishEntity, flyToggleTimer, foodStats, GLOOM_COUNTER_BETWEEN_STATE_CHANGES, hardcoreSpawnChunk, inGloomCounter, inventory, inventoryContainer, lastDeathDimension, lastDeathLocationX, lastDeathLocationY, lastDeathLocationZ, openContainer, playerLocation, prevCameraYaw, respawnAssignmentCooldownTimer, sleeping, spawnDimension, speedInAir, speedOnGround, ticksSinceEmoteSound, timeOfLastDimensionSwitch, timeOfLastSpawnAssignment, timerSpeedModifier, timesCraftedThisTick, username, xpCooldownFields inherited from class net.minecraft.src.EntityLivingBase
arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, entityLivingToAttack, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isLivingDead, isSwingInProgress, jumpMovementFactor, landMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, onChoppingBlockMaxCountdown, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, recentlyOnChoppingBlockCountdown, renderYawOffset, revengeCountdown, revengeTimer, rotationYawHead, scoreValue, swingProgress, swingProgressIntFields inherited from class net.minecraft.src.Entity
addedToChunk, boundingBox, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastGroundPosX, lastGroundPosY, lastGroundPosZ, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, nextBlockCheckDistance, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize -
Constructor Summary
ConstructorsConstructorDescriptionEntityClientPlayerMP(Minecraft par1Minecraft, World par2World, Session par3Session, NetClientHandler par4NetClientHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a value to a statistic field.booleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.voidsets current screen to null (used on escape buttons of GUIs)protected voiddamageEntity(DamageSource par1DamageSource, float par2) Deals damage to the entity.dropOneItem(boolean par1) Called when player presses the drop item keyprotected voidvoidvoidfunc_142020_c(String par1Str) voidvoidheal(float par1) Heal living entity (param: amount of half-hearts)voidincrementStat(StatBase par1StatBase, int par2) Used by NetClientHandler.handleStatisticprotected voidjoinEntityItemWithWorld(EntityItem par1EntityItem) Joins the passed in entity item with the world.voidonUpdate()Called to update the entity's position/logic.voidvoidsendChatMessage(String par1Str) Sends a chat message from the player.voidSend updated motion and position information to the servervoidSends the player's abilities to the server (if there is one).voidsetPlayerSPHealth(float par1) Updates health locally.voidsetVelocity(double par1, double par3, double par5) Sets the velocity to the args.voidSwings the item the player is holding.Methods inherited from class net.minecraft.src.EntityPlayerSP
addChatMessage, addExhaustion, addExhaustionWithoutVisualFeedback, canCommandSenderUseCommand, displayGUIAnvil, displayGUIBeacon, displayGUIBook, displayGUIBrewingStand, displayGUIChest, displayGUIDispenser, displayGUIEditSign, displayGUIEnchantment, displayGUIFurnace, displayGUIHopper, displayGUIHopperMinecart, displayGUIHorse, displayGUIMerchant, displayGUIWorkbench, getData, getFOVMultiplier, getHeldItem, getHorseJumpPower, getPlayerCoordinates, isClientWorld, isLocalPlayerAndHittingBlock, isRidingHorse, isSneaking, isUsingSpecialKey, onCriticalHit, onEnchantmentCritical, onItemPickup, onLivingUpdate, playSound, playSoundInRandomDirection, pushOutOfBlocks, sendChatToPlayer, setData, setSprinting, setXPStats, updateEntityActionState, updateGloomStateMethods inherited from class net.minecraft.src.AbstractClientPlayer
getDownloadImageCape, getDownloadImageSkin, getLocationCape, getLocationCape, getLocationSkin, getLocationSkin, getLocationSkull, getTextureCape, getTextureSkin, setupCustomSkinMethods inherited from class net.minecraft.src.EntityPlayer
addExhaustionForJump, addExperience, addExperienceLevel, addHarvestBlockExhaustion, addMovementStat, addRawChatMessage, addScore, addStackToCurrentHeldStackIfEmpty, addToPlayerScore, appliesConstantForceWhenRidingBoat, applyEntityAttributes, attackTargetEntityWithCurrentItem, canAttackPlayer, canDrink, canEat, canHarvestBlock, canJump, canPlayerEdit, canSwim, canTriggerWalking, clearItemInUse, clonePlayer, damageArmor, decreaseAirSupply, destroyCurrentEquippedItem, detonateCarriedBlastingOil, dismountEntity, doesStatusPreventSprinting, dropHead, dropPlayerItem, dropPlayerItemWithRandomChoice, entityInit, fall, getAbsorptionAmount, getAIMoveSpeed, getAllActiveStatusEffects, getAlwaysRenderNameTagForRender, getAnimalKickMovementMultiplier, getArmorExhaustionModifier, getArmorVisibility, getAttackDamageModifierFromEffects, getBedLocation, getBedOrientationInDegrees, getBowPullStrengthModifier, getCanBeHeadCrabbed, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getEntityName, getEntityWorld, getExperiencePoints, getEyeHeight, getFoodStats, getGloomLevel, getHideCape, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getJumpingHorizontalMovementModifier, getLadderVerticalMovementModifier, getLandMovementModifier, getLastActiveItems, getMaxInPortalTime, getMeleeDamageModifier, getMiningSpeedModifier, getMiningSpeedModifierFromEffects, getMountedYOffset, getMovementSpeedModifierFromEffects, getPortalCooldown, getScore, getSleepTimer, getSpawnChunksVisualizationLocationI, getSpawnChunksVisualizationLocationJ, getSpawnChunksVisualizationLocationK, getStatusForCategory, getStongestMagneticPointForLocationI, getStongestMagneticPointForLocationK, getSwimmingHorizontalModifier, getTeam, getTimeOfLastSpawnAssignment, getTimerSpeedModifier, getTranslatedEntityName, getValidatedRespawnCoordinates, getWorldScoreboard, getYOffset, handleHealthUpdate, hasRespawnCoordinates, hasValidMagneticPointForLocation, installationIntegrityTestPlayer, interactWith, isBlocking, isCarryingBlastingOil, isCurrentToolAdventureModeExempt, isEntityInsideOpaqueBlock, isImmuneToHeadCrabDamage, isInvisibleToPlayer, isMovementBlocked, isOnLadder, isPlayer, isPlayerFullyAsleep, isPlayerHoldingSail, isPlayerSleeping, isPushedByWater, isSpawnForced, isUsingItem, isValidOngoingAttackTargetForSquid, isWearingEnderSpectacles, isWearingFullSuitSoulforgedArmor, isWearingSoulforgedBoots, isWearingSoulforgedHelm, jump, mountEntity, mountEntityRemote, moveEntityWithHeading, movementModifierWhenRidingBoat, onBlockedDamage, onCantConsume, onDeath, onItemUseFinish, onKillEntity, onZeroDamageAttack, playStepSound, preparePlayerToSpawn, readEntityFromNBT, readModDataFromNBT, recoverAirSupply, resetHeight, resetTimerSpeedModifier, setAbsorptionAmount, setCurrentItemOrArmor, setDead, setGameType, setGloomLevel, setHasValidMagneticPointForLocation, setHideCape, setInWeb, setItemInUse, setItemInUseCount, setMiningSpeedModifier, setScore, setSpawnChunk, setSpawnChunk, setSpawnChunksVisualization, setStrongestMagneticPointForLocationI, setStrongestMagneticPointForLocationK, setTimeOfLastSpawnAssignment, setTimerSpeedModifier, setUsingSpecialKey, shouldHeal, sleepInBedAt, stopUsingItem, triggerAchievement, updateItemUse, updateMiningSpeedModifier, updateRidden, validateBoundRespawnBeacon, verifyRespawnCoordinates, wakeUpPlayer, writeEntityToNBT, writeModDataToNBT, xpBarCapMethods inherited from class net.minecraft.src.EntityLivingBase
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, canJumpMidWater, checkForHeadDrop, checkForRareDrop, checkForScrollDrop, clearActivePotions, collideWithEntity, collideWithNearbyEntities, dropEquipment, dropFewItems, dropRareDrop, entityLivingBaseFall, entityLivingOnDeath, func_110142_aN, func_110146_f, func_142015_aE, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getAmbientLootingModifier, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getDeathSound, getDefaultSlipperinessOnGround, getEntityAttribute, getHealth, getHealthAndExhaustionModifier, getHurtSound, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getMeleeAttackStrength, getPosition, getRNG, getRotationYawHead, getSlipperinessRelativeToBlock, getSoundPitch, getSoundVolume, getSpeedModifier, getSwingProgress, getTotalArmorValue, isAIEnabled, isChild, isEntityAlive, isEntityUndead, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, onChangedPotionEffect, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onNewPotionEffect, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, updateAITasks, updateAITick, updateArmSwingProgress, updateFallState, updatePotionEffectsMethods inherited from class net.minecraft.src.Entity
addComponent, addEntityCrashInfo, addVelocity, applyEntityCollision, attractsLightning, canAttackWithItem, canCollideWithEntity, canEntityTriggerTripwire, canRenderOnFire, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityApplyToSpawnCap, doesEntityApplyToSquidPossessionCap, doesEntityNotTriggerPressurePlate, doesNotDismountInWater, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, flagAllWatchedObjectsDirty, flingAwayFromEntity, getAir, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getComponent, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityString, getFlag, getHeadCrabSharedAttackTarget, getMaxSafePointTries, getParts, getShadowSize, getTeleportDirection, getUniqueID, getVisualBoundingBox, getXZDistanceSqToEntity, handleLavaMovement, handleWaterMovement, hasComponent, hashCode, hasHeadCrabbedSquid, hitByEntity, initComponents, interactFirst, isAffectedByMovementModifiers, isBeingRainedOn, isBurning, isEating, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInsideSuffocatingBlock, isEntityInsideSuffocatingBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isItemEntity, isOffsetPositionInLiquid, isRiding, isSecondaryTargetForSquid, isSprinting, isValidZombieSecondaryTarget, isWet, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, readFromNBT, setAir, setAngles, setEating, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
sendQueue
-
-
Constructor Details
-
EntityClientPlayerMP
public EntityClientPlayerMP(Minecraft par1Minecraft, World par2World, Session par3Session, NetClientHandler par4NetClientHandler)
-
-
Method Details
-
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityPlayer
-
heal
public void heal(float par1) Heal living entity (param: amount of half-hearts)- Overrides:
healin classEntityLivingBase
-
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityPlayer
-
sendMotionUpdates
public void sendMotionUpdates()Send updated motion and position information to the server -
dropOneItem
Called when player presses the drop item key- Overrides:
dropOneItemin classEntityPlayer
-
joinEntityItemWithWorld
Joins the passed in entity item with the world. Args: entityItem- Overrides:
joinEntityItemWithWorldin classEntityPlayer
-
sendChatMessage
Sends a chat message from the player. Args: chatMessage -
swingItem
public void swingItem()Swings the item the player is holding.- Overrides:
swingItemin classEntityLivingBase
-
respawnPlayer
public void respawnPlayer()- Overrides:
respawnPlayerin classEntityPlayer
-
damageEntity
Deals damage to the entity. If its a EntityPlayer then will take damage from the armor first and then health second with the reduced value. Args: damageAmount- Overrides:
damageEntityin classEntityPlayer
-
closeScreen
public void closeScreen()sets current screen to null (used on escape buttons of GUIs)- Overrides:
closeScreenin classEntityPlayerSP
-
func_92015_f
public void func_92015_f() -
setPlayerSPHealth
public void setPlayerSPHealth(float par1) Updates health locally.- Overrides:
setPlayerSPHealthin classEntityPlayerSP
-
addStat
Adds a value to a statistic field.- Overrides:
addStatin classEntityPlayerSP
-
incrementStat
Used by NetClientHandler.handleStatistic -
sendPlayerAbilities
public void sendPlayerAbilities()Sends the player's abilities to the server (if there is one).- Overrides:
sendPlayerAbilitiesin classEntityPlayer
-
func_110318_g
protected void func_110318_g()- Overrides:
func_110318_gin classEntityPlayerSP
-
func_110322_i
public void func_110322_i() -
setVelocity
public void setVelocity(double par1, double par3, double par5) Description copied from class:EntitySets the velocity to the args. Args: x, y, z- Overrides:
setVelocityin classEntity
-
func_142020_c
-
func_142021_k
-