public interface Painting extends Hanging
前往wiki了解更多
限定符和类型 | 方法和说明 |
---|---|
Art |
getArt()
获取这幅画上的画面.
|
boolean |
setArt(Art art)
设置这幅画上的画面.
|
boolean |
setArt(Art art,
boolean force)
设置这幅画的画面.
|
setFacingDirection
addPassenger, 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, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
getAttachedFace
getFacing, setFacingDirection
Art 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
重写