Package net.minecraft.src
Class EntityPlayerMP
java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityLivingBase
net.minecraft.src.EntityPlayer
net.minecraft.src.EntityPlayerMP
- All Implemented Interfaces:
ICommandSender,ICrafting
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Listentities added to this list will be packet29'd to the playerfinal ListFCNOTE: Deprecated list used by vanilla PlayerInstance and PlayerManager to track watched chunksdoubleplayer X position as seen by PlayerManagerdoubleplayer Z position as seen by PlayerManagerReference to the MinecraftServer object.intbooleanSet when a player beats the ender dragon, used to respawn the player at the spawn point while retaining inventory and XPbooleanpoor mans concurency flag, lets hope the jvm doesn't re-order the setting of this flag wrt the inventory change on the next lineThe NetServerHandler assigned to this player by the ServerConfigurationManager.The ItemInWorldManager belonging to this playerFields 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
ConstructorsConstructorDescriptionEntityPlayerMP(MinecraftServer par1MinecraftServer, World par2World, String par3Str, ItemInWorldManager par4ItemInWorldManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChatMessage(String par1Str) Add a chat message to the playervoidaddExperienceLevel(int par1) Add experience levels to this player.voidaddRawChatMessage(String message) voidvoidAdds a value to a statistic field.booleanattackEntityFrom(DamageSource par1DamageSource, float par2) Called when the entity is attacked.booleancanAttackPlayer(EntityPlayer par1EntityPlayer) booleancanCommandSenderUseCommand(int par1, String par2Str) Returns true if the command sender is allowed to use the given command.protected voidcheckForHeadDrop(DamageSource source, int iLootingModifier) voidclonePlayer(EntityPlayer par1EntityPlayer, boolean par2) Copies the values from the given player into this player if boolean par2 is true.voidCloses the container the player currently has open.voidsets current screen to null (used on escape buttons of GUIs)voiddisplayGUIAnvil(int par1, int par2, int par3) Displays the GUI for interacting with an anvil.voiddisplayGUIBeacon(TileEntityBeacon par1TileEntityBeacon) Displays the GUI for interacting with a beacon.voiddisplayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand) Displays the GUI for interacting with a brewing stand.voiddisplayGUIChest(IInventory par1IInventory) Displays the GUI for interacting with a chest inventory.voiddisplayGUIDispenser(TileEntityDispenser par1TileEntityDispenser) Displays the dipsenser GUI for the passed in dispenser entity.voiddisplayGUIEditSign(TileEntity par1TileEntity) Displays the GUI for editing a sign.voiddisplayGUIEnchantment(int par1, int par2, int par3, String par4Str) voiddisplayGUIFurnace(TileEntityFurnace par1TileEntityFurnace) Displays the furnace GUI for the passed in furnace entity.voiddisplayGUIHopper(TileEntityHopper par1TileEntityHopper) voiddisplayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper) voiddisplayGUIHorse(EntityHorse par1EntityHorse, IInventory par2IInventory) voiddisplayGUIMerchant(IMerchant par1IMerchant, String par2Str) voiddisplayGUIWorkbench(int par1, int par2, int par3) Displays the crafting GUI for a workbench.voidint<T> TgetData(DataEntry.PlayerDataEntry<T> entry) floatReturn the position for this command sender.Gets the player's IP address.intvoidmountEntity(Entity par1Entity) Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.voidprotected voidonChangedPotionEffect(PotionEffect par1PotionEffect, boolean par2) voidonCriticalHit(Entity par1Entity) Called when the player performs a critical hit on the Entity.voidonDeath(DamageSource par1DamageSource) Called when the mob's health reaches 0.voidonEnchantmentCritical(Entity par1Entity) protected voidonFinishedPotionEffect(PotionEffect par1PotionEffect) voidonItemPickup(Entity par1Entity, int par2) Called whenever an item is picked up from walking over it.protected voidUsed for when item use count runs out, ie: eating completedprotected voidonNewPotionEffect(PotionEffect par1PotionEffect) voidonStruckByLightning(EntityLightningBolt boltEntity) Called when a lightning bolt hits the entity.voidonUpdate()Called to update the entity's position/logic.voidprotected voidvoidreadEntityFromNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to read subclass entity data from NBT.voidrequestTexturePackLoad(String par1Str, int par2) on recieving this message the client (if permission is given) will download the requested texturesprotected voidsets the players height back to normal after doing things like sleeping and dieingvoidsendChatToPlayer(ChatMessageComponent par1ChatMessageComponent) voidvoidsendContainerToPlayer(Container par1Container) voidSends the player's abilities to the server (if there is one).voidsendProgressBarUpdate(Container par1Container, int par2, int par3) Sends two ints to the client-side Container.voidsendSlotContents(Container par1Container, int par2, ItemStack par3ItemStack) Sends the contents of an inventory slot to the client-side Container.<T> voidsetData(DataEntry.PlayerDataEntry<T> entry, T value) voidsetEntityActionState(float par1, float par2, boolean par3, boolean par4) voidsetGameType(EnumGameType par1EnumGameType) Sets the player's game mode and sends it to them.voidsetItemInUse(ItemStack par1ItemStack, int par2) sets the itemInUse when the use item button is clicked.voidthis function is called when a players inventory is sent to him, lastHealth is updated on any dimension transitions, then reset.voidsetPositionAndUpdate(double par1, double par3, double par5) Move the entity to the coordinates informed, but keep yaw/pitch values.voidsetTimeOfLastSpawnAssignment(long timeOfLastSpawnAssignment) sleepInBedAt(int par1, int par2, int par3) Attempts to have the player sleep in a bed at the specified location.voidtravelToDimension(int par1) Teleports the entity to another dimension.voidupdateClientInfo(Packet204ClientInfo par1Packet204ClientInfo) voidupdateCraftingInventory(Container par1Container, List par2List) protected voidupdateFallState(double par1, boolean par3) Takes in the distance the entity has fallen this tick and whether its on the ground to update the fall distance and deal fall damage if landing on the ground.voidupdateFlyingState(double par1, boolean par3) likeUpdateFallState, but called from updateFlyingState, rather than moveEntityprotected voidvoidupdates item held by mousevoidwakeUpPlayer(boolean par1, boolean par2, boolean par3) Wake up the player if they're sleeping.voidwriteEntityToNBT(NBTTagCompound par1NBTTagCompound) (abstract) Protected helper method to write subclass entity data to NBT.Methods inherited from class net.minecraft.src.EntityPlayer
addExhaustion, addExhaustionForJump, addExhaustionWithoutVisualFeedback, addExperience, addHarvestBlockExhaustion, addMovementStat, addScore, addStackToCurrentHeldStackIfEmpty, addToPlayerScore, appliesConstantForceWhenRidingBoat, applyEntityAttributes, attackTargetEntityWithCurrentItem, canDrink, canEat, canHarvestBlock, canJump, canPlayerEdit, canSwim, canTriggerWalking, clearItemInUse, damageArmor, damageEntity, decreaseAirSupply, destroyCurrentEquippedItem, detonateCarriedBlastingOil, dismountEntity, displayGUIBook, 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, 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, isLocalPlayerAndHittingBlock, isMovementBlocked, isOnLadder, isPlayer, isPlayerFullyAsleep, isPlayerHoldingSail, isPlayerSleeping, isPushedByWater, isSpawnForced, isUsingItem, isUsingSpecialKey, isValidOngoingAttackTargetForSquid, isWearingEnderSpectacles, isWearingFullSuitSoulforgedArmor, isWearingSoulforgedBoots, isWearingSoulforgedHelm, joinEntityItemWithWorld, jump, mountEntityRemote, moveEntityWithHeading, movementModifierWhenRidingBoat, onBlockedDamage, onCantConsume, onKillEntity, onLivingUpdate, playSound, playStepSound, preparePlayerToSpawn, readModDataFromNBT, recoverAirSupply, resetTimerSpeedModifier, respawnPlayer, setAbsorptionAmount, setCurrentItemOrArmor, setDead, setGloomLevel, setHasValidMagneticPointForLocation, setHideCape, setInWeb, setItemInUseCount, setMiningSpeedModifier, setScore, setSpawnChunk, setSpawnChunk, setSpawnChunksVisualization, setStrongestMagneticPointForLocationI, setStrongestMagneticPointForLocationK, setTimerSpeedModifier, setUsingSpecialKey, shouldHeal, stopUsingItem, triggerAchievement, updateEntityActionState, updateItemUse, updateMiningSpeedModifier, updateRidden, validateBoundRespawnBeacon, verifyRespawnCoordinates, writeModDataToNBT, xpBarCapMethods inherited from class net.minecraft.src.EntityLivingBase
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, canJumpMidWater, 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, onDeathUpdate, onEntityUpdate, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, swingItem, updateAITasks, updateAITick, updateArmSwingProgress, 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, isSneaking, isSprinting, isValidZombieSecondaryTarget, isWet, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, notifyOfWolfHowl, onBlockDispenserConsume, onChunkLoad, onCollideWithPlayer, onFlungBySquidTentacle, onHeadCrabbedBySquid, onKickedByAnimal, onPossessedRidingEntityDeath, outOfUpdateRangeUpdate, pushOutOfBlocks, readFromNBT, setAir, setAngles, setEating, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldExplodeBlock, shouldSetPosAfterLoading, shouldSetPositionOnLoad, toString, tryToSetFireToBlocksInContact, updateCloak, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Field Details
-
playerNetServerHandler
The NetServerHandler assigned to this player by the ServerConfigurationManager. -
mcServer
Reference to the MinecraftServer object. -
theItemInWorldManager
The ItemInWorldManager belonging to this player -
managedPosX
public double managedPosXplayer X position as seen by PlayerManager -
managedPosZ
public double managedPosZplayer Z position as seen by PlayerManager -
loadedChunks
FCNOTE: Deprecated list used by vanilla PlayerInstance and PlayerManager to track watched chunks -
destroyedItemsNetCache
entities added to this list will be packet29'd to the player -
playerInventoryBeingManipulated
public boolean playerInventoryBeingManipulatedpoor mans concurency flag, lets hope the jvm doesn't re-order the setting of this flag wrt the inventory change on the next line -
ping
public int ping -
playerConqueredTheEnd
public boolean playerConqueredTheEndSet when a player beats the ender dragon, used to respawn the player at the spawn point while retaining inventory and XP -
chunksToBeSentToClient
-
-
Constructor Details
-
EntityPlayerMP
public EntityPlayerMP(MinecraftServer par1MinecraftServer, World par2World, String par3Str, ItemInWorldManager par4ItemInWorldManager)
-
-
Method Details
-
readEntityFromNBT
(abstract) Protected helper method to read subclass entity data from NBT.- Overrides:
readEntityFromNBTin classEntityPlayer
-
writeEntityToNBT
(abstract) Protected helper method to write subclass entity data to NBT.- Overrides:
writeEntityToNBTin classEntityPlayer
-
addExperienceLevel
public void addExperienceLevel(int par1) Add experience levels to this player.- Overrides:
addExperienceLevelin classEntityPlayer
-
addSelfToInternalCraftingInventory
public void addSelfToInternalCraftingInventory() -
resetHeight
protected void resetHeight()sets the players height back to normal after doing things like sleeping and dieing- Overrides:
resetHeightin classEntityPlayer
-
getEyeHeight
public float getEyeHeight()- Overrides:
getEyeHeightin classEntityPlayer
-
onUpdate
public void onUpdate()Called to update the entity's position/logic.- Overrides:
onUpdatein classEntityPlayer
-
onUpdateEntity
public void onUpdateEntity() -
onDeath
Called when the mob's health reaches 0.- Overrides:
onDeathin classEntityPlayer
-
attackEntityFrom
Called when the entity is attacked.- Overrides:
attackEntityFromin classEntityPlayer
-
canAttackPlayer
- Overrides:
canAttackPlayerin classEntityPlayer
-
travelToDimension
public void travelToDimension(int par1) Teleports the entity to another dimension. Params: Dimension number to teleport to- Overrides:
travelToDimensionin classEntity
-
onItemPickup
Called whenever an item is picked up from walking over it. Args: pickedUpEntity, stackSize- Overrides:
onItemPickupin classEntityLivingBase
-
sleepInBedAt
Attempts to have the player sleep in a bed at the specified location.- Overrides:
sleepInBedAtin classEntityPlayer
-
wakeUpPlayer
public void wakeUpPlayer(boolean par1, boolean par2, boolean par3) Wake up the player if they're sleeping.- Overrides:
wakeUpPlayerin classEntityPlayer
-
mountEntity
Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.- Overrides:
mountEntityin classEntityPlayer
-
updateFallState
protected void updateFallState(double par1, boolean par3) Takes in the distance the entity has fallen this tick and whether its on the ground to update the fall distance and deal fall damage if landing on the ground. Args: distanceFallenThisTick, onGround- Overrides:
updateFallStatein classEntityLivingBase
-
updateFlyingState
public void updateFlyingState(double par1, boolean par3) likeUpdateFallState, but called from updateFlyingState, rather than moveEntity -
displayGUIEditSign
Displays the GUI for editing a sign. Args: tileEntitySign- Overrides:
displayGUIEditSignin classEntityPlayer
-
displayGUIWorkbench
public void displayGUIWorkbench(int par1, int par2, int par3) Displays the crafting GUI for a workbench.- Overrides:
displayGUIWorkbenchin classEntityPlayer
-
displayGUIEnchantment
- Overrides:
displayGUIEnchantmentin classEntityPlayer
-
displayGUIAnvil
public void displayGUIAnvil(int par1, int par2, int par3) Displays the GUI for interacting with an anvil.- Overrides:
displayGUIAnvilin classEntityPlayer
-
displayGUIChest
Displays the GUI for interacting with a chest inventory. Args: chestInventory- Overrides:
displayGUIChestin classEntityPlayer
-
displayGUIHopper
- Overrides:
displayGUIHopperin classEntityPlayer
-
displayGUIHopperMinecart
- Overrides:
displayGUIHopperMinecartin classEntityPlayer
-
displayGUIFurnace
Displays the furnace GUI for the passed in furnace entity. Args: tileEntityFurnace- Overrides:
displayGUIFurnacein classEntityPlayer
-
displayGUIDispenser
Displays the dipsenser GUI for the passed in dispenser entity. Args: TileEntityDispenser- Overrides:
displayGUIDispenserin classEntityPlayer
-
displayGUIBrewingStand
Displays the GUI for interacting with a brewing stand.- Overrides:
displayGUIBrewingStandin classEntityPlayer
-
displayGUIBeacon
Displays the GUI for interacting with a beacon.- Overrides:
displayGUIBeaconin classEntityPlayer
-
displayGUIMerchant
- Overrides:
displayGUIMerchantin classEntityPlayer
-
displayGUIHorse
- Overrides:
displayGUIHorsein classEntityPlayer
-
sendSlotContents
Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual contents of that slot. Args: Container, slot number, slot contents- Specified by:
sendSlotContentsin interfaceICrafting
-
sendContainerToPlayer
-
updateCraftingInventory
- Specified by:
updateCraftingInventoryin interfaceICrafting
-
sendProgressBarUpdate
Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, and enchanting level. Normally the first int identifies which variable to update, and the second contains the new value. Both are truncated to shorts in non-local SMP.- Specified by:
sendProgressBarUpdatein interfaceICrafting
-
closeScreen
public void closeScreen()sets current screen to null (used on escape buttons of GUIs)- Overrides:
closeScreenin classEntityPlayer
-
updateHeldItem
public void updateHeldItem()updates item held by mouse -
closeContainer
public void closeContainer()Closes the container the player currently has open. -
setEntityActionState
public void setEntityActionState(float par1, float par2, boolean par3, boolean par4) -
addStat
Adds a value to a statistic field.- Overrides:
addStatin classEntityPlayer
-
mountEntityAndWakeUp
public void mountEntityAndWakeUp() -
setPlayerHealthUpdated
public void setPlayerHealthUpdated()this function is called when a players inventory is sent to him, lastHealth is updated on any dimension transitions, then reset. -
addChatMessage
Add a chat message to the player- Overrides:
addChatMessagein classEntityPlayer
-
onItemUseFinish
protected void onItemUseFinish()Used for when item use count runs out, ie: eating completed- Overrides:
onItemUseFinishin classEntityPlayer
-
setItemInUse
sets the itemInUse when the use item button is clicked. Args: itemstack, int maxItemUseDuration- Overrides:
setItemInUsein classEntityPlayer
-
clonePlayer
Copies the values from the given player into this player if boolean par2 is true. Always clones Ender Chest Inventory.- Overrides:
clonePlayerin classEntityPlayer
-
onNewPotionEffect
- Overrides:
onNewPotionEffectin classEntityLivingBase
-
onChangedPotionEffect
- Overrides:
onChangedPotionEffectin classEntityLivingBase
-
onFinishedPotionEffect
- Overrides:
onFinishedPotionEffectin classEntityLivingBase
-
setPositionAndUpdate
public void setPositionAndUpdate(double par1, double par3, double par5) Move the entity to the coordinates informed, but keep yaw/pitch values.- Overrides:
setPositionAndUpdatein classEntityLivingBase
-
onCriticalHit
Called when the player performs a critical hit on the Entity. Args: entity that was hit critically- Overrides:
onCriticalHitin classEntityPlayer
-
onEnchantmentCritical
- Overrides:
onEnchantmentCriticalin classEntityPlayer
-
sendPlayerAbilities
public void sendPlayerAbilities()Sends the player's abilities to the server (if there is one).- Overrides:
sendPlayerAbilitiesin classEntityPlayer
-
getServerForPlayer
-
setGameType
Sets the player's game mode and sends it to them.- Overrides:
setGameTypein classEntityPlayer
-
sendChatToPlayer
- Specified by:
sendChatToPlayerin interfaceICommandSender
-
canCommandSenderUseCommand
Returns true if the command sender is allowed to use the given command.- Specified by:
canCommandSenderUseCommandin interfaceICommandSender
-
getPlayerIP
Gets the player's IP address. Used in /banip. -
updateClientInfo
-
getChatVisibility
public int getChatVisibility() -
requestTexturePackLoad
on recieving this message the client (if permission is given) will download the requested textures -
getPlayerCoordinates
Return the position for this command sender.- Specified by:
getPlayerCoordinatesin interfaceICommandSender
-
checkForHeadDrop
- Overrides:
checkForHeadDropin classEntityLivingBase
-
updateGloomState
protected void updateGloomState()- Overrides:
updateGloomStatein classEntityPlayer
-
addRawChatMessage
- Overrides:
addRawChatMessagein classEntityPlayer
-
onZeroDamageAttack
protected void onZeroDamageAttack()- Overrides:
onZeroDamageAttackin classEntityPlayer
-
onStruckByLightning
Description copied from class:EntityCalled when a lightning bolt hits the entity.- Overrides:
onStruckByLightningin classEntity
-
incrementAndGetWindowID
public int incrementAndGetWindowID() -
sendChunksToClient
public void sendChunksToClient() -
setTimeOfLastSpawnAssignment
public void setTimeOfLastSpawnAssignment(long timeOfLastSpawnAssignment) - Overrides:
setTimeOfLastSpawnAssignmentin classEntityPlayer
-
func_143004_u
public void func_143004_u() -
getData
- Specified by:
getDatain classEntityPlayer
-
setData
- Specified by:
setDatain classEntityPlayer
-