Interface Hanging

All Superinterfaces:
Attachable, net.kyori.adventure.audience.Audience, CommandSender, Directional, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ServerOperator
All Known Subinterfaces:
GlowItemFrame, ItemFrame, LeashHitch, Painting

public interface Hanging extends Entity, Attachable
Represents a Hanging entity
  • Method Details

    • setFacingDirection

      boolean setFacingDirection(@NotNull @NotNull BlockFace face, boolean force)
      Sets the direction of the hanging entity, potentially overriding rules of placement. Note that if the result is not valid the object would normally drop as an item.
      Parameters:
      face - The new direction.
      force - Whether to force it.
      Returns:
      False if force was false and there was no block for it to attach to in order to face the given direction.