Class LeashHitchMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
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.entity.Hanging, org.bukkit.entity.LeashHitch, org.bukkit.material.Attachable, org.bukkit.material.Directional, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder

public class LeashHitchMock extends HangingMock implements org.bukkit.entity.LeashHitch
  • Constructor Details

    • LeashHitchMock

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

    • getType

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

      @NotNull public @NotNull org.bukkit.block.BlockFace getFacing()
      Specified by:
      getFacing in interface org.bukkit.material.Directional
      Specified by:
      getFacing in interface org.bukkit.entity.Entity
      Overrides:
      getFacing in class HangingMock
    • setFacingDirection

      public boolean setFacingDirection(@NotNull @NotNull org.bukkit.block.BlockFace face, boolean force)
      Specified by:
      setFacingDirection in interface org.bukkit.entity.Hanging
      Overrides:
      setFacingDirection in class HangingMock