Skip to content

Commit

Permalink
Regenerate API data (#2470)
Browse files Browse the repository at this point in the history
* Regenerate api data

* Add ArmorMaterials generator

* Add BambooLeavesTypes generator

* Add DyeColors generator

* Add FoxTypes generator

* Add HorseColors generator

* Add HorseStyles generator

* Add InstrumentTypes generator

* Add TropicalFishShapes generator

* Add GameRules generator
  • Loading branch information
ImMorpheus authored Nov 11, 2023
1 parent c69116c commit 08791f8
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 313 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
public final class ArmorMaterials {

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<ArmorMaterial> CHAINMAIL = ArmorMaterials.key(ResourceKey.sponge("chainmail"));

public static final DefaultedRegistryReference<ArmorMaterial> DIAMOND = ArmorMaterials.key(ResourceKey.sponge("diamond"));
Expand All @@ -51,12 +49,12 @@ public final class ArmorMaterials {

public static final DefaultedRegistryReference<ArmorMaterial> LEATHER = ArmorMaterials.key(ResourceKey.sponge("leather"));

public static final DefaultedRegistryReference<ArmorMaterial> NETHERITE = ArmorMaterials.key(ResourceKey.sponge("netherite"));

public static final DefaultedRegistryReference<ArmorMaterial> TURTLE = ArmorMaterials.key(ResourceKey.sponge("turtle"));

// SORTFIELDS:OFF

// @formatter:on

private ArmorMaterials() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@
public final class BambooLeavesTypes {

// @formatter:off
public static final DefaultedRegistryReference<BambooLeavesType> LARGE = BambooLeavesTypes.key(ResourceKey.sponge("large"));

public static final DefaultedRegistryReference<BambooLeavesType> NONE = BambooLeavesTypes.key(ResourceKey.sponge("none"));

public static final DefaultedRegistryReference<BambooLeavesType> SMALL = BambooLeavesTypes.key(ResourceKey.sponge("small"));

public static final DefaultedRegistryReference<BambooLeavesType> LARGE = BambooLeavesTypes.key(ResourceKey.sponge("large"));

// @formatter:on

private BambooLeavesTypes() {
}

Expand Down
4 changes: 0 additions & 4 deletions src/main/java/org/spongepowered/api/data/type/DyeColors.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
public final class DyeColors {

// @formatter:off

// SORTFIELDS:ON

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

public static final DefaultedRegistryReference<DyeColor> BLUE = DyeColors.key(ResourceKey.sponge("blue"));
Expand Down Expand Up @@ -77,9 +75,7 @@ public final class DyeColors {
public static final DefaultedRegistryReference<DyeColor> YELLOW = DyeColors.key(ResourceKey.sponge("yellow"));

// SORTFIELDS:OFF

// @formatter:on

private DyeColors() {
}

Expand Down
4 changes: 0 additions & 4 deletions src/main/java/org/spongepowered/api/data/type/FoxTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,13 @@
public final class FoxTypes {

// @formatter:off

// SORTFIELDS:ON

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

public static final DefaultedRegistryReference<FoxType> SNOW = FoxTypes.key(ResourceKey.sponge("snow"));

// SORTFIELDS:OFF

// @formatter:on

private FoxTypes() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
public final class HorseColors {

// @formatter:off

// SORTFIELDS:ON

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

public static final DefaultedRegistryReference<HorseColor> BROWN = HorseColors.key(ResourceKey.sponge("brown"));
Expand All @@ -59,9 +57,7 @@ public final class HorseColors {
public static final DefaultedRegistryReference<HorseColor> WHITE = HorseColors.key(ResourceKey.sponge("white"));

// SORTFIELDS:OFF

// @formatter:on

private HorseColors() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,19 @@
public final class HorseStyles {

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<HorseStyle> BLACK_DOTS = HorseStyles.key(ResourceKey.sponge("black_dots"));

public static final DefaultedRegistryReference<HorseStyle> NONE = HorseStyles.key(ResourceKey.sponge("none"));

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

public static final DefaultedRegistryReference<HorseStyle> WHITE_FIELD = HorseStyles.key(ResourceKey.sponge("white_field"));

public static final DefaultedRegistryReference<HorseStyle> WHITE_DOTS = HorseStyles.key(ResourceKey.sponge("white_dots"));

// SORTFIELDS:OFF
public static final DefaultedRegistryReference<HorseStyle> WHITE_FIELD = HorseStyles.key(ResourceKey.sponge("white_field"));

// SORTFIELDS:OFF
// @formatter:on

private HorseStyles() {
}

Expand Down
22 changes: 16 additions & 6 deletions src/main/java/org/spongepowered/api/data/type/InstrumentTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@
public final class InstrumentTypes {

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<InstrumentType> BANJO = InstrumentTypes.key(ResourceKey.sponge("banjo"));

public static final DefaultedRegistryReference<InstrumentType> BASS = InstrumentTypes.key(ResourceKey.sponge("bass"));

public static final DefaultedRegistryReference<InstrumentType> BASE_DRUM = InstrumentTypes.key(ResourceKey.sponge("basedrum"));

public static final DefaultedRegistryReference<InstrumentType> BASS = InstrumentTypes.key(ResourceKey.sponge("bass"));

public static final DefaultedRegistryReference<InstrumentType> BELL = InstrumentTypes.key(ResourceKey.sponge("bell"));

public static final DefaultedRegistryReference<InstrumentType> BIT = InstrumentTypes.key(ResourceKey.sponge("bit"));
Expand All @@ -58,8 +56,14 @@ public final class InstrumentTypes {

public static final DefaultedRegistryReference<InstrumentType> COW_BELL = InstrumentTypes.key(ResourceKey.sponge("cow_bell"));

public static final DefaultedRegistryReference<InstrumentType> CREEPER = InstrumentTypes.key(ResourceKey.sponge("creeper"));

public static final DefaultedRegistryReference<InstrumentType> CUSTOM_HEAD = InstrumentTypes.key(ResourceKey.sponge("custom_head"));

public static final DefaultedRegistryReference<InstrumentType> DIDGERIDOO = InstrumentTypes.key(ResourceKey.sponge("didgeridoo"));

public static final DefaultedRegistryReference<InstrumentType> DRAGON = InstrumentTypes.key(ResourceKey.sponge("dragon"));

public static final DefaultedRegistryReference<InstrumentType> FLUTE = InstrumentTypes.key(ResourceKey.sponge("flute"));

public static final DefaultedRegistryReference<InstrumentType> GUITAR = InstrumentTypes.key(ResourceKey.sponge("guitar"));
Expand All @@ -70,16 +74,22 @@ public final class InstrumentTypes {

public static final DefaultedRegistryReference<InstrumentType> IRON_XYLOPHONE = InstrumentTypes.key(ResourceKey.sponge("iron_xylophone"));

public static final DefaultedRegistryReference<InstrumentType> PIGLIN = InstrumentTypes.key(ResourceKey.sponge("piglin"));

public static final DefaultedRegistryReference<InstrumentType> PLING = InstrumentTypes.key(ResourceKey.sponge("pling"));

public static final DefaultedRegistryReference<InstrumentType> SKELETON = InstrumentTypes.key(ResourceKey.sponge("skeleton"));

public static final DefaultedRegistryReference<InstrumentType> SNARE = InstrumentTypes.key(ResourceKey.sponge("snare"));

public static final DefaultedRegistryReference<InstrumentType> WITHER_SKELETON = InstrumentTypes.key(ResourceKey.sponge("wither_skeleton"));

public static final DefaultedRegistryReference<InstrumentType> XYLOPHONE = InstrumentTypes.key(ResourceKey.sponge("xylophone"));

// SORTFIELDS:OFF
public static final DefaultedRegistryReference<InstrumentType> ZOMBIE = InstrumentTypes.key(ResourceKey.sponge("zombie"));

// SORTFIELDS:OFF
// @formatter:on

private InstrumentTypes() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
public final class TropicalFishShapes {

// @formatter:off

// SORTFIELDS:ON

public static final DefaultedRegistryReference<TropicalFishShape> BETTY = TropicalFishShapes.key(ResourceKey.sponge("betty"));

public static final DefaultedRegistryReference<TropicalFishShape> BLOCKFISH = TropicalFishShapes.key(ResourceKey.sponge("blockfish"));
Expand All @@ -70,9 +68,7 @@ public final class TropicalFishShapes {
public static final DefaultedRegistryReference<TropicalFishShape> SUNSTREAK = TropicalFishShapes.key(ResourceKey.sponge("sunstreak"));

// SORTFIELDS:OFF

// @formatter:on

private TropicalFishShapes() {
}

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/spongepowered/api/tag/DamageTypeTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public final class DamageTypeTags {
// @formatter:off
public static final Tag<DamageType> ALWAYS_HURTS_ENDER_DRAGONS = DamageTypeTags.key(ResourceKey.minecraft("always_hurts_ender_dragons"));

public static final Tag<DamageType> ALWAYS_KILLS_ARMOR_STANDS = DamageTypeTags.key(ResourceKey.minecraft("always_kills_armor_stands"));

public static final Tag<DamageType> ALWAYS_MOST_SIGNIFICANT_FALL = DamageTypeTags.key(ResourceKey.minecraft("always_most_significant_fall"));

public static final Tag<DamageType> ALWAYS_TRIGGERS_SILVERFISH = DamageTypeTags.key(ResourceKey.minecraft("always_triggers_silverfish"));
Expand Down
Loading

0 comments on commit 08791f8

Please sign in to comment.