Class GlowPig

All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, org.bukkit.attribute.Attributable, org.bukkit.command.CommandSender, org.bukkit.entity.Ageable, org.bukkit.entity.Animals, org.bukkit.entity.Breedable, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Pig, org.bukkit.entity.Steerable, org.bukkit.entity.Vehicle, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder, org.bukkit.projectiles.ProjectileSource

public class GlowPig extends GlowAnimal implements org.bukkit.entity.Pig
  • Constructor Details

    • GlowPig

      public GlowPig(org.bukkit.Location location)
  • Method Details

    • hasSaddle

      public boolean hasSaddle()
      Specified by:
      hasSaddle in interface org.bukkit.entity.Steerable
    • setSaddle

      public void setSaddle(boolean hasSaddle)
      Specified by:
      setSaddle in interface org.bukkit.entity.Steerable
    • getSteerMaterial

      @NotNull public @NotNull org.bukkit.Material getSteerMaterial()
      Specified by:
      getSteerMaterial in interface org.bukkit.entity.Steerable
    • entityInteract

      public boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
      Overrides:
      entityInteract in class GlowAnimal
    • getHurtSound

      protected org.bukkit.Sound getHurtSound()
      Description copied from class: GlowLivingEntity
      Get the hurt sound of this entity, or null for silence.
      Overrides:
      getHurtSound in class GlowLivingEntity
      Returns:
      the hurt sound if available
    • getDeathSound

      protected org.bukkit.Sound getDeathSound()
      Description copied from class: GlowLivingEntity
      Get the death sound of this entity, or null for silence.
      Overrides:
      getDeathSound in class GlowLivingEntity
      Returns:
      the death sound if available
    • getAmbientSound

      protected org.bukkit.Sound getAmbientSound()
      Description copied from class: GlowLivingEntity
      Get the ambient sound this entity makes randomly, or null for silence.
      Overrides:
      getAmbientSound in class GlowLivingEntity
      Returns:
      the ambient sound if available
    • damage

      public void damage(double amount, org.bukkit.entity.Entity source, @NotNull @NotNull org.bukkit.event.entity.EntityDamageEvent.DamageCause cause)
      Specified by:
      damage in interface org.bukkit.entity.Damageable
      Overrides:
      damage in class GlowLivingEntity
    • getBreedingFoods

      public Set<org.bukkit.Material> getBreedingFoods()
      Description copied from class: GlowAnimal
      Returns an immutable set containing the breeding foods for the current animal.
      Overrides:
      getBreedingFoods in class GlowAnimal
      Returns:
      an immutable set containing Material
    • getBoostTicks

      public int getBoostTicks()
      Specified by:
      getBoostTicks in interface org.bukkit.entity.Steerable
    • setBoostTicks

      public void setBoostTicks(int boostTicks)
      Specified by:
      setBoostTicks in interface org.bukkit.entity.Steerable
    • getCurrentBoostTicks

      public int getCurrentBoostTicks()
      Specified by:
      getCurrentBoostTicks in interface org.bukkit.entity.Steerable
    • setCurrentBoostTicks

      public void setCurrentBoostTicks(int currentBoostTicks)
      Specified by:
      setCurrentBoostTicks in interface org.bukkit.entity.Steerable