Class EntityClientPlayerMP

All Implemented Interfaces:
ICommandSender

@Environment(CLIENT) public class EntityClientPlayerMP extends EntityPlayerSP
  • Field Details

  • Constructor Details

  • Method Details

    • attackEntityFrom

      public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
      Called when the entity is attacked.
      Overrides:
      attackEntityFrom in class EntityPlayer
    • heal

      public void heal(float par1)
      Heal living entity (param: amount of half-hearts)
      Overrides:
      heal in class EntityLivingBase
    • onUpdate

      public void onUpdate()
      Called to update the entity's position/logic.
      Overrides:
      onUpdate in class EntityPlayer
    • sendMotionUpdates

      public void sendMotionUpdates()
      Send updated motion and position information to the server
    • dropOneItem

      public EntityItem dropOneItem(boolean par1)
      Called when player presses the drop item key
      Overrides:
      dropOneItem in class EntityPlayer
    • joinEntityItemWithWorld

      protected void joinEntityItemWithWorld(EntityItem par1EntityItem)
      Joins the passed in entity item with the world. Args: entityItem
      Overrides:
      joinEntityItemWithWorld in class EntityPlayer
    • sendChatMessage

      public void sendChatMessage(String par1Str)
      Sends a chat message from the player. Args: chatMessage
    • swingItem

      public void swingItem()
      Swings the item the player is holding.
      Overrides:
      swingItem in class EntityLivingBase
    • respawnPlayer

      public void respawnPlayer()
      Overrides:
      respawnPlayer in class EntityPlayer
    • damageEntity

      protected void damageEntity(DamageSource par1DamageSource, float par2)
      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:
      damageEntity in class EntityPlayer
    • closeScreen

      public void closeScreen()
      sets current screen to null (used on escape buttons of GUIs)
      Overrides:
      closeScreen in class EntityPlayerSP
    • func_92015_f

      public void func_92015_f()
    • setPlayerSPHealth

      public void setPlayerSPHealth(float par1)
      Updates health locally.
      Overrides:
      setPlayerSPHealth in class EntityPlayerSP
    • addStat

      public void addStat(StatBase par1StatBase, int par2)
      Adds a value to a statistic field.
      Overrides:
      addStat in class EntityPlayerSP
    • incrementStat

      public void incrementStat(StatBase par1StatBase, int par2)
      Used by NetClientHandler.handleStatistic
    • sendPlayerAbilities

      public void sendPlayerAbilities()
      Sends the player's abilities to the server (if there is one).
      Overrides:
      sendPlayerAbilities in class EntityPlayer
    • func_110318_g

      protected void func_110318_g()
      Overrides:
      func_110318_g in class EntityPlayerSP
    • func_110322_i

      public void func_110322_i()
    • setVelocity

      public void setVelocity(double par1, double par3, double par5)
      Description copied from class: Entity
      Sets the velocity to the args. Args: x, y, z
      Overrides:
      setVelocity in class Entity
    • func_142020_c

      public void func_142020_c(String par1Str)
    • func_142021_k

      public String func_142021_k()