Skip to content

Commit ba784ce

Browse files
committed
chore: additions for snapshot 25w02a
1 parent 0557374 commit ba784ce

File tree

16 files changed

+190
-12
lines changed

16 files changed

+190
-12
lines changed

src/main/java/org/spongepowered/api/block/BlockTypes.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,8 @@ public final class BlockTypes {
10061006

10071007
public static final DefaultedRegistryReference<BlockType> LAVA_CAULDRON = BlockTypes.key(ResourceKey.minecraft("lava_cauldron"));
10081008

1009+
public static final DefaultedRegistryReference<BlockType> LEAF_LITTER = BlockTypes.key(ResourceKey.minecraft("leaf_litter"));
1010+
10091011
public static final DefaultedRegistryReference<BlockType> LECTERN = BlockTypes.key(ResourceKey.minecraft("lectern"));
10101012

10111013
public static final DefaultedRegistryReference<BlockType> LEVER = BlockTypes.key(ResourceKey.minecraft("lever"));
@@ -2192,6 +2194,8 @@ public final class BlockTypes {
21922194

21932195
public static final DefaultedRegistryReference<BlockType> WHITE_WOOL = BlockTypes.key(ResourceKey.minecraft("white_wool"));
21942196

2197+
public static final DefaultedRegistryReference<BlockType> WILDFLOWERS = BlockTypes.key(ResourceKey.minecraft("wildflowers"));
2198+
21952199
public static final DefaultedRegistryReference<BlockType> WITHER_ROSE = BlockTypes.key(ResourceKey.minecraft("wither_rose"));
21962200

21972201
public static final DefaultedRegistryReference<BlockType> WITHER_SKELETON_SKULL = BlockTypes.key(ResourceKey.minecraft("wither_skeleton_skull"));

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.spongepowered.api.data.type.BellAttachmentType;
3131
import org.spongepowered.api.data.type.ChestAttachmentType;
3232
import org.spongepowered.api.data.type.ComparatorMode;
33+
import org.spongepowered.api.data.type.CreakingHeartState;
3334
import org.spongepowered.api.data.type.DoorHinge;
3435
import org.spongepowered.api.data.type.DripstoneSegment;
3536
import org.spongepowered.api.data.type.InstrumentType;
@@ -56,8 +57,6 @@
5657
@SuppressWarnings("unused")
5758
public final class BlockStateKeys {
5859

59-
public static final Key<Value<Boolean>> ACTIVE = BlockStateKeys.key(ResourceKey.minecraft("property/active"), Boolean.class);
60-
6160
public static final Key<Value<Integer>> AGE_1 = BlockStateKeys.key(ResourceKey.minecraft("property/age"), Integer.class);
6261

6362
public static final Key<Value<Integer>> AGE_15 = BlockStateKeys.key(ResourceKey.minecraft("property/age"), Integer.class);
@@ -118,6 +117,8 @@ public final class BlockStateKeys {
118117

119118
public static final Key<Value<Boolean>> CRAFTING = BlockStateKeys.key(ResourceKey.minecraft("property/crafting"), Boolean.class);
120119

120+
public static final Key<Value<CreakingHeartState>> CREAKING_HEART_STATE = BlockStateKeys.key(ResourceKey.minecraft("property/creaking_heart_state"), CreakingHeartState.class);
121+
121122
public static final Key<Value<Integer>> DELAY = BlockStateKeys.key(ResourceKey.minecraft("property/delay"), Integer.class);
122123

123124
public static final Key<Value<Boolean>> DISARMED = BlockStateKeys.key(ResourceKey.minecraft("property/disarmed"), Boolean.class);
@@ -242,6 +243,8 @@ public final class BlockStateKeys {
242243

243244
public static final Key<Value<SculkSensorState>> SCULK_SENSOR_PHASE = BlockStateKeys.key(ResourceKey.minecraft("property/sculk_sensor_phase"), SculkSensorState.class);
244245

246+
public static final Key<Value<Integer>> SEGMENT_AMOUNT = BlockStateKeys.key(ResourceKey.minecraft("property/segment_amount"), Integer.class);
247+
245248
public static final Key<Value<Boolean>> SHORT = BlockStateKeys.key(ResourceKey.minecraft("property/short"), Boolean.class);
246249

247250
public static final Key<Value<Boolean>> SHRIEKING = BlockStateKeys.key(ResourceKey.minecraft("property/shrieking"), Boolean.class);
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
3+
*
4+
* Copyright (c) SpongePowered <https://www.spongepowered.org>
5+
* Copyright (c) contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
package org.spongepowered.api.data.type;
26+
27+
import org.spongepowered.api.registry.DefaultedRegistryValue;
28+
import org.spongepowered.api.util.annotation.CatalogedBy;
29+
30+
31+
@CatalogedBy(CreakingHeartStates.class)
32+
public interface CreakingHeartState extends DefaultedRegistryValue, Comparable<CreakingHeartState>, StringRepresentable {
33+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
3+
*
4+
* Copyright (c) SpongePowered <https://www.spongepowered.org>
5+
* Copyright (c) contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
package org.spongepowered.api.data.type;
26+
27+
import org.spongepowered.api.ResourceKey;
28+
import org.spongepowered.api.Sponge;
29+
import org.spongepowered.api.registry.DefaultedRegistryReference;
30+
import org.spongepowered.api.registry.Registry;
31+
import org.spongepowered.api.registry.RegistryKey;
32+
import org.spongepowered.api.registry.RegistryScope;
33+
import org.spongepowered.api.registry.RegistryScopes;
34+
import org.spongepowered.api.registry.RegistryTypes;
35+
36+
/**
37+
* An enumeration of vanilla {@link CreakingHeartState}s.
38+
*/
39+
@RegistryScopes(scopes = RegistryScope.GAME)
40+
public class CreakingHeartStates {
41+
42+
public static final DefaultedRegistryReference<CreakingHeartState> AWAKE = CreakingHeartStates.key(ResourceKey.sponge("awake"));
43+
44+
public static final DefaultedRegistryReference<CreakingHeartState> DORMANT = CreakingHeartStates.key(ResourceKey.sponge("dormant"));
45+
46+
public static final DefaultedRegistryReference<CreakingHeartState> UPROOTED = CreakingHeartStates.key(ResourceKey.sponge("uprooted"));
47+
48+
private CreakingHeartStates() {
49+
}
50+
51+
public static Registry<CreakingHeartState> registry() {
52+
return Sponge.game().registry(RegistryTypes.CREAKING_HEART_STATES);
53+
}
54+
55+
private static DefaultedRegistryReference<CreakingHeartState> key(final ResourceKey location) {
56+
return RegistryKey.of(RegistryTypes.CREAKING_HEART_STATES, location).asDefaultedReference(Sponge::game);
57+
}
58+
}

src/main/java/org/spongepowered/api/effect/particle/ParticleTypes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ public final class ParticleTypes {
236236

237237
public static final DefaultedRegistryReference<ParticleType> SWEEP_ATTACK = ParticleTypes.key(ResourceKey.minecraft("sweep_attack"));
238238

239+
public static final DefaultedRegistryReference<ParticleType> TINTED_LEAVES = ParticleTypes.key(ResourceKey.minecraft("tinted_leaves"));
240+
239241
public static final DefaultedRegistryReference<ParticleType> TOTEM_OF_UNDYING = ParticleTypes.key(ResourceKey.minecraft("totem_of_undying"));
240242

241243
public static final DefaultedRegistryReference<ParticleType> TRAIL = ParticleTypes.key(ResourceKey.minecraft("trail"));

src/main/java/org/spongepowered/api/effect/sound/SoundTypes.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,10 +750,20 @@ public final class SoundTypes {
750750

751751
public static final DefaultedRegistryReference<SoundType> BLOCK_HONEY_BLOCK_STEP = SoundTypes.key(ResourceKey.minecraft("block.honey_block.step"));
752752

753+
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_BREAK = SoundTypes.key(ResourceKey.minecraft("block.iron.break"));
754+
753755
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_DOOR_CLOSE = SoundTypes.key(ResourceKey.minecraft("block.iron_door.close"));
754756

755757
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_DOOR_OPEN = SoundTypes.key(ResourceKey.minecraft("block.iron_door.open"));
756758

759+
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_FALL = SoundTypes.key(ResourceKey.minecraft("block.iron.fall"));
760+
761+
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_HIT = SoundTypes.key(ResourceKey.minecraft("block.iron.hit"));
762+
763+
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_PLACE = SoundTypes.key(ResourceKey.minecraft("block.iron.place"));
764+
765+
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_STEP = SoundTypes.key(ResourceKey.minecraft("block.iron.step"));
766+
757767
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_TRAPDOOR_CLOSE = SoundTypes.key(ResourceKey.minecraft("block.iron_trapdoor.close"));
758768

759769
public static final DefaultedRegistryReference<SoundType> BLOCK_IRON_TRAPDOOR_OPEN = SoundTypes.key(ResourceKey.minecraft("block.iron_trapdoor.open"));
@@ -788,6 +798,16 @@ public final class SoundTypes {
788798

789799
public static final DefaultedRegistryReference<SoundType> BLOCK_LAVA_POP = SoundTypes.key(ResourceKey.minecraft("block.lava.pop"));
790800

801+
public static final DefaultedRegistryReference<SoundType> BLOCK_LEAF_LITTER_BREAK = SoundTypes.key(ResourceKey.minecraft("block.leaf_litter.break"));
802+
803+
public static final DefaultedRegistryReference<SoundType> BLOCK_LEAF_LITTER_FALL = SoundTypes.key(ResourceKey.minecraft("block.leaf_litter.fall"));
804+
805+
public static final DefaultedRegistryReference<SoundType> BLOCK_LEAF_LITTER_HIT = SoundTypes.key(ResourceKey.minecraft("block.leaf_litter.hit"));
806+
807+
public static final DefaultedRegistryReference<SoundType> BLOCK_LEAF_LITTER_PLACE = SoundTypes.key(ResourceKey.minecraft("block.leaf_litter.place"));
808+
809+
public static final DefaultedRegistryReference<SoundType> BLOCK_LEAF_LITTER_STEP = SoundTypes.key(ResourceKey.minecraft("block.leaf_litter.step"));
810+
791811
public static final DefaultedRegistryReference<SoundType> BLOCK_LEVER_CLICK = SoundTypes.key(ResourceKey.minecraft("block.lever.click"));
792812

793813
public static final DefaultedRegistryReference<SoundType> BLOCK_LILY_PAD_PLACE = SoundTypes.key(ResourceKey.minecraft("block.lily_pad.place"));

src/main/java/org/spongepowered/api/item/ItemTypes.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,8 @@ public final class ItemTypes {
13281328

13291329
public static final DefaultedRegistryReference<ItemType> LEAD = ItemTypes.key(ResourceKey.minecraft("lead"));
13301330

1331+
public static final DefaultedRegistryReference<ItemType> LEAF_LITTER = ItemTypes.key(ResourceKey.minecraft("leaf_litter"));
1332+
13311333
public static final DefaultedRegistryReference<ItemType> LEATHER = ItemTypes.key(ResourceKey.minecraft("leather"));
13321334

13331335
public static final DefaultedRegistryReference<ItemType> LEATHER_BOOTS = ItemTypes.key(ResourceKey.minecraft("leather_boots"));
@@ -2738,6 +2740,8 @@ public final class ItemTypes {
27382740

27392741
public static final DefaultedRegistryReference<ItemType> WHITE_WOOL = ItemTypes.key(ResourceKey.minecraft("white_wool"));
27402742

2743+
public static final DefaultedRegistryReference<ItemType> WILDFLOWERS = ItemTypes.key(ResourceKey.minecraft("wildflowers"));
2744+
27412745
public static final DefaultedRegistryReference<ItemType> WILD_ARMOR_TRIM_SMITHING_TEMPLATE = ItemTypes.key(ResourceKey.minecraft("wild_armor_trim_smithing_template"));
27422746

27432747
public static final DefaultedRegistryReference<ItemType> WIND_CHARGE = ItemTypes.key(ResourceKey.minecraft("wind_charge"));

src/main/java/org/spongepowered/api/registry/RegistryTypes.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import org.spongepowered.api.data.type.CatType;
5555
import org.spongepowered.api.data.type.ChestAttachmentType;
5656
import org.spongepowered.api.data.type.ComparatorMode;
57+
import org.spongepowered.api.data.type.CreakingHeartState;
5758
import org.spongepowered.api.data.type.DoorHinge;
5859
import org.spongepowered.api.data.type.DripstoneSegment;
5960
import org.spongepowered.api.data.type.DyeColor;
@@ -332,6 +333,8 @@ public final class RegistryTypes {
332333

333334
public static final DefaultedRegistryType<ComparatorMode> COMPARATOR_MODE = RegistryTypes.spongeKeyInGame("comparator_mode");
334335

336+
public static final DefaultedRegistryType<CreakingHeartState> CREAKING_HEART_STATES = RegistryTypes.spongeKeyInGame("creaking_heart_state");
337+
335338
public static final DefaultedRegistryType<Criterion> CRITERION = RegistryTypes.spongeKeyInGame("criterion");
336339

337340
public static final DefaultedRegistryType<Currency> CURRENCY = RegistryTypes.spongeKeyInGame("currency");

src/main/java/org/spongepowered/api/state/BooleanStateProperties.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ public final class BooleanStateProperties {
3333
private BooleanStateProperties() {
3434
}
3535

36-
public static BooleanStateProperty property_ACTIVE() {
37-
return BooleanStateProperty.of("ACTIVE");
38-
}
39-
4036
public static BooleanStateProperty property_ATTACHED() {
4137
return BooleanStateProperty.of("ATTACHED");
4238
}

src/main/java/org/spongepowered/api/state/EnumStateProperties.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.spongepowered.api.data.type.BellAttachmentType;
3030
import org.spongepowered.api.data.type.ChestAttachmentType;
3131
import org.spongepowered.api.data.type.ComparatorMode;
32+
import org.spongepowered.api.data.type.CreakingHeartState;
3233
import org.spongepowered.api.data.type.DoorHinge;
3334
import org.spongepowered.api.data.type.DripstoneSegment;
3435
import org.spongepowered.api.data.type.InstrumentType;
@@ -81,6 +82,10 @@ public static EnumStateProperty<ChestAttachmentType> property_CHEST_TYPE() {
8182
return EnumStateProperty.of("CHEST_TYPE");
8283
}
8384

85+
public static EnumStateProperty<CreakingHeartState> property_CREAKING_HEART_STATE() {
86+
return EnumStateProperty.of("CREAKING_HEART_STATE");
87+
}
88+
8489
public static EnumStateProperty<DoorHinge> property_DOOR_HINGE() {
8590
return EnumStateProperty.of("DOOR_HINGE");
8691
}

0 commit comments

Comments
 (0)