Class SimpleEntityMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.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>, org.bukkit.command.CommandSender, org.bukkit.entity.Entity, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.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.