程序包 org.bukkit.entity

# 接口 ItemDisplay

所有超级接口:
  `CommandSender`, `Display`, `Entity`, `Metadatable`, `Nameable`, `Permissible`, `PersistentDataHolder`, `ServerOperator`

public interface ItemDisplay extends Display
Represents an item display entity.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static enum`
  `ItemDisplay.ItemDisplayTransform`
  Represents the item model transform to be applied to the displayed item.

  ## 从接口继承的嵌套类/接口 org.bukkit.entity.Display

  `Display.Billboard, Display.Brightness`

  ## 从接口继承的嵌套类/接口 org.bukkit.entity.Entity

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull ItemDisplay.ItemDisplayTransform`
  `getItemDisplayTransform()`
  Gets the item display transform for this entity.
  `@Nullable ItemStack`
  `getItemStack()`
  Gets the displayed item stack.
  `void`
  `setItemDisplayTransform(@NotNull ItemDisplay.ItemDisplayTransform display)`
  Sets the item display transform for this entity.
  `void`
  `setItemStack(@Nullable ItemStack item)`
  Sets the displayed item stack.

  ### 从接口继承的方法 org.bukkit.command.CommandSender

  `getName, sendMessage, sendMessage, sendMessage, sendMessage`

  ### 从接口继承的方法 org.bukkit.entity.Display

  `getBillboard, getBrightness, getDisplayHeight, getDisplayWidth, getGlowColorOverride, getInterpolationDelay, getInterpolationDuration, getShadowRadius, getShadowStrength, getTeleportDuration, getTransformation, getViewRange, setBillboard, setBrightness, setDisplayHeight, setDisplayWidth, setGlowColorOverride, setInterpolationDelay, setInterpolationDuration, setShadowRadius, setShadowStrength, setTeleportDuration, setTransformation, setTransformationMatrix, setViewRange`

  ### 从接口继承的方法 org.bukkit.entity.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, teleport`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.Nameable

  `getCustomName, setCustomName`

  ### 从接口继承的方法 org.bukkit.permissions.Permissible

  `addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

  ### 从接口继承的方法 org.bukkit.permissions.ServerOperator

  `isOp, setOp`

- ## 方法详细资料

  - ### getItemStack

    @Nullable @Nullable ItemStack getItemStack()
    Gets the displayed item stack.
    返回:
      the displayed item stack

  - ### setItemStack

    void setItemStack(@Nullable @Nullable ItemStack item)
    Sets the displayed item stack.
    参数:
      `item` - the new item stack

  - ### getItemDisplayTransform

    @NotNull @NotNull ItemDisplay.ItemDisplayTransform getItemDisplayTransform()
    Gets the item display transform for this entity. Defaults to `ItemDisplay.ItemDisplayTransform.FIXED`.
    返回:
      item display transform

  - ### setItemDisplayTransform

    void setItemDisplayTransform(@NotNull @NotNull ItemDisplay.ItemDisplayTransform display)
    Sets the item display transform for this entity. Defaults to `ItemDisplay.ItemDisplayTransform.FIXED`.
    参数:
      `display` - new display