File tree Expand file tree Collapse file tree 7 files changed +51
-6
lines changed
src/main/java/org/spongepowered/api
entity/living/aquatic/fish/school Expand file tree Collapse file tree 7 files changed +51
-6
lines changed Original file line number Diff line number Diff line change 8585import org .spongepowered .api .data .type .PushReaction ;
8686import org .spongepowered .api .data .type .RabbitType ;
8787import org .spongepowered .api .data .type .RailDirection ;
88+ import org .spongepowered .api .data .type .SalmonSize ;
8889import org .spongepowered .api .data .type .SculkSensorState ;
8990import org .spongepowered .api .data .type .SkinPart ;
9091import org .spongepowered .api .data .type .SlabPortion ;
165166import org .spongepowered .api .entity .living .animal .horse .llama .Llama ;
166167import org .spongepowered .api .entity .living .animal .horse .llama .TraderLlama ;
167168import org .spongepowered .api .entity .living .aquatic .Dolphin ;
169+ import org .spongepowered .api .entity .living .aquatic .fish .school .Salmon ;
168170import org .spongepowered .api .entity .living .aquatic .fish .school .TropicalFish ;
169171import org .spongepowered .api .entity .living .golem .IronGolem ;
170172import org .spongepowered .api .entity .living .golem .Shulker ;
@@ -2901,6 +2903,11 @@ public final class Keys {
29012903 */
29022904 public static final Key <Value <Ticks >> ROARING_TIME = Keys .key (ResourceKey .sponge ("roaring_time" ), Ticks .class );
29032905
2906+ /**
2907+ * The {@link SalmonSize} of a {@link Salmon} entity.
2908+ */
2909+ public static final Key <Value <SalmonSize >> SALMON_SIZE = Keys .key (ResourceKey .sponge ("salmon_size" ), SalmonSize .class );
2910+
29042911 /**
29052912 * The current saturation of a {@link Player}.
29062913 *
Original file line number Diff line number Diff line change 1+ package org .spongepowered .api .data .type ;
2+
3+ import org .spongepowered .api .registry .DefaultedRegistryValue ;
4+ import org .spongepowered .api .util .annotation .CatalogedBy ;
5+
6+ @ CatalogedBy (SalmonSizes .class )
7+ public interface SalmonSize extends DefaultedRegistryValue , StringRepresentable {
8+ }
Original file line number Diff line number Diff line change 1+ package org .spongepowered .api .data .type ;
2+
3+ import org .spongepowered .api .ResourceKey ;
4+ import org .spongepowered .api .Sponge ;
5+ import org .spongepowered .api .registry .DefaultedRegistryReference ;
6+ import org .spongepowered .api .registry .RegistryKey ;
7+ import org .spongepowered .api .registry .RegistryTypes ;
8+
9+ public final class SalmonSizes {
10+
11+ public static final DefaultedRegistryReference <SalmonSize > LARGE = SalmonSizes .key (ResourceKey .sponge ("large" ));
12+
13+ public static final DefaultedRegistryReference <SalmonSize > MEDIUM = SalmonSizes .key (ResourceKey .sponge ("medium" ));
14+
15+ public static final DefaultedRegistryReference <SalmonSize > SMALL = SalmonSizes .key (ResourceKey .sponge ("small" ));
16+
17+ private static DefaultedRegistryReference <SalmonSize > key (ResourceKey key ) {
18+ return RegistryKey .of (RegistryTypes .SALMON_SIZE , key ).asDefaultedReference (Sponge ::game );
19+ }
20+ }
Original file line number Diff line number Diff line change 2424 */
2525package org .spongepowered .api .entity .living .aquatic .fish .school ;
2626
27+ import org .spongepowered .api .data .Keys ;
28+ import org .spongepowered .api .data .type .SalmonSize ;
29+ import org .spongepowered .api .data .value .Value ;
30+
2731public interface Salmon extends SchoolingFish {
32+
33+ default Value .Mutable <SalmonSize > size () {
34+ return this .requireValue (Keys .SALMON_SIZE ).asMutable ();
35+ }
36+
2837}
Original file line number Diff line number Diff line change 8282import org .spongepowered .api .data .type .RabbitType ;
8383import org .spongepowered .api .data .type .RaidStatus ;
8484import org .spongepowered .api .data .type .RailDirection ;
85+ import org .spongepowered .api .data .type .SalmonSize ;
86+ import org .spongepowered .api .data .type .SalmonSizes ;
8587import org .spongepowered .api .data .type .SculkSensorState ;
8688import org .spongepowered .api .data .type .SkinPart ;
8789import org .spongepowered .api .data .type .SlabPortion ;
@@ -476,6 +478,8 @@ public final class RegistryTypes {
476478
477479 public static final DefaultedRegistryType <Rotation > ROTATION = RegistryTypes .spongeKeyInGame ("rotation" );
478480
481+ public static final DefaultedRegistryType <SalmonSize > SALMON_SIZE = RegistryTypes .spongeKeyInGame ("salmon_size" );
482+
479483 public static final DefaultedRegistryType <SculkSensorState > SCULK_SENSOR_STATE = RegistryTypes .spongeKeyInGame ("sculk_sensor_state" );
480484
481485 public static final DefaultedRegistryType <SelectorSortAlgorithm > SELECTOR_SORT_ALGORITHM = RegistryTypes .spongeKeyInGame ("selector_sort_algorithm" );
Original file line number Diff line number Diff line change 2424 */
2525package org .spongepowered .api .world .biome ;
2626
27- import org .jetbrains .annotations .ApiStatus ;
2827import org .spongepowered .api .ResourceKey ;
2928import org .spongepowered .api .registry .Registry ;
3029import org .spongepowered .api .registry .RegistryKey ;
3130import org .spongepowered .api .registry .RegistryReference ;
3231import org .spongepowered .api .registry .RegistryScope ;
3332import org .spongepowered .api .registry .RegistryScopes ;
3433import org .spongepowered .api .registry .RegistryTypes ;
35- import org .spongepowered .api .util .annotation .Experimental ;
3634import org .spongepowered .api .world .server .ServerWorld ;
3735
3836/**
@@ -120,10 +118,6 @@ public final class Biomes {
120118
121119 public static final RegistryReference <Biome > OLD_GROWTH_SPRUCE_TAIGA = Biomes .key (ResourceKey .minecraft ("old_growth_spruce_taiga" ));
122120
123- @ Experimental ("winter_drop" )
124- @ ApiStatus .Experimental
125- public static final RegistryReference <Biome > PALE_GARDEN = Biomes .key (ResourceKey .minecraft ("pale_garden" ));
126-
127121 public static final RegistryReference <Biome > PLAINS = Biomes .key (ResourceKey .minecraft ("plains" ));
128122
129123 public static final RegistryReference <Biome > RIVER = Biomes .key (ResourceKey .minecraft ("river" ));
Original file line number Diff line number Diff line change 3131import org .spongepowered .api .registry .RegistryKey ;
3232import org .spongepowered .api .registry .RegistryTypes ;
3333
34+ /**
35+ * <!-- This file is automatically generated. Any manual changes will be overwritten. -->
36+ */
3437public final class ExplosionBlockInteractions {
3538
3639 public static final DefaultedRegistryReference <ExplosionBlockInteraction > DESTROY = ExplosionBlockInteractions .key (ResourceKey .sponge ("destroy" ));
You can’t perform that action at this time.
0 commit comments