Skip to content

Commit 446aa5e

Browse files
authored
Regenerate api data (#2521)
1 parent 6660394 commit 446aa5e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+702
-731
lines changed

src/main/java/org/spongepowered/api/advancement/criteria/trigger/Triggers.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ public final class Triggers {
9494

9595
public static final DefaultedRegistryReference<Trigger<?>> ITEM_USED_ON_BLOCK = Triggers.key(ResourceKey.minecraft("item_used_on_block"));
9696

97-
public static final DefaultedRegistryReference<Trigger<?>> KILL_MOB_NEAR_SCULK_CATALYST = Triggers.key(ResourceKey.minecraft("kill_mob_near_sculk_catalyst"));
98-
9997
public static final DefaultedRegistryReference<Trigger<?>> KILLED_BY_CROSSBOW = Triggers.key(ResourceKey.minecraft("killed_by_crossbow"));
10098

99+
public static final DefaultedRegistryReference<Trigger<?>> KILL_MOB_NEAR_SCULK_CATALYST = Triggers.key(ResourceKey.minecraft("kill_mob_near_sculk_catalyst"));
100+
101101
public static final DefaultedRegistryReference<Trigger<?>> LEVITATION = Triggers.key(ResourceKey.minecraft("levitation"));
102102

103103
public static final DefaultedRegistryReference<Trigger<?>> LIGHTNING_STRIKE = Triggers.key(ResourceKey.minecraft("lightning_strike"));

src/main/java/org/spongepowered/api/adventure/ResolveOperations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* Types of rendering that can be applied to components.
3939
*/
4040
@RegistryScopes(scopes = RegistryScope.GAME)
41-
public class ResolveOperations {
41+
public final class ResolveOperations {
4242

4343
// @formatter:off
4444
// SORTFIELDS:ON

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

+69-69
Large diffs are not rendered by default.

src/main/java/org/spongepowered/api/block/entity/BlockEntityTypes.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ public final class BlockEntityTypes {
8484

8585
public static final DefaultedRegistryReference<BlockEntityType> ENCHANTING_TABLE = BlockEntityTypes.key(ResourceKey.minecraft("enchanting_table"));
8686

87+
public static final DefaultedRegistryReference<BlockEntityType> ENDER_CHEST = BlockEntityTypes.key(ResourceKey.minecraft("ender_chest"));
88+
8789
public static final DefaultedRegistryReference<BlockEntityType> END_GATEWAY = BlockEntityTypes.key(ResourceKey.minecraft("end_gateway"));
8890

8991
public static final DefaultedRegistryReference<BlockEntityType> END_PORTAL = BlockEntityTypes.key(ResourceKey.minecraft("end_portal"));
9092

91-
public static final DefaultedRegistryReference<BlockEntityType> ENDER_CHEST = BlockEntityTypes.key(ResourceKey.minecraft("ender_chest"));
92-
9393
public static final DefaultedRegistryReference<BlockEntityType> FURNACE = BlockEntityTypes.key(ResourceKey.minecraft("furnace"));
9494

9595
public static final DefaultedRegistryReference<BlockEntityType> HANGING_SIGN = BlockEntityTypes.key(ResourceKey.minecraft("hanging_sign"));

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

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
import org.spongepowered.api.data.type.StairShape;
4343
import org.spongepowered.api.data.type.StructureMode;
4444
import org.spongepowered.api.data.type.Tilt;
45+
import org.spongepowered.api.data.type.TrialSpawnerState;
46+
import org.spongepowered.api.data.type.VaultState;
4547
import org.spongepowered.api.data.type.WallConnectionState;
4648
import org.spongepowered.api.data.type.WireAttachmentType;
4749
import org.spongepowered.api.data.value.Value;
@@ -210,6 +212,8 @@ public final class BlockStateKeys {
210212

211213
public static final Key<Value<Boolean>> OCCUPIED = BlockStateKeys.key(ResourceKey.minecraft("property/occupied"), Boolean.class);
212214

215+
public static final Key<Value<Boolean>> OMINOUS = BlockStateKeys.key(ResourceKey.minecraft("property/ominous"), Boolean.class);
216+
213217
public static final Key<Value<Boolean>> OPEN = BlockStateKeys.key(ResourceKey.minecraft("property/open"), Boolean.class);
214218

215219
public static final Key<Value<JigsawBlockOrientation>> ORIENTATION = BlockStateKeys.key(ResourceKey.minecraft("property/orientation"), JigsawBlockOrientation.class);
@@ -260,12 +264,16 @@ public final class BlockStateKeys {
260264

261265
public static final Key<Value<Tilt>> TILT = BlockStateKeys.key(ResourceKey.minecraft("property/tilt"), Tilt.class);
262266

267+
public static final Key<Value<TrialSpawnerState>> TRIAL_SPAWNER_STATE = BlockStateKeys.key(ResourceKey.minecraft("property/trial_spawner_state"), TrialSpawnerState.class);
268+
263269
public static final Key<Value<Boolean>> TRIGGERED = BlockStateKeys.key(ResourceKey.minecraft("property/triggered"), Boolean.class);
264270

265271
public static final Key<Value<Boolean>> UNSTABLE = BlockStateKeys.key(ResourceKey.minecraft("property/unstable"), Boolean.class);
266272

267273
public static final Key<Value<Boolean>> UP = BlockStateKeys.key(ResourceKey.minecraft("property/up"), Boolean.class);
268274

275+
public static final Key<Value<VaultState>> VAULT_STATE = BlockStateKeys.key(ResourceKey.minecraft("property/vault_state"), VaultState.class);
276+
269277
public static final Key<Value<Direction>> VERTICAL_DIRECTION = BlockStateKeys.key(ResourceKey.minecraft("property/vertical_direction"), Direction.class);
270278

271279
public static final Key<Value<Boolean>> WATERLOGGED = BlockStateKeys.key(ResourceKey.minecraft("property/waterlogged"), Boolean.class);

src/main/java/org/spongepowered/api/data/type/BannerPatternShapes.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ public final class BannerPatternShapes {
118118

119119
public static final DefaultedRegistryReference<BannerPatternShape> STRIPE_TOP = BannerPatternShapes.key(ResourceKey.minecraft("stripe_top"));
120120

121-
public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_BOTTOM = BannerPatternShapes.key(ResourceKey.minecraft("triangle_bottom"));
122-
123-
public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_TOP = BannerPatternShapes.key(ResourceKey.minecraft("triangle_top"));
124-
125121
public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLES_BOTTOM = BannerPatternShapes.key(ResourceKey.minecraft("triangles_bottom"));
126122

127123
public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLES_TOP = BannerPatternShapes.key(ResourceKey.minecraft("triangles_top"));
128124

125+
public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_BOTTOM = BannerPatternShapes.key(ResourceKey.minecraft("triangle_bottom"));
126+
127+
public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_TOP = BannerPatternShapes.key(ResourceKey.minecraft("triangle_top"));
128+
129129
private BannerPatternShapes() {
130130
}
131131

src/main/java/org/spongepowered/api/data/type/DripstoneSegments.java

+12-5
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,37 @@
2727
import org.spongepowered.api.ResourceKey;
2828
import org.spongepowered.api.Sponge;
2929
import org.spongepowered.api.registry.DefaultedRegistryReference;
30+
import org.spongepowered.api.registry.Registry;
3031
import org.spongepowered.api.registry.RegistryKey;
3132
import org.spongepowered.api.registry.RegistryScope;
3233
import org.spongepowered.api.registry.RegistryScopes;
3334
import org.spongepowered.api.registry.RegistryTypes;
3435

36+
/**
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
38+
*/
3539
@SuppressWarnings("unused")
3640
@RegistryScopes(scopes = RegistryScope.GAME)
3741
public final class DripstoneSegments {
3842

39-
public static final DefaultedRegistryReference<DripstoneSegment> TIP_MERGE = DripstoneSegments.key(ResourceKey.sponge("tip_merge"));
40-
41-
public static final DefaultedRegistryReference<DripstoneSegment> TIP = DripstoneSegments.key(ResourceKey.sponge("tip"));
43+
public static final DefaultedRegistryReference<DripstoneSegment> BASE = DripstoneSegments.key(ResourceKey.sponge("base"));
4244

4345
public static final DefaultedRegistryReference<DripstoneSegment> FRUSTUM = DripstoneSegments.key(ResourceKey.sponge("frustum"));
4446

4547
public static final DefaultedRegistryReference<DripstoneSegment> MIDDLE = DripstoneSegments.key(ResourceKey.sponge("middle"));
4648

47-
public static final DefaultedRegistryReference<DripstoneSegment> BASE = DripstoneSegments.key(ResourceKey.sponge("base"));
49+
public static final DefaultedRegistryReference<DripstoneSegment> TIP = DripstoneSegments.key(ResourceKey.sponge("tip"));
50+
51+
public static final DefaultedRegistryReference<DripstoneSegment> TIP_MERGE = DripstoneSegments.key(ResourceKey.sponge("tip_merge"));
4852

4953
private DripstoneSegments() {
5054
}
5155

56+
public static Registry<DripstoneSegment> registry() {
57+
return Sponge.game().registry(RegistryTypes.DRIPSTONE_SEGMENT);
58+
}
59+
5260
private static DefaultedRegistryReference<DripstoneSegment> key(final ResourceKey location) {
5361
return RegistryKey.of(RegistryTypes.DRIPSTONE_SEGMENT, location).asDefaultedReference(Sponge::game);
5462
}
55-
5663
}

src/main/java/org/spongepowered/api/data/type/ItemTiers.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,12 @@
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

3636
/**
37-
* An enumeration of vanilla {@link ItemTier}s.
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
3838
*/
3939
@SuppressWarnings("unused")
4040
@RegistryScopes(scopes = RegistryScope.GAME)
4141
public final class ItemTiers {
4242

43-
// @formatter:off
44-
45-
// SORTFIELDS:ON
46-
4743
public static final DefaultedRegistryReference<ItemTier> DIAMOND = ItemTiers.key(ResourceKey.sponge("diamond"));
4844

4945
public static final DefaultedRegistryReference<ItemTier> GOLD = ItemTiers.key(ResourceKey.sponge("gold"));
@@ -56,10 +52,6 @@ public final class ItemTiers {
5652

5753
public static final DefaultedRegistryReference<ItemTier> WOOD = ItemTiers.key(ResourceKey.sponge("wood"));
5854

59-
// SORTFIELDS:OFF
60-
61-
// @formatter:on
62-
6355
private ItemTiers() {
6456
}
6557

src/main/java/org/spongepowered/api/data/type/LlamaTypes.java

-4
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
@RegistryScopes(scopes = RegistryScope.GAME)
4141
public final class LlamaTypes {
4242

43-
// @formatter:off
44-
// SORTFIELDS:ON
4543
public static final DefaultedRegistryReference<LlamaType> BROWN = LlamaTypes.key(ResourceKey.sponge("brown"));
4644

4745
public static final DefaultedRegistryReference<LlamaType> CREAMY = LlamaTypes.key(ResourceKey.sponge("creamy"));
@@ -50,8 +48,6 @@ public final class LlamaTypes {
5048

5149
public static final DefaultedRegistryReference<LlamaType> WHITE = LlamaTypes.key(ResourceKey.sponge("white"));
5250

53-
// SORTFIELDS:OFF
54-
// @formatter:on
5551
private LlamaTypes() {
5652
}
5753

src/main/java/org/spongepowered/api/data/type/MooshroomTypes.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,16 @@
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

3636
/**
37-
* An enumeration of vanilla {@link MooshroomType}s.
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
3838
*/
3939
@SuppressWarnings("unused")
4040
@RegistryScopes(scopes = RegistryScope.GAME)
4141
public final class MooshroomTypes {
4242

43-
// @formatter:off
44-
45-
// SORTFIELDS:ON
46-
4743
public static final DefaultedRegistryReference<MooshroomType> BROWN = MooshroomTypes.key(ResourceKey.sponge("brown"));
4844

4945
public static final DefaultedRegistryReference<MooshroomType> RED = MooshroomTypes.key(ResourceKey.sponge("red"));
5046

51-
// SORTFIELDS:OFF
52-
53-
// @formatter:on
54-
5547
private MooshroomTypes() {
5648
}
5749

src/main/java/org/spongepowered/api/data/type/PandaGenes.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,12 @@
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

3636
/**
37-
* An enumeration of vanilla {@link PandaGene}s.
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
3838
*/
3939
@SuppressWarnings("unused")
4040
@RegistryScopes(scopes = RegistryScope.GAME)
4141
public final class PandaGenes {
4242

43-
// @formatter:off
44-
45-
// SORTFIELDS:ON
46-
4743
public static final DefaultedRegistryReference<PandaGene> AGGRESSIVE = PandaGenes.key(ResourceKey.sponge("aggressive"));
4844

4945
public static final DefaultedRegistryReference<PandaGene> BROWN = PandaGenes.key(ResourceKey.sponge("brown"));
@@ -58,10 +54,6 @@ public final class PandaGenes {
5854

5955
public static final DefaultedRegistryReference<PandaGene> WORRIED = PandaGenes.key(ResourceKey.sponge("worried"));
6056

61-
// SORTFIELDS:OFF
62-
63-
// @formatter:on
64-
6557
private PandaGenes() {
6658
}
6759

src/main/java/org/spongepowered/api/data/type/ParrotTypes.java

+2-10
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,22 @@
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

3636
/**
37-
* An enumeration of vanilla {@link ParrotType}s.
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
3838
*/
3939
@SuppressWarnings("unused")
4040
@RegistryScopes(scopes = RegistryScope.GAME)
4141
public final class ParrotTypes {
4242

43-
// @formatter:off
44-
45-
// SORTFIELDS:ON
46-
4743
public static final DefaultedRegistryReference<ParrotType> BLUE = ParrotTypes.key(ResourceKey.sponge("blue"));
4844

49-
public static final DefaultedRegistryReference<ParrotType> GREY = ParrotTypes.key(ResourceKey.sponge("grey"));
45+
public static final DefaultedRegistryReference<ParrotType> GRAY = ParrotTypes.key(ResourceKey.sponge("gray"));
5046

5147
public static final DefaultedRegistryReference<ParrotType> GREEN = ParrotTypes.key(ResourceKey.sponge("green"));
5248

5349
public static final DefaultedRegistryReference<ParrotType> RED_BLUE = ParrotTypes.key(ResourceKey.sponge("red_blue"));
5450

5551
public static final DefaultedRegistryReference<ParrotType> YELLOW_BLUE = ParrotTypes.key(ResourceKey.sponge("yellow_blue"));
5652

57-
// SORTFIELDS:OFF
58-
59-
// @formatter:on
60-
6153
private ParrotTypes() {
6254
}
6355

src/main/java/org/spongepowered/api/data/type/PushReactions.java

+15-5
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,24 @@
3333
import org.spongepowered.api.registry.RegistryScopes;
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

36+
/**
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
38+
*/
3639
@RegistryScopes(scopes = RegistryScope.GAME)
3740
public final class PushReactions {
3841

39-
public static final DefaultedRegistryReference<PushReaction> NORMAL = key(ResourceKey.minecraft("NORMAL"));
40-
public static final DefaultedRegistryReference<PushReaction> DESTROY = key(ResourceKey.minecraft("DESTROY"));
41-
public static final DefaultedRegistryReference<PushReaction> BLOCK = key(ResourceKey.minecraft("BLOCK"));
42-
public static final DefaultedRegistryReference<PushReaction> IGNORE = key(ResourceKey.minecraft("IGNORE"));
43-
public static final DefaultedRegistryReference<PushReaction> PUSH_ONLY = key(ResourceKey.minecraft("PUSH_ONLY"));
42+
public static final DefaultedRegistryReference<PushReaction> BLOCK = PushReactions.key(ResourceKey.sponge("block"));
43+
44+
public static final DefaultedRegistryReference<PushReaction> DESTROY = PushReactions.key(ResourceKey.sponge("destroy"));
45+
46+
public static final DefaultedRegistryReference<PushReaction> IGNORE = PushReactions.key(ResourceKey.sponge("ignore"));
47+
48+
public static final DefaultedRegistryReference<PushReaction> NORMAL = PushReactions.key(ResourceKey.sponge("normal"));
49+
50+
public static final DefaultedRegistryReference<PushReaction> PUSH_ONLY = PushReactions.key(ResourceKey.sponge("push_only"));
51+
52+
private PushReactions() {
53+
}
4454

4555
public static Registry<PushReaction> registry() {
4656
return Sponge.game().registry(RegistryTypes.PUSH_REACTION);

src/main/java/org/spongepowered/api/data/type/RabbitTypes.java

+4-12
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,25 @@
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

3636
/**
37-
* An enumeration of vanilla {@link RabbitType}s.
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
3838
*/
3939
@SuppressWarnings("unused")
4040
@RegistryScopes(scopes = RegistryScope.GAME)
4141
public final class RabbitTypes {
4242

43-
// @formatter:off
44-
45-
// SORTFIELDS:ON
46-
4743
public static final DefaultedRegistryReference<RabbitType> BLACK = RabbitTypes.key(ResourceKey.sponge("black"));
4844

49-
public static final DefaultedRegistryReference<RabbitType> WHITE_SPLOTCHED = RabbitTypes.key(ResourceKey.sponge("white_splotched"));
50-
5145
public static final DefaultedRegistryReference<RabbitType> BROWN = RabbitTypes.key(ResourceKey.sponge("brown"));
5246

53-
public static final DefaultedRegistryReference<RabbitType> GOLD = RabbitTypes.key(ResourceKey.sponge("gold"));
54-
5547
public static final DefaultedRegistryReference<RabbitType> EVIL = RabbitTypes.key(ResourceKey.sponge("evil"));
5648

49+
public static final DefaultedRegistryReference<RabbitType> GOLD = RabbitTypes.key(ResourceKey.sponge("gold"));
50+
5751
public static final DefaultedRegistryReference<RabbitType> SALT = RabbitTypes.key(ResourceKey.sponge("salt"));
5852

5953
public static final DefaultedRegistryReference<RabbitType> WHITE = RabbitTypes.key(ResourceKey.sponge("white"));
6054

61-
// SORTFIELDS:OFF
62-
63-
// @formatter:on
55+
public static final DefaultedRegistryReference<RabbitType> WHITE_SPLOTCHED = RabbitTypes.key(ResourceKey.sponge("white_splotched"));
6456

6557
private RabbitTypes() {
6658
}

src/main/java/org/spongepowered/api/data/type/SculkSensorStates.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,18 @@
3333
import org.spongepowered.api.registry.RegistryScopes;
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

36+
/**
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
38+
*/
3639
@SuppressWarnings("unused")
3740
@RegistryScopes(scopes = RegistryScope.GAME)
3841
public final class SculkSensorStates {
3942

40-
// @formatter:off
41-
// SORTFIELDS:ON
42-
43-
public static final DefaultedRegistryReference<SculkSensorState> INACTIVE = SculkSensorStates.key(ResourceKey.sponge("inactive"));
44-
4543
public static final DefaultedRegistryReference<SculkSensorState> ACTIVE = SculkSensorStates.key(ResourceKey.sponge("active"));
4644

4745
public static final DefaultedRegistryReference<SculkSensorState> COOLDOWN = SculkSensorStates.key(ResourceKey.sponge("cooldown"));
4846

49-
// SORTFIELDS:OFF
50-
// @formatter:on
47+
public static final DefaultedRegistryReference<SculkSensorState> INACTIVE = SculkSensorStates.key(ResourceKey.sponge("inactive"));
5148

5249
private SculkSensorStates() {
5350
}
@@ -59,5 +56,4 @@ public static Registry<SculkSensorState> registry() {
5956
private static DefaultedRegistryReference<SculkSensorState> key(final ResourceKey location) {
6057
return RegistryKey.of(RegistryTypes.SCULK_SENSOR_STATE, location).asDefaultedReference(Sponge::game);
6158
}
62-
6359
}

src/main/java/org/spongepowered/api/data/type/SpellTypes.java

+3-8
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@
3333
import org.spongepowered.api.registry.RegistryScopes;
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

36+
/**
37+
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
38+
*/
3639
@SuppressWarnings("unused")
3740
@RegistryScopes(scopes = RegistryScope.GAME)
3841
public final class SpellTypes {
3942

40-
// @formatter:off
41-
42-
// SORTFIELDS:ON
43-
4443
public static final DefaultedRegistryReference<SpellType> BLINDNESS = SpellTypes.key(ResourceKey.sponge("blindness"));
4544

4645
public static final DefaultedRegistryReference<SpellType> DISAPPEAR = SpellTypes.key(ResourceKey.sponge("disappear"));
@@ -53,10 +52,6 @@ public final class SpellTypes {
5352

5453
public static final DefaultedRegistryReference<SpellType> WOLOLO = SpellTypes.key(ResourceKey.sponge("wololo"));
5554

56-
// SORTFIELDS:OFF
57-
58-
// @formatter:on
59-
6055
private SpellTypes() {
6156
}
6257

0 commit comments

Comments
 (0)