while some of these may of been true, they are extreme cases and cause a ton of noise to plugin developers. Use ApiStatus.Internal instead of Deprecated for actual internal API that continues to have use (internally). These do not help plugin developers if they bring moise noise than value.
62 lines
1.3 KiB
Java
62 lines
1.3 KiB
Java
package org.bukkit.entity;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/**
|
|
* Represents an item display entity.
|
|
*/
|
|
public interface ItemDisplay extends Display {
|
|
|
|
/**
|
|
* Gets the displayed item stack.
|
|
*
|
|
* @return the displayed item stack
|
|
*/
|
|
@NotNull // Paper
|
|
ItemStack getItemStack();
|
|
|
|
/**
|
|
* Sets the displayed item stack.
|
|
*
|
|
* @param item the new item stack
|
|
*/
|
|
void setItemStack(@Nullable ItemStack item);
|
|
|
|
/**
|
|
* Gets the item display transform for this entity.
|
|
*
|
|
* Defaults to {@link ItemDisplayTransform#FIXED}.
|
|
*
|
|
* @return item display transform
|
|
*/
|
|
@NotNull
|
|
ItemDisplayTransform getItemDisplayTransform();
|
|
|
|
/**
|
|
* Sets the item display transform for this entity.
|
|
*
|
|
* Defaults to {@link ItemDisplayTransform#FIXED}.
|
|
*
|
|
* @param display new display
|
|
*/
|
|
void setItemDisplayTransform(@NotNull ItemDisplayTransform display);
|
|
|
|
/**
|
|
* Represents the item model transform to be applied to the displayed item.
|
|
*/
|
|
public enum ItemDisplayTransform {
|
|
|
|
NONE,
|
|
THIRDPERSON_LEFTHAND,
|
|
THIRDPERSON_RIGHTHAND,
|
|
FIRSTPERSON_LEFTHAND,
|
|
FIRSTPERSON_RIGHTHAND,
|
|
HEAD,
|
|
GUI,
|
|
GROUND,
|
|
FIXED;
|
|
}
|
|
}
|