Class EntityXpBottle

All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity, org.cloudburstmc.api.entity.Projectile, org.cloudburstmc.api.entity.projectile.XpBottle

public class EntityXpBottle extends EntityProjectile implements org.cloudburstmc.api.entity.projectile.XpBottle
Author:
xtypr
  • Constructor Details

    • EntityXpBottle

      public EntityXpBottle(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.projectile.XpBottle> type, org.cloudburstmc.api.level.Location location)
  • Method Details

    • getWidth

      public float getWidth()
      Specified by:
      getWidth in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getWidth in class BaseEntity
    • getLength

      public float getLength()
      Specified by:
      getLength in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getLength in class BaseEntity
    • getHeight

      public float getHeight()
      Specified by:
      getHeight in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getHeight in class BaseEntity
    • getGravity

      public float getGravity()
      Specified by:
      getGravity in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getGravity in class BaseEntity
    • getDrag

      public float getDrag()
      Specified by:
      getDrag in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getDrag in class BaseEntity
    • onUpdate

      public boolean onUpdate(int currentTick)
      Specified by:
      onUpdate in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      onUpdate in class EntityProjectile
    • onCollideWithEntity

      public void onCollideWithEntity(org.cloudburstmc.api.entity.Entity entity)
      Overrides:
      onCollideWithEntity in class EntityProjectile
    • dropXp

      public void dropXp()