Attachable
, CommandSender
, Directional
, Entity
, Hanging
, Metadatable
, Nameable
, Permissible
, PersistentDataHolder
, ServerOperator
public interface Painting extends Hanging
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
@NotNull Art |
getArt() |
Get the art on this painting
|
boolean |
setArt(@NotNull Art art) |
Set the art on this painting
|
boolean |
setArt(@NotNull Art art,
boolean force) |
Set the art on this painting
|
getAttachedFace
getName, sendMessage, sendMessage, sendMessage, sendMessage
getFacing, setFacingDirection
addPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
setFacingDirection
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
getPersistentDataContainer
isOp, setOp
@NotNull @NotNull Art getArt()
boolean setArt(@NotNull @NotNull Art art)
art
- The new artboolean setArt(@NotNull @NotNull 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 HangingBreakEvent
.Copyright © 2020. All rights reserved.