Class HangingMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.HangingMock
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.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
Direct Known Subclasses:
LeashHitchMock

public class HangingMock extends EntityMock implements org.bukkit.entity.Hanging
Mock implementation of a Hanging.
See Also:
  • Constructor Details

    • HangingMock

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

    • getAttachedFace

      @NotNull public @NotNull org.bukkit.block.BlockFace getAttachedFace()
      Specified by:
      getAttachedFace in interface org.bukkit.material.Attachable
    • setFacingDirection

      public void setFacingDirection(@NotNull @NotNull org.bukkit.block.BlockFace face)
      Specified by:
      setFacingDirection in interface org.bukkit.material.Directional
    • setFacingDirection

      public boolean setFacingDirection(@NotNull @NotNull org.bukkit.block.BlockFace face, boolean force)
      Specified by:
      setFacingDirection in interface org.bukkit.entity.Hanging
    • 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 EntityMock
    • getType

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

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object