Interface Hanging

All Superinterfaces:
Attachable, Directional, Entity, Metadatable
All Known Subinterfaces:
ItemFrame, LeashHitch, Painting

public interface Hanging
extends Entity, Attachable

Represents a Hanging entity

Method Summary
 boolean setFacingDirection(BlockFace face, boolean force)
          Sets the direction of the hanging entity, potentially overriding rules of placement.
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.material.Attachable
Methods inherited from interface org.bukkit.material.Directional
getFacing, setFacingDirection

Method Detail


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

face - The new direction.
force - Whether to force it.
False if force was false and there was no block for it to attach to in order to face the given direction.

Copyright © 2014. All rights reserved.