Skip to content

Commit 22c6504

Browse files
authored
Add Keys.MAX_GROWTH_STAGE (#2511)
1 parent bdb40a3 commit 22c6504

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
@@ -2298,6 +2298,13 @@ public final class Keys {
22982298
*/
22992299
public static final Key<Value<Ticks>> MAX_FROZEN_TIME = Keys.key(ResourceKey.sponge("max_frozen_time"), Ticks.class);
23002300

2301+
/**
2302+
* The max growth stage of a {@link BlockState}.
2303+
* e.g. {@link BlockTypes#CACTUS} or {@link BlockTypes#WHEAT} etc.
2304+
* Readonly
2305+
*/
2306+
public static final Key<Value<Integer>> MAX_GROWTH_STAGE = Keys.key(ResourceKey.sponge("max_growth_stage"), Integer.class);
2307+
23012308
/**
23022309
* The maximum health of a {@link Living}.
23032310
*

0 commit comments

Comments
 (0)