Update to Minecraft 1.19.4

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2023-03-15 03:30:00 +11:00
parent 86d3c9caa7
commit b76cbe36c5
32 changed files with 1379 additions and 7 deletions

View File

@@ -0,0 +1,61 @@
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
*/
@Nullable
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;
}
}