Skip to content

Commit 306dd58

Browse files
committed
add missing DefaultedRegistryValue
1 parent e917590 commit 306dd58

File tree

19 files changed

+38
-19
lines changed

19 files changed

+38
-19
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
*/
2525
package org.spongepowered.api.adventure;
2626

27+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2728
import org.spongepowered.api.util.annotation.CatalogedBy;
2829

2930
/**
3031
* A type of rendering operation that can be performed on a component.
3132
*/
3233
@CatalogedBy(ResolveOperations.class)
33-
public interface ResolveOperation {
34+
public interface ResolveOperation extends DefaultedRegistryValue<ResolveOperation> {
3435

3536
}

src/main/java/org/spongepowered/api/command/parameter/managed/operator/Operator.java

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

2727
import org.spongepowered.api.command.parameter.managed.standard.ResourceKeyedValueParameters;
28+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2829
import org.spongepowered.api.util.annotation.CatalogedBy;
2930

3031
/**
@@ -33,7 +34,7 @@
3334
* @see ResourceKeyedValueParameters#OPERATOR
3435
*/
3536
@CatalogedBy(Operators.class)
36-
public interface Operator {
37+
public interface Operator extends DefaultedRegistryValue<Operator> {
3738

3839
/**
3940
* The string representation of this operator

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
*/
2525
package org.spongepowered.api.data.type;
2626

27+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2728
import org.spongepowered.api.util.annotation.CatalogedBy;
2829

2930
@CatalogedBy(FrogTypes.class)
30-
public interface FrogType {
31+
public interface FrogType extends DefaultedRegistryValue<FrogType> {
3132
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
*/
2525
package org.spongepowered.api.data.type;
2626

27+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2728
import org.spongepowered.api.util.annotation.CatalogedBy;
2829

2930
@CatalogedBy(PushReactions.class)
30-
public interface PushReaction {
31+
public interface PushReaction extends DefaultedRegistryValue<PushReaction> {
3132

3233
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
*/
2525
package org.spongepowered.api.data.type;
2626

27+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2728
import org.spongepowered.api.util.annotation.CatalogedBy;
2829

2930
@CatalogedBy(TrialSpawnerStates.class)
30-
public interface TrialSpawnerState extends Comparable<TrialSpawnerState>, StringRepresentable {
31+
public interface TrialSpawnerState extends DefaultedRegistryValue<TrialSpawnerState>, Comparable<TrialSpawnerState>, StringRepresentable {
3132

3233
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
*/
2525
package org.spongepowered.api.data.type;
2626

27+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2728
import org.spongepowered.api.util.annotation.CatalogedBy;
2829

2930
@CatalogedBy(VaultStates.class)
30-
public interface VaultState extends Comparable<VaultState>, StringRepresentable {
31+
public interface VaultState extends DefaultedRegistryValue<VaultState>, Comparable<VaultState>, StringRepresentable {
3132

3233
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@
2727
import net.kyori.adventure.sound.Sound;
2828
import org.spongepowered.api.ResourceKeyed;
2929
import org.spongepowered.api.Sponge;
30+
import org.spongepowered.api.registry.DefaultedRegistryValue;
3031
import org.spongepowered.api.util.ResourceKeyedBuilder;
3132
import org.spongepowered.api.util.annotation.CatalogedBy;
3233

3334
/**
3435
* Represents a sound that can be heard on clients.
3536
*/
3637
@CatalogedBy(SoundTypes.class)
37-
public interface SoundType extends ResourceKeyed, Sound.Type {
38+
public interface SoundType extends DefaultedRegistryValue<SoundType>, ResourceKeyed, Sound.Type {
3839

3940
/**
4041
* Creates a new {@link Builder} for building SoundTypes.

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

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

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

3031
/**
3132
* The rarity of an item.
3233
*/
3334
@CatalogedBy(ItemRarities.class)
34-
public interface ItemRarity {
35+
public interface ItemRarity extends DefaultedRegistryValue<ItemRarity> {
3536

3637
/**
3738
* Gets the {@link TextColor} used to decorate tooltips of items with this {@link ItemRarity}.

src/main/java/org/spongepowered/api/statistic/Statistic.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525
package org.spongepowered.api.statistic;
2626

27+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2728
import org.spongepowered.api.scoreboard.criteria.Criterion;
2829
import org.spongepowered.api.util.annotation.CatalogedBy;
2930

@@ -34,7 +35,7 @@
3435
* Represents some statistic in minecraft.
3536
*/
3637
@CatalogedBy(Statistics.class)
37-
public interface Statistic {
38+
public interface Statistic extends DefaultedRegistryValue<Statistic> {
3839

3940
/**
4041
* Returns the objective {@link Criterion} for this statistic.

src/main/java/org/spongepowered/api/statistic/StatisticCategory.java

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

2727
import io.leangen.geantyref.TypeToken;
28+
import org.spongepowered.api.registry.DefaultedRegistryValue;
2829
import org.spongepowered.api.util.annotation.CatalogedBy;
2930

3031
import java.util.Collection;
3132

3233
@CatalogedBy(StatisticCategories.class)
33-
public interface StatisticCategory {
34+
public interface StatisticCategory extends DefaultedRegistryValue<StatisticCategory> {
3435

3536
/**
3637
* Gets all the {@link Statistic}s that are listed

0 commit comments

Comments
 (0)