Class EntityOtherPlayerMP

All Implemented Interfaces:
ICommandSender

public class EntityOtherPlayerMP extends AbstractClientPlayer
  • Constructor Details

    • EntityOtherPlayerMP

      public EntityOtherPlayerMP(World par1World, String par2Str)
  • Method Details

    • resetHeight

      protected void resetHeight()
      sets the players height back to normal after doing things like sleeping and dieing
      Overrides:
      resetHeight in class EntityPlayer
    • attackEntityFrom

      public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
      Called when the entity is attacked.
      Overrides:
      attackEntityFrom in class EntityPlayer
    • 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:
      setPositionAndRotation2 in class EntityLivingBase
    • onUpdate

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

      public float getShadowSize()
      Overrides:
      getShadowSize in class Entity
    • 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:
      onLivingUpdate in class EntityPlayer
    • setCurrentItemOrArmor

      public void setCurrentItemOrArmor(int par1, ItemStack par2ItemStack)
      Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot
      Overrides:
      setCurrentItemOrArmor in class EntityPlayer
    • getEyeHeight

      public float getEyeHeight()
      Overrides:
      getEyeHeight in class EntityPlayer
    • sendChatToPlayer

      public void sendChatToPlayer(ChatMessageComponent par1ChatMessageComponent)
    • canCommandSenderUseCommand

      public boolean canCommandSenderUseCommand(int par1, String par2Str)
      Returns true if the command sender is allowed to use the given command.
    • getPlayerCoordinates

      public ChunkCoordinates getPlayerCoordinates()
      Return the position for this command sender.
    • getMountedYOffset

      public double getMountedYOffset()
      Description copied from class: Entity
      Returns the Y offset from the entity's position for any entity riding this one.
      Overrides:
      getMountedYOffset in class EntityPlayer
    • getData

      public <T> T getData(DataEntry.PlayerDataEntry<T> entry)
      Specified by:
      getData in class EntityPlayer
    • setData

      public <T> void setData(DataEntry.PlayerDataEntry<T> entry, T value)
      Specified by:
      setData in class EntityPlayer