Class SnowmanMock

All Implemented Interfaces:
MessageTarget, MockRangedEntity<SnowmanMock>, com.destroystokyo.paper.entity.RangedEntity, io.papermc.paper.entity.Frictional, io.papermc.paper.entity.Shearable, 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.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Snowman, 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 SnowmanMock extends GolemMock implements org.bukkit.entity.Snowman, MockRangedEntity<SnowmanMock>, io.papermc.paper.entity.Shearable
Mock implementation of a Snowman.
See Also:
  • Constructor Details

    • SnowmanMock

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

    • isDerp

      public boolean isDerp()
      Specified by:
      isDerp in interface org.bukkit.entity.Snowman
    • setDerp

      public void setDerp(boolean derpMode)
      Specified by:
      setDerp in interface org.bukkit.entity.Snowman
    • shear

      public void shear(@NotNull net.kyori.adventure.sound.Sound.Source source)
      Specified by:
      shear in interface io.papermc.paper.entity.Shearable
    • readyToBeSheared

      public boolean readyToBeSheared()
      Specified by:
      readyToBeSheared in interface io.papermc.paper.entity.Shearable
    • getAmbientSound

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

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

      public @Nullable org.bukkit.Sound getDeathSound()
      Specified by:
      getDeathSound in interface org.bukkit.entity.LivingEntity
      Overrides:
      getDeathSound 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