Class CommandMinecartMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
All Implemented Interfaces:
MessageTarget, io.papermc.paper.command.CommandBlockHolder, 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.entity.Minecart, org.bukkit.entity.minecart.CommandMinecart, org.bukkit.entity.Vehicle, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder

public class CommandMinecartMock extends MinecartMock implements org.bukkit.entity.minecart.CommandMinecart
  • Constructor Details

    • CommandMinecartMock

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

    • getCommand

      @NotNull public @NotNull String getCommand()
      Specified by:
      getCommand in interface io.papermc.paper.command.CommandBlockHolder
      Specified by:
      getCommand in interface org.bukkit.entity.minecart.CommandMinecart
    • setCommand

      public void setCommand(@Nullable @Nullable String command)
      Specified by:
      setCommand in interface io.papermc.paper.command.CommandBlockHolder
      Specified by:
      setCommand in interface org.bukkit.entity.minecart.CommandMinecart
    • lastOutput

      @NotNull public @NotNull net.kyori.adventure.text.Component lastOutput()
      Specified by:
      lastOutput in interface io.papermc.paper.command.CommandBlockHolder
    • lastOutput

      public void lastOutput(@Nullable @Nullable net.kyori.adventure.text.Component lastOutput)
      Specified by:
      lastOutput in interface io.papermc.paper.command.CommandBlockHolder
    • getSuccessCount

      public int getSuccessCount()
      Specified by:
      getSuccessCount in interface io.papermc.paper.command.CommandBlockHolder
    • setSuccessCount

      public void setSuccessCount(int successCount)
      Specified by:
      setSuccessCount in interface io.papermc.paper.command.CommandBlockHolder
    • getMinecartMaterial

      @NotNull public @NotNull org.bukkit.Material getMinecartMaterial()
      Specified by:
      getMinecartMaterial in interface org.bukkit.entity.Minecart
    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock