类 EntityItem

所有已实现的接口:
Metadatable, Cloneable

public class EntityItem extends Entity
作者:
MagicDroidX
  • 字段详细资料

    • NETWORK_ID

      public static final int NETWORK_ID
      另请参阅:
    • owner

      protected String owner
    • thrower

      protected String thrower
    • item

      protected Item item
    • pickupDelay

      protected int pickupDelay
  • 构造器详细资料

  • 方法详细资料

    • getNetworkId

      public int getNetworkId()
      指定者:
      getNetworkId 在类中 Entity
    • getWidth

      public float getWidth()
      覆盖:
      getWidth 在类中 Entity
    • getLength

      public float getLength()
      覆盖:
      getLength 在类中 Entity
    • getHeight

      public float getHeight()
      覆盖:
      getHeight 在类中 Entity
    • getGravity

      public float getGravity()
      覆盖:
      getGravity 在类中 Entity
    • getDrag

      public float getDrag()
      覆盖:
      getDrag 在类中 Entity
    • getBaseOffset

      protected float getBaseOffset()
      覆盖:
      getBaseOffset 在类中 Entity
    • canCollide

      public boolean canCollide()
      覆盖:
      canCollide 在类中 Entity
    • initEntity

      protected void initEntity()
      覆盖:
      initEntity 在类中 Entity
    • attack

      @PowerNukkitDifference(since="1.4.0.0-PN", info="Netherite stuff is immune to fire and lava damage") public boolean attack(EntityDamageEvent source)
      覆盖:
      attack 在类中 Entity
    • onUpdate

      public boolean onUpdate(int currentTick)
      覆盖:
      onUpdate 在类中 Entity
    • setOnFire

      public void setOnFire(int seconds)
      覆盖:
      setOnFire 在类中 Entity
    • saveNBT

      public void saveNBT()
      覆盖:
      saveNBT 在类中 Entity
    • getOriginalName

      @Since("1.5.1.0-PN") @PowerNukkitOnly public String getOriginalName()
      从类复制的说明: Entity
      The name that English name of the type of this entity.
      覆盖:
      getOriginalName 在类中 Entity
    • getName

      public String getName()
      从类复制的说明: Entity
      The current name used by this entity in the name tag, or the static name if the entity don't have nametag.
      覆盖:
      getName 在类中 Entity
    • getItem

      public Item getItem()
    • canCollideWith

      public boolean canCollideWith(Entity entity)
      覆盖:
      canCollideWith 在类中 Entity
    • getPickupDelay

      public int getPickupDelay()
    • setPickupDelay

      public void setPickupDelay(int pickupDelay)
    • getOwner

      public String getOwner()
    • setOwner

      public void setOwner(String owner)
    • getThrower

      public String getThrower()
    • setThrower

      public void setThrower(String thrower)
    • createAddEntityPacket

      public DataPacket createAddEntityPacket()
      覆盖:
      createAddEntityPacket 在类中 Entity
    • doesTriggerPressurePlate

      public boolean doesTriggerPressurePlate()
      从类复制的说明: Entity
      Whether the entity can active pressure plates. Used for EntityBats only.
      覆盖:
      doesTriggerPressurePlate 在类中 Entity
      返回:
      triggers pressure plate