org.bukkit.entity
Interface Painting

All Superinterfaces:
Attachable, Directional, Entity, Hanging, Metadatable

public interface Painting
extends Hanging

Represents a Painting.


Method Summary
 Art getArt()
          Get the art on this painting
 boolean setArt(Art art)
          Set the art on this painting
 boolean setArt(Art art, boolean force)
          Set the art on this painting
 
Methods inherited from interface org.bukkit.entity.Hanging
setFacingDirection
 
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
getAttachedFace
 
Methods inherited from interface org.bukkit.material.Directional
getFacing, setFacingDirection
 

Method Detail

getArt

Art getArt()
Get the art on this painting

Returns:
The art

setArt

boolean setArt(Art art)
Set the art on this painting

Parameters:
art - The new art
Returns:
False if the new art won't fit at the painting's current location

setArt

boolean setArt(Art art,
               boolean force)
Set the art on this painting

Parameters:
art - The new art
force - If true, force the new art regardless of whether it fits at the current location Note that forcing it where it can't fit normally causes it to drop as an item unless you override this by catching the PaintingBreakEvent.
Returns:
False if force was false and the new art won't fit at the painting's current location


Copyright © 2013. All Rights Reserved.