Class IronGolemMock

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.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.Golem, org.bukkit.entity.IronGolem, 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 IronGolemMock extends GolemMock implements org.bukkit.entity.IronGolem
Mock implementation of a IronGolem.
See Also:
  • Constructor Details

    • IronGolemMock

      public IronGolemMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new IronGolemMock 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

    • isPlayerCreated

      public boolean isPlayerCreated()
      Specified by:
      isPlayerCreated in interface org.bukkit.entity.IronGolem
    • setPlayerCreated

      public void setPlayerCreated(boolean playerCreated)
      Specified by:
      setPlayerCreated in interface org.bukkit.entity.IronGolem
    • getDeathSound

      @Nullable public @Nullable org.bukkit.Sound getDeathSound()
      Specified by:
      getDeathSound in interface org.bukkit.entity.LivingEntity
      Overrides:
      getDeathSound in class GolemMock
    • getHurtSound

      @Nullable public @Nullable org.bukkit.Sound getHurtSound()
      Specified by:
      getHurtSound in interface org.bukkit.entity.LivingEntity
      Overrides:
      getHurtSound in class GolemMock
    • getType

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