Attachable
, CommandSender
, Directional
, Entity
, Hanging
, Metadatable
, Nameable
, Permissible
, PersistentDataHolder
, ServerOperator
public interface ItemFrame extends Hanging
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
@NotNull ItemStack |
getItem() |
Get the item in this frame
|
@NotNull Rotation |
getRotation() |
Get the rotation of the frame's item
|
void |
setItem(@Nullable ItemStack item) |
Set the item in this frame
|
void |
setItem(@Nullable ItemStack item,
boolean playSound) |
Set the item in this frame
|
void |
setRotation(@NotNull Rotation rotation) |
Set the rotation of the frame's item
|
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 ItemStack getItem()
void setItem(@Nullable @Nullable ItemStack item)
item
- the new itemvoid setItem(@Nullable @Nullable ItemStack item, boolean playSound)
item
- the new itemplaySound
- whether or not to play the item placement sound@NotNull @NotNull Rotation getRotation()
void setRotation(@NotNull @NotNull Rotation rotation) throws IllegalArgumentException
rotation
- the new rotationIllegalArgumentException
- if rotation is nullCopyright © 2020. All rights reserved.