|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Painting
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 |
---|
Art getArt()
boolean setArt(Art art)
art
- The new art
boolean setArt(Art art, boolean force)
art
- The new artforce
- 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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |