public interface Painting extends Hanging
Modifier and Type | Method and Description |
---|---|
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
|
setFacingDirection
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
getMetadata, hasMetadata, removeMetadata, setMetadata
getAttachedFace
getFacing, setFacingDirection
Art getArt()
boolean setArt(Art art)
art
- The new artboolean 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
.Copyright © 2014. All rights reserved.