Class SimpleMobMock

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, Damageable, Entity, LivingEntity, Mob, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource

public class SimpleMobMock extends MobMock
A very simple class that allows one to create an instance of a MobMock 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

    • SimpleMobMock

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

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