From d4641e160e878274d3ac3599d27fc6f583f33acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ossi=20Erkkil=C3=A4?= <52257907+avaruus1@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:43:35 +0200 Subject: [PATCH] Add key for item model (#2572) * Add key for item model * Add a link to the wiki * Update MODEL Javadoc --- src/main/java/org/spongepowered/api/data/Keys.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/spongepowered/api/data/Keys.java b/src/main/java/org/spongepowered/api/data/Keys.java index 03d915c140..c2f17a1635 100644 --- a/src/main/java/org/spongepowered/api/data/Keys.java +++ b/src/main/java/org/spongepowered/api/data/Keys.java @@ -2437,6 +2437,13 @@ public final class Keys { */ public static final Key> MIN_SPAWN_DELAY = Keys.key(ResourceKey.sponge("min_spawn_delay"), Ticks.class); + /** + * Location of the resource pack model for an {@link ItemStack}. + * + * @see Model + */ + public static final Key> MODEL = Keys.key(ResourceKey.sponge("model"), ResourceKey.class); + /** * The moisture value of a {@link BlockTypes#FARMLAND} {@link BlockState}. */