Class SimpleEntityMock

All Implemented Interfaces:
MessageTarget, 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>, CommandSender, Entity, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder

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

    • SimpleEntityMock

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

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