Package net.minecraft.src
Class EntityOtherPlayerMP
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityLivingBase
net.minecraft.src.EntityPlayer
net.minecraft.src.AbstractClientPlayer
net.minecraft.src.EntityOtherPlayerMP
- All Implemented Interfaces:
ICommandSender
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.booleancanCommandSenderUseCommand(int par1, String par2Str) Returns true if the command sender is allowed to use the given command.<T> TgetData(DataEntry.PlayerDataEntry<T> entry) floatdoubleReturns the Y offset from the entity's position for any entity riding this one.Return the position for this command sender.floatvoidCalled frequently so the entity can update its state every tick as required.voidonUpdate()Called to update the entity's position/logic.protected voidsets the players height back to normal after doing things like sleeping and dieingvoidsendChatToPlayer(ChatMessageComponent par1ChatMessageComponent) voidsetCurrentItemOrArmor(int par1, ItemStack par2ItemStack) Sets the held item, or an armor slot.<T> voidsetData(DataEntry.PlayerDataEntry<T> entry, T value) voidsetPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9) Sets the position and rotation.Methods inherited from class net.minecraft.src.AbstractClientPlayer
getDownloadImageCape, getDownloadImageSkin, getLocationCape, getLocationCape, getLocationSkin, getLocationSkin, getLocationSkull, getTextureCape, getTextureSkin, setupCustomSkinMethods inherited from class net.minecraft.src.EntityPlayer
addChatMessage, addExhaustion, addExhaustionForJump, addExhaustionWithoutVisualFeedback, addExperience, addExperienceLevel, addHarvestBlockExhaustion, addMovementStat, addRawChatMessage, addScore, addStackToCurrentHeldStackIfEmpty, addStat, addToPlayerScore, appliesConstantForceWhenRidingBoat, applyEntityAttributes, attackTargetEntityWithCurrentItem, canAttackPlayer, canDrink, canEat, canHarvestBlock, canJump, canPlayerEdit, canSwim, canTriggerWalking, clearItemInUse, clonePlayer, closeScreen, damageArmor, damageEntity, decreaseAirSupply, destroyCurrentEquippedItem, detonateCarriedBlastingOil, dismountEntity, displayGUIAnvil, displayGUIBeacon, displayGUIBook, displayGUIBrewingStand, displayGUIChest, displayGUIDispenser, displayGUIEditSign, displayGUIEnchantment, displayGUIFurnace, displayGUIHopper, displayGUIHopperMinecart, displayGUIHorse, displayGUIMerchant, displayGUIWorkbench, doesStatusPreventSprinting, dropHead, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, entityInit, fall, getAbsorptionAmount, getAIMoveSpeed, getAllActiveStatusEffects, getAlwaysRenderNameTagForRender, getAnimalKickMovementMultiplier, getArmorExhaustionModifier, getArmorVisibility, getAttackDamageModifierFromEffects, getBedLocation, getBedOrientationInDegrees, getBowPullStrengthModifier, getCanBeHeadCrabbed, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getEntityName, getEntityWorld, getExperiencePoints, getFoodStats, getGloomLevel, getHeldItem, getHideCape, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getJumpingHorizontalMovementModifier, getLadderVerticalMovementModifier, getLandMovementModifier, getLastActiveItems, getMaxInPortalTime, getMeleeDamageModifier, getMiningSpeedModifier, getMiningSpeedModifierFromEffects, 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, isLocalPlayerAndHittingBlock, isMovementBlocked, isOnLadder, isPlayer, isPlayerFullyAsleep, isPlayerHoldingSail, isPlayerSleeping, isPushedByWater, isSpawnForced, isUsingItem, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isWearingEnderSpectacles, isWearingFullSuitSoulforgedArmor, isWearingSoulforgedBoots, isWearingSoulforgedHelm, joinEntityItemWithWorld, jump, mountEntity, mountEntityRemote, moveEntityWithHeading, movementModifierWhenRidingBoat, onBlockedDamage, onCantConsume, onCriticalHit, onDeath, onEnchantmentCritical, onItemUseFinish, onKillEntity, onZeroDamageAttack, playSound, playStepSound, preparePlayerToSpawn, readEntityFromNBT, readModDataFromNBT, recoverAirSupply, resetTimerSpeedModifier, respawnPlayer, sendPlayerAbilities, setAbsorptionAmount, setDead, setGameType, setGloomLevel, setHasValidMagneticPointForLocation, setHideCape, setInWeb, setItemInUse, setItemInUseCount, setMiningSpeedModifier, setScore, setSpawnChunk, setSpawnChunk, setSpawnChunksVisualization, setStrongestMagneticPointForLocationI, setStrongestMagneticPointForLocationK, setTimeOfLastSpawnAssignment, setTimerSpeedModifier, setUsingSpecialKey, shouldHeal, sleepInBedAt, stopUsingItem, triggerAchievement, updateEntityActionState, updateGloomState, 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, heal, isAIEnabled, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, isWeighted, isWeightedByHeadCrab, kill, knockBack, knockbackMagnitude, mouseOverCustomRayTrace, onChangedPotionEffect, onDeathUpdate, onEntityUpdate, onFinishedPotionEffect, onItemPickup, onNewPotionEffect, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndUpdate, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, 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, 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, isSneaking, isSprinting, isValidZombieSecondaryTarget, isWet, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onPossessedRidingEntityDeath, onStruckByLightning, outOfUpdateRangeUpdate, pushOutOfBlocks, readFromNBT, setAir, setAngles, setEating, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, travelToDimension, tryToSetFireToBlocksInContact, updateCloak, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Constructor Details
-
EntityOtherPlayerMP
-
-
Method Details
-
resetHeight
protected void resetHeight()sets the players height back to normal after doing things like sleeping and dieing- Overrides:
resetHeightin classEntityPlayer
-
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityPlayer
-
setPositionAndRotation2
public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9) Sets the position and rotation. Only difference from the other one is no bounding on the rotation. Args: posX, posY, posZ, yaw, pitch- Overrides:
setPositionAndRotation2in classEntityLivingBase
-
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityPlayer
-
getShadowSize
public float getShadowSize()- Overrides:
getShadowSizein classEntity
-
onLivingUpdate
public void onLivingUpdate()Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.- Overrides:
onLivingUpdatein classEntityPlayer
-
setCurrentItemOrArmor
Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot- Overrides:
setCurrentItemOrArmorin classEntityPlayer
-
getEyeHeight
public float getEyeHeight()- Overrides:
getEyeHeightin classEntityPlayer
-
sendChatToPlayer
-
canCommandSenderUseCommand
Returns true if the command sender is allowed to use the given command. -
getPlayerCoordinates
Return the position for this command sender. -
getMountedYOffset
public double getMountedYOffset()Description copied from class:EntityReturns the Y offset from the entity's position for any entity riding this one.- Overrides:
getMountedYOffsetin classEntityPlayer
-
getData
- Specified by:
getDatain classEntityPlayer
-
setData
- Specified by:
setDatain classEntityPlayer
-