Skip to content

Commit d4641e1

Browse files
authored
Add key for item model (#2572)
* Add key for item model * Add a link to the wiki * Update MODEL Javadoc
1 parent 3e5a2ce commit d4641e1

File tree

1 file changed

+7
-0
lines changed
  • src/main/java/org/spongepowered/api/data

1 file changed

+7
-0
lines changed

src/main/java/org/spongepowered/api/data/Keys.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,13 @@ public final class Keys {
24372437
*/
24382438
public static final Key<Value<Ticks>> MIN_SPAWN_DELAY = Keys.key(ResourceKey.sponge("min_spawn_delay"), Ticks.class);
24392439

2440+
/**
2441+
* Location of the resource pack model for an {@link ItemStack}.
2442+
*
2443+
* @see <a href="https://minecraft.wiki/w/Model">Model</a>
2444+
*/
2445+
public static final Key<Value<ResourceKey>> MODEL = Keys.key(ResourceKey.sponge("model"), ResourceKey.class);
2446+
24402447
/**
24412448
* The moisture value of a {@link BlockTypes#FARMLAND} {@link BlockState}.
24422449
*/

0 commit comments

Comments
 (0)