Skip to content

Commit 23dfbfd

Browse files
authored
Add missing StringRepresentable (#2589)
1 parent 5222ce3 commit 23dfbfd

File tree

31 files changed

+53
-32
lines changed

31 files changed

+53
-32
lines changed

src/main/java/org/spongepowered/api/advancement/AdvancementType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
package org.spongepowered.api.advancement;
2626

2727
import net.kyori.adventure.text.format.TextColor;
28+
import org.spongepowered.api.data.type.StringRepresentable;
2829
import org.spongepowered.api.registry.DefaultedRegistryValue;
2930
import org.spongepowered.api.util.annotation.CatalogedBy;
3031

@@ -33,7 +34,7 @@
3334
* also the appearance in the notifications.
3435
*/
3536
@CatalogedBy(AdvancementTypes.class)
36-
public interface AdvancementType extends DefaultedRegistryValue<AdvancementType> {
37+
public interface AdvancementType extends DefaultedRegistryValue<AdvancementType>, StringRepresentable {
3738

3839
/**
3940
* Gets the {@link TextColor} of the advancement type.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* Represents a color of dye that can be used by various items and blocks.
3333
*/
3434
@CatalogedBy(DyeColors.class)
35-
public interface DyeColor extends DefaultedRegistryValue<DyeColor> {
35+
public interface DyeColor extends DefaultedRegistryValue<DyeColor>, StringRepresentable {
3636

3737
/**
3838
* Gets this dye color as a {@link Color} for easy translation.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
* Represents a type of fox a fox is.
3232
*/
3333
@CatalogedBy(FoxTypes.class)
34-
public interface FoxType extends DefaultedRegistryValue<FoxType> {
34+
public interface FoxType extends DefaultedRegistryValue<FoxType>, StringRepresentable {
3535

3636
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
* <p>The color of a horse is a genetic trait that can be inherited to a new born horse.</p>
3434
*/
3535
@CatalogedBy(HorseColors.class)
36-
public interface HorseColor extends DefaultedRegistryValue<HorseColor> {
36+
public interface HorseColor extends DefaultedRegistryValue<HorseColor>, StringRepresentable {
3737

3838
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
import org.spongepowered.api.util.annotation.CatalogedBy;
2929

3030
@CatalogedBy(LlamaTypes.class)
31-
public interface LlamaType extends DefaultedRegistryValue<LlamaType> {
31+
public interface LlamaType extends DefaultedRegistryValue<LlamaType>, StringRepresentable {
3232

3333
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
* Represents a type of mooshroom a mooshroom is.
3232
*/
3333
@CatalogedBy(MooshroomTypes.class)
34-
public interface MooshroomType extends DefaultedRegistryValue<MooshroomType> {
34+
public interface MooshroomType extends DefaultedRegistryValue<MooshroomType>, StringRepresentable {
3535

3636
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* Represents the type of panda a panda is.
3232
*/
3333
@CatalogedBy(PandaGenes.class)
34-
public interface PandaGene extends DefaultedRegistryValue<PandaGene> {
34+
public interface PandaGene extends DefaultedRegistryValue<PandaGene>, StringRepresentable {
3535

3636
boolean isRecessive();
3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
* Represents the type of a {@link Parrot}.
3333
*/
3434
@CatalogedBy(ParrotTypes.class)
35-
public interface ParrotType extends DefaultedRegistryValue<ParrotType> {
35+
public interface ParrotType extends DefaultedRegistryValue<ParrotType>, StringRepresentable {
3636

3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
* Represents a type of {@link Rabbit}.
3333
*/
3434
@CatalogedBy(RabbitTypes.class)
35-
public interface RabbitType extends DefaultedRegistryValue<RabbitType> {
35+
public interface RabbitType extends DefaultedRegistryValue<RabbitType>, StringRepresentable {
3636

3737
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* <p>A TropicalFishShape represents both a fish's appearance and size.</p>
3535
*/
3636
@CatalogedBy(TropicalFishShapes.class)
37-
public interface TropicalFishShape extends DefaultedRegistryValue<TropicalFishShape> {
37+
public interface TropicalFishShape extends DefaultedRegistryValue<TropicalFishShape>, StringRepresentable {
3838

3939
/**
4040
* Whether this shape represents a large {@link TropicalFish}.

0 commit comments

Comments
 (0)