public interface Painting extends Hanging
前往wiki了解更多
| 限定符和类型 | 方法和说明 |
|---|---|
Art |
getArt()
获取这幅画上的画面.
|
boolean |
setArt(Art art)
设置这幅画上的画面.
|
boolean |
setArt(Art art,
boolean force)
设置这幅画的画面.
|
setFacingDirectionaddPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNamegetAttachedFacegetFacing, setFacingDirectionArt getArt()
原文:Get the art on this painting
boolean setArt(Art art)
原文:Set the art on this painting
art - 新的画面boolean setArt(Art art, boolean force)
原文:Set the art on this painting
art - 新的画面force - 如果这个设为true,无论当前的位置、尺寸是否适合这幅画面.注意,强制执行这可能会使这幅画掉落成物品,除非你用HangingBreakEvent重写