Skip to content

Commit

Permalink
Add key for item model (#2572)
Browse files Browse the repository at this point in the history
* Add key for item model

* Add a link to the wiki

* Update MODEL Javadoc
  • Loading branch information
avaruus1 authored Nov 13, 2024
1 parent 3e5a2ce commit d4641e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/spongepowered/api/data/Keys.java
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,13 @@ public final class Keys {
*/
public static final Key<Value<Ticks>> MIN_SPAWN_DELAY = Keys.key(ResourceKey.sponge("min_spawn_delay"), Ticks.class);

/**
* Location of the resource pack model for an {@link ItemStack}.
*
* @see <a href="https://minecraft.wiki/w/Model">Model</a>
*/
public static final Key<Value<ResourceKey>> MODEL = Keys.key(ResourceKey.sponge("model"), ResourceKey.class);

/**
* The moisture value of a {@link BlockTypes#FARMLAND} {@link BlockState}.
*/
Expand Down

0 comments on commit d4641e1

Please sign in to comment.