Class HoglinMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Frictional, io.papermc.paper.persistence.PersistentDataViewHolder, net.kyori.adventure.audience.Audience, net.kyori.adventure.pointer.Pointered, net.kyori.adventure.sound.Sound.Emitter, 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.Enemy, org.bukkit.entity.Entity, org.bukkit.entity.Hoglin, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, 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 HoglinMock extends AnimalsMock implements org.bukkit.entity.Hoglin
Mock implementation of a Hoglin.
See Also:
  • Constructor Details

    • HoglinMock

      public HoglinMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new Animal on the provided ServerMock with a specified UUID.
      Parameters:
      server - The server to create the entity on.
      uuid - The UUID of the entity.
  • Method Details

    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock
    • isImmuneToZombification

      public boolean isImmuneToZombification()
      Specified by:
      isImmuneToZombification in interface org.bukkit.entity.Hoglin
    • setImmuneToZombification

      public void setImmuneToZombification(boolean isImmune)
      Specified by:
      setImmuneToZombification in interface org.bukkit.entity.Hoglin
    • isAbleToBeHunted

      public boolean isAbleToBeHunted()
      Specified by:
      isAbleToBeHunted in interface org.bukkit.entity.Hoglin
    • setIsAbleToBeHunted

      public void setIsAbleToBeHunted(boolean isHuntable)
      Specified by:
      setIsAbleToBeHunted in interface org.bukkit.entity.Hoglin
    • getConversionTime

      public int getConversionTime()
      Specified by:
      getConversionTime in interface org.bukkit.entity.Hoglin
    • setConversionTime

      public void setConversionTime(int time)
      Specified by:
      setConversionTime in interface org.bukkit.entity.Hoglin
    • isConverting

      public boolean isConverting()
      Specified by:
      isConverting in interface org.bukkit.entity.Hoglin