Class EntitySplashPotion

All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity, org.cloudburstmc.api.entity.Projectile, org.cloudburstmc.api.entity.projectile.SplashPotion
Direct Known Subclasses:
EntityLingeringPotion

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

    • EntitySplashPotion

      public EntitySplashPotion(org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.projectile.SplashPotion> type, org.cloudburstmc.api.level.Location location)
  • Method Details

    • initEntity

      protected void initEntity()
      Overrides:
      initEntity in class EntityProjectile
    • 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
    • onCollideWithEntity

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

      protected void splash(org.cloudburstmc.api.entity.Entity collidedWith)
    • onUpdate

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

      public short getPotionId()
      Specified by:
      getPotionId in interface org.cloudburstmc.api.entity.projectile.SplashPotion
    • setPotionId

      public void setPotionId(int potionId)
      Specified by:
      setPotionId in interface org.cloudburstmc.api.entity.projectile.SplashPotion
    • getPotionType

      public org.cloudburstmc.api.potion.PotionType getPotionType()
      Specified by:
      getPotionType in interface org.cloudburstmc.api.entity.projectile.SplashPotion
    • setPotionType

      public void setPotionType(org.cloudburstmc.api.potion.PotionType type)
      Specified by:
      setPotionType in interface org.cloudburstmc.api.entity.projectile.SplashPotion