Interface Hanging

All Superinterfaces:
Attachable, Audience, CommandSender, Directional, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ServerOperator, Sound.Emitter
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.