Skip to content

Commit

Permalink
Regenerate api data (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus authored Jun 25, 2024
1 parent 6660394 commit 446aa5e
Show file tree
Hide file tree
Showing 41 changed files with 702 additions and 731 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public final class Triggers {

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

public static final DefaultedRegistryReference<Trigger<?>> KILL_MOB_NEAR_SCULK_CATALYST = Triggers.key(ResourceKey.minecraft("kill_mob_near_sculk_catalyst"));

public static final DefaultedRegistryReference<Trigger<?>> KILLED_BY_CROSSBOW = Triggers.key(ResourceKey.minecraft("killed_by_crossbow"));

public static final DefaultedRegistryReference<Trigger<?>> KILL_MOB_NEAR_SCULK_CATALYST = Triggers.key(ResourceKey.minecraft("kill_mob_near_sculk_catalyst"));

public static final DefaultedRegistryReference<Trigger<?>> LEVITATION = Triggers.key(ResourceKey.minecraft("levitation"));

public static final DefaultedRegistryReference<Trigger<?>> LIGHTNING_STRIKE = Triggers.key(ResourceKey.minecraft("lightning_strike"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* Types of rendering that can be applied to components.
*/
@RegistryScopes(scopes = RegistryScope.GAME)
public class ResolveOperations {
public final class ResolveOperations {

// @formatter:off
// SORTFIELDS:ON
Expand Down
138 changes: 69 additions & 69 deletions src/main/java/org/spongepowered/api/block/BlockTypes.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ public final class BlockEntityTypes {

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

public static final DefaultedRegistryReference<BlockEntityType> ENDER_CHEST = BlockEntityTypes.key(ResourceKey.minecraft("ender_chest"));

public static final DefaultedRegistryReference<BlockEntityType> END_GATEWAY = BlockEntityTypes.key(ResourceKey.minecraft("end_gateway"));

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

public static final DefaultedRegistryReference<BlockEntityType> ENDER_CHEST = BlockEntityTypes.key(ResourceKey.minecraft("ender_chest"));

public static final DefaultedRegistryReference<BlockEntityType> FURNACE = BlockEntityTypes.key(ResourceKey.minecraft("furnace"));

public static final DefaultedRegistryReference<BlockEntityType> HANGING_SIGN = BlockEntityTypes.key(ResourceKey.minecraft("hanging_sign"));
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/spongepowered/api/data/BlockStateKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
import org.spongepowered.api.data.type.StairShape;
import org.spongepowered.api.data.type.StructureMode;
import org.spongepowered.api.data.type.Tilt;
import org.spongepowered.api.data.type.TrialSpawnerState;
import org.spongepowered.api.data.type.VaultState;
import org.spongepowered.api.data.type.WallConnectionState;
import org.spongepowered.api.data.type.WireAttachmentType;
import org.spongepowered.api.data.value.Value;
Expand Down Expand Up @@ -210,6 +212,8 @@ public final class BlockStateKeys {

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

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

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

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

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

public static final Key<Value<TrialSpawnerState>> TRIAL_SPAWNER_STATE = BlockStateKeys.key(ResourceKey.minecraft("property/trial_spawner_state"), TrialSpawnerState.class);

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

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

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

public static final Key<Value<VaultState>> VAULT_STATE = BlockStateKeys.key(ResourceKey.minecraft("property/vault_state"), VaultState.class);

public static final Key<Value<Direction>> VERTICAL_DIRECTION = BlockStateKeys.key(ResourceKey.minecraft("property/vertical_direction"), Direction.class);

public static final Key<Value<Boolean>> WATERLOGGED = BlockStateKeys.key(ResourceKey.minecraft("property/waterlogged"), Boolean.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ public final class BannerPatternShapes {

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

public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_BOTTOM = BannerPatternShapes.key(ResourceKey.minecraft("triangle_bottom"));

public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_TOP = BannerPatternShapes.key(ResourceKey.minecraft("triangle_top"));

public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLES_BOTTOM = BannerPatternShapes.key(ResourceKey.minecraft("triangles_bottom"));

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

public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_BOTTOM = BannerPatternShapes.key(ResourceKey.minecraft("triangle_bottom"));

public static final DefaultedRegistryReference<BannerPatternShape> TRIANGLE_TOP = BannerPatternShapes.key(ResourceKey.minecraft("triangle_top"));

private BannerPatternShapes() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,37 @@
import org.spongepowered.api.ResourceKey;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.registry.DefaultedRegistryReference;
import org.spongepowered.api.registry.Registry;
import org.spongepowered.api.registry.RegistryKey;
import org.spongepowered.api.registry.RegistryScope;
import org.spongepowered.api.registry.RegistryScopes;
import org.spongepowered.api.registry.RegistryTypes;

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

public static final DefaultedRegistryReference<DripstoneSegment> TIP_MERGE = DripstoneSegments.key(ResourceKey.sponge("tip_merge"));

public static final DefaultedRegistryReference<DripstoneSegment> TIP = DripstoneSegments.key(ResourceKey.sponge("tip"));
public static final DefaultedRegistryReference<DripstoneSegment> BASE = DripstoneSegments.key(ResourceKey.sponge("base"));

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

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

public static final DefaultedRegistryReference<DripstoneSegment> BASE = DripstoneSegments.key(ResourceKey.sponge("base"));
public static final DefaultedRegistryReference<DripstoneSegment> TIP = DripstoneSegments.key(ResourceKey.sponge("tip"));

public static final DefaultedRegistryReference<DripstoneSegment> TIP_MERGE = DripstoneSegments.key(ResourceKey.sponge("tip_merge"));

private DripstoneSegments() {
}

public static Registry<DripstoneSegment> registry() {
return Sponge.game().registry(RegistryTypes.DRIPSTONE_SEGMENT);
}

private static DefaultedRegistryReference<DripstoneSegment> key(final ResourceKey location) {
return RegistryKey.of(RegistryTypes.DRIPSTONE_SEGMENT, location).asDefaultedReference(Sponge::game);
}

}
10 changes: 1 addition & 9 deletions src/main/java/org/spongepowered/api/data/type/ItemTiers.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,12 @@
import org.spongepowered.api.registry.RegistryTypes;

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

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<ItemTier> DIAMOND = ItemTiers.key(ResourceKey.sponge("diamond"));

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

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

// SORTFIELDS:OFF

// @formatter:on

private ItemTiers() {
}

Expand Down
4 changes: 0 additions & 4 deletions src/main/java/org/spongepowered/api/data/type/LlamaTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
@RegistryScopes(scopes = RegistryScope.GAME)
public final class LlamaTypes {

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

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

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

// SORTFIELDS:OFF
// @formatter:on
private LlamaTypes() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,16 @@
import org.spongepowered.api.registry.RegistryTypes;

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

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<MooshroomType> BROWN = MooshroomTypes.key(ResourceKey.sponge("brown"));

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

// SORTFIELDS:OFF

// @formatter:on

private MooshroomTypes() {
}

Expand Down
10 changes: 1 addition & 9 deletions src/main/java/org/spongepowered/api/data/type/PandaGenes.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,12 @@
import org.spongepowered.api.registry.RegistryTypes;

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

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<PandaGene> AGGRESSIVE = PandaGenes.key(ResourceKey.sponge("aggressive"));

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

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

// SORTFIELDS:OFF

// @formatter:on

private PandaGenes() {
}

Expand Down
12 changes: 2 additions & 10 deletions src/main/java/org/spongepowered/api/data/type/ParrotTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,22 @@
import org.spongepowered.api.registry.RegistryTypes;

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

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<ParrotType> BLUE = ParrotTypes.key(ResourceKey.sponge("blue"));

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

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

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

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

// SORTFIELDS:OFF

// @formatter:on

private ParrotTypes() {
}

Expand Down
20 changes: 15 additions & 5 deletions src/main/java/org/spongepowered/api/data/type/PushReactions.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,24 @@
import org.spongepowered.api.registry.RegistryScopes;
import org.spongepowered.api.registry.RegistryTypes;

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

public static final DefaultedRegistryReference<PushReaction> NORMAL = key(ResourceKey.minecraft("NORMAL"));
public static final DefaultedRegistryReference<PushReaction> DESTROY = key(ResourceKey.minecraft("DESTROY"));
public static final DefaultedRegistryReference<PushReaction> BLOCK = key(ResourceKey.minecraft("BLOCK"));
public static final DefaultedRegistryReference<PushReaction> IGNORE = key(ResourceKey.minecraft("IGNORE"));
public static final DefaultedRegistryReference<PushReaction> PUSH_ONLY = key(ResourceKey.minecraft("PUSH_ONLY"));
public static final DefaultedRegistryReference<PushReaction> BLOCK = PushReactions.key(ResourceKey.sponge("block"));

public static final DefaultedRegistryReference<PushReaction> DESTROY = PushReactions.key(ResourceKey.sponge("destroy"));

public static final DefaultedRegistryReference<PushReaction> IGNORE = PushReactions.key(ResourceKey.sponge("ignore"));

public static final DefaultedRegistryReference<PushReaction> NORMAL = PushReactions.key(ResourceKey.sponge("normal"));

public static final DefaultedRegistryReference<PushReaction> PUSH_ONLY = PushReactions.key(ResourceKey.sponge("push_only"));

private PushReactions() {
}

public static Registry<PushReaction> registry() {
return Sponge.game().registry(RegistryTypes.PUSH_REACTION);
Expand Down
16 changes: 4 additions & 12 deletions src/main/java/org/spongepowered/api/data/type/RabbitTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,25 @@
import org.spongepowered.api.registry.RegistryTypes;

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

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<RabbitType> BLACK = RabbitTypes.key(ResourceKey.sponge("black"));

public static final DefaultedRegistryReference<RabbitType> WHITE_SPLOTCHED = RabbitTypes.key(ResourceKey.sponge("white_splotched"));

public static final DefaultedRegistryReference<RabbitType> BROWN = RabbitTypes.key(ResourceKey.sponge("brown"));

public static final DefaultedRegistryReference<RabbitType> GOLD = RabbitTypes.key(ResourceKey.sponge("gold"));

public static final DefaultedRegistryReference<RabbitType> EVIL = RabbitTypes.key(ResourceKey.sponge("evil"));

public static final DefaultedRegistryReference<RabbitType> GOLD = RabbitTypes.key(ResourceKey.sponge("gold"));

public static final DefaultedRegistryReference<RabbitType> SALT = RabbitTypes.key(ResourceKey.sponge("salt"));

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

// SORTFIELDS:OFF

// @formatter:on
public static final DefaultedRegistryReference<RabbitType> WHITE_SPLOTCHED = RabbitTypes.key(ResourceKey.sponge("white_splotched"));

private RabbitTypes() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,18 @@
import org.spongepowered.api.registry.RegistryScopes;
import org.spongepowered.api.registry.RegistryTypes;

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

// @formatter:off
// SORTFIELDS:ON

public static final DefaultedRegistryReference<SculkSensorState> INACTIVE = SculkSensorStates.key(ResourceKey.sponge("inactive"));

public static final DefaultedRegistryReference<SculkSensorState> ACTIVE = SculkSensorStates.key(ResourceKey.sponge("active"));

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

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

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

}
11 changes: 3 additions & 8 deletions src/main/java/org/spongepowered/api/data/type/SpellTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@
import org.spongepowered.api.registry.RegistryScopes;
import org.spongepowered.api.registry.RegistryTypes;

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

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<SpellType> BLINDNESS = SpellTypes.key(ResourceKey.sponge("blindness"));

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

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

// SORTFIELDS:OFF

// @formatter:on

private SpellTypes() {
}

Expand Down
Loading

0 comments on commit 446aa5e

Please sign in to comment.