Interface Painting
- All Superinterfaces:
Attachable, CommandSender, Directional, Entity, Hanging, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator
Represents a Painting.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Entity
Entity.Spigot -
Method Summary
Methods inherited from interface Attachable
getAttachedFaceMethods inherited from interface CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface Directional
getFacing, setFacingDirectionMethods inherited from interface Entity
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface Hanging
setFacingDirectionMethods inherited from interface Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface Nameable
getCustomName, setCustomNameMethods inherited from interface Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface PersistentDataHolder
getPersistentDataContainerMethods inherited from interface ServerOperator
isOp, setOp
-
Method Details
-
getArt
-
setArt
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
Set the art on this painting- Parameters:
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 theHangingBreakEvent.- Returns:
- False if force was false and the new art won't fit at the painting's current location
-