Interface Phantom

All Superinterfaces:
Attributable, Audience, CommandSender, Damageable, Entity, Flying, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface Phantom extends Flying
Represents a phantom.
  • Method Details

    • getSize

      int getSize()
      Returns:
      The size of the phantom
    • setSize

      void setSize(int sz)
      Parameters:
      sz - The new size of the phantom.
    • getSpawningEntity

      @Nullable UUID getSpawningEntity()
      Get the UUID of the entity that caused this phantom to spawn
      Returns:
      UUID
    • shouldBurnInDay

      boolean shouldBurnInDay()
      Check if this phantom will burn in the sunlight
      Returns:
      True if phantom will burn in sunlight
    • setShouldBurnInDay

      void setShouldBurnInDay(boolean shouldBurnInDay)
      Set if this phantom should burn in the sunlight
      Parameters:
      shouldBurnInDay - True to burn in sunlight