Skip to content

Commit 5dde2cc

Browse files
committed
feat(data): add pufferfish puffiness state key
Signed-off-by: Gabriel Harris-Rouquette <[email protected]>
1 parent 4be7a78 commit 5dde2cc

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
@@ -166,6 +166,7 @@
166166
import org.spongepowered.api.entity.living.animal.horse.llama.Llama;
167167
import org.spongepowered.api.entity.living.animal.horse.llama.TraderLlama;
168168
import org.spongepowered.api.entity.living.aquatic.Dolphin;
169+
import org.spongepowered.api.entity.living.aquatic.fish.Pufferfish;
169170
import org.spongepowered.api.entity.living.aquatic.fish.school.Salmon;
170171
import org.spongepowered.api.entity.living.aquatic.fish.school.TropicalFish;
171172
import org.spongepowered.api.entity.living.golem.IronGolem;
@@ -2768,6 +2769,12 @@ public final class Keys {
27682769
*/
27692770
public static final Key<Value<Integer>> PROFESSION_LEVEL = Keys.key(ResourceKey.sponge("profession_level"), Integer.class);
27702771

2772+
/**
2773+
* The "puffiness" state of a {@link Pufferfish}, ranges from 0 to 2 per
2774+
* the <a href="https://minecraft.wiki/w/Pufferfish#Entity_data">Minecraft Wiki</a>.
2775+
*/
2776+
public static final Key<Value<Integer>> PUFFER_FISH_PUFFINESS_STATE = Keys.key(ResourceKey.sponge("puffer_fish_size"), Integer.class);
2777+
27712778
/**
27722779
* The {@link Entity} or {@link BlockState} push reaction when a {@link Piston} pushes it.
27732780
* Readonly

0 commit comments

Comments
 (0)