Interface Hanging

All Superinterfaces:
Attachable, CommandSender, Directional, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator
All Known Subinterfaces:
ItemFrame, LeashHitch, Painting

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

    • setFacingDirection

      boolean setFacingDirection(@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.