Interface Phantom

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Damageable, Entity, Flying, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator

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