Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.Painting Interface Reference
Inheritance diagram for org.bukkit.entity.Painting:
org.bukkit.entity.Hanging org.bukkit.entity.Entity org.bukkit.material.Attachable org.bukkit.metadata.Metadatable org.bukkit.material.Directional

Public Member Functions

Art getArt ()
 
boolean setArt (Art art)
 
boolean setArt (Art art, boolean force)
 
- Public Member Functions inherited from org.bukkit.entity.Hanging
boolean setFacingDirection (BlockFace face, boolean force)
 
- Public Member Functions inherited from org.bukkit.entity.Entity
Location getLocation ()
 
Location getLocation (Location loc)
 
void setVelocity (Vector velocity)
 
Vector getVelocity ()
 
boolean isOnGround ()
 
World getWorld ()
 
boolean teleport (Location location)
 
boolean teleport (Location location, TeleportCause cause)
 
boolean teleport (Entity destination)
 
boolean teleport (Entity destination, TeleportCause cause)
 
List< org.bukkit.entity.EntitygetNearbyEntities (double x, double y, double z)
 
int getEntityId ()
 
int getFireTicks ()
 
int getMaxFireTicks ()
 
void setFireTicks (int ticks)
 
void remove ()
 
boolean isDead ()
 
boolean isValid ()
 
Server getServer ()
 
abstract Entity getPassenger ()
 
abstract boolean setPassenger (Entity passenger)
 
abstract boolean isEmpty ()
 
abstract boolean eject ()
 
float getFallDistance ()
 
void setFallDistance (float distance)
 
void setLastDamageCause (EntityDamageEvent event)
 
EntityDamageEvent getLastDamageCause ()
 
UUID getUniqueId ()
 
int getTicksLived ()
 
void setTicksLived (int value)
 
void playEffect (EntityEffect type)
 
EntityType getType ()
 
boolean isInsideVehicle ()
 
boolean leaveVehicle ()
 
Entity getVehicle ()
 
- Public Member Functions inherited from org.bukkit.material.Attachable
BlockFace getAttachedFace ()
 
- Public Member Functions inherited from org.bukkit.material.Directional
void setFacingDirection (BlockFace face)
 
BlockFace getFacing ()
 

Detailed Description

Represents a Painting.

Definition at line 9 of file Painting.java.

Member Function Documentation

Art org.bukkit.entity.Painting.getArt ( )

Get the art on this painting

Returns
The art
boolean org.bukkit.entity.Painting.setArt ( Art  art)

Set the art on this painting

Parameters
artThe new art
Returns
False if the new art won't fit at the painting's current location
boolean org.bukkit.entity.Painting.setArt ( Art  art,
boolean  force 
)

Set the art on this painting

Parameters
artThe new art
forceIf 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

The documentation for this interface was generated from the following file: