Class SimpleMonsterMock

All Implemented Interfaces:
MessageTarget, Frictional, 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>, Attributable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Mob, Monster, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource

public class SimpleMonsterMock extends MonsterMock implements Monster
A very simple class that allows one to create an instance of a MonsterMock when a specific type of entity is not required. This should only be used for testing code that doesn't care what type of entity it is.
See Also:
  • Constructor Details

    • SimpleMonsterMock

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

      public SimpleMonsterMock(@NotNull @NotNull ServerMock server)
      Constructs a new SimpleMonsterMock on the provided ServerMock with a random UUID.
      Parameters:
      server - The server to create the entity on.