Skip to content

Commit a2355ab

Browse files
zml2008ImMorpheus
authored andcommitted
Run generators
1 parent 53f97f6 commit a2355ab

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

src/main/java/org/spongepowered/api/tag/BlockTypeTags.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.spongepowered.api.Sponge;
2929
import org.spongepowered.api.block.BlockType;
3030
import org.spongepowered.api.registry.DefaultedRegistryReference;
31+
import org.spongepowered.api.registry.Registry;
3132
import org.spongepowered.api.registry.RegistryKey;
3233
import org.spongepowered.api.registry.RegistryScope;
3334
import org.spongepowered.api.registry.RegistryScopes;
@@ -123,6 +124,8 @@ public final class BlockTypeTags {
123124

124125
public static final DefaultedRegistryReference<Tag<BlockType>> ENDERMAN_HOLDABLE = BlockTypeTags.key(ResourceKey.minecraft("enderman_holdable"));
125126

127+
public static final DefaultedRegistryReference<Tag<BlockType>> FALL_DAMAGE_RESETTING = BlockTypeTags.key(ResourceKey.minecraft("fall_damage_resetting"));
128+
126129
public static final DefaultedRegistryReference<Tag<BlockType>> FEATURES_CANNOT_REPLACE = BlockTypeTags.key(ResourceKey.minecraft("features_cannot_replace"));
127130

128131
public static final DefaultedRegistryReference<Tag<BlockType>> FENCE_GATES = BlockTypeTags.key(ResourceKey.minecraft("fence_gates"));
@@ -309,6 +312,10 @@ public final class BlockTypeTags {
309312
private BlockTypeTags() {
310313
}
311314

315+
public static Registry<Tag<BlockType>> registry() {
316+
return Sponge.game().registry(RegistryTypes.BLOCK_TYPE_TAGS);
317+
}
318+
312319
private static DefaultedRegistryReference<Tag<BlockType>> key(final ResourceKey location) {
313320
return RegistryKey.of(RegistryTypes.BLOCK_TYPE_TAGS, location).asDefaultedReference(Sponge::game);
314321
}

src/main/java/org/spongepowered/api/tag/EntityTypeTags.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.spongepowered.api.Sponge;
2929
import org.spongepowered.api.entity.EntityType;
3030
import org.spongepowered.api.registry.DefaultedRegistryReference;
31+
import org.spongepowered.api.registry.Registry;
3132
import org.spongepowered.api.registry.RegistryKey;
3233
import org.spongepowered.api.registry.RegistryScope;
3334
import org.spongepowered.api.registry.RegistryScopes;
@@ -65,6 +66,10 @@ public final class EntityTypeTags {
6566
private EntityTypeTags() {
6667
}
6768

69+
public static Registry<Tag<EntityType<?>>> registry() {
70+
return Sponge.game().registry(RegistryTypes.ENTITY_TYPE_TAGS);
71+
}
72+
6873
private static DefaultedRegistryReference<Tag<EntityType<?>>> key(final ResourceKey location) {
6974
return RegistryKey.of(RegistryTypes.ENTITY_TYPE_TAGS, location).asDefaultedReference(Sponge::game);
7075
}

src/main/java/org/spongepowered/api/tag/FluidTypeTags.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.spongepowered.api.Sponge;
2929
import org.spongepowered.api.fluid.FluidType;
3030
import org.spongepowered.api.registry.DefaultedRegistryReference;
31+
import org.spongepowered.api.registry.Registry;
3132
import org.spongepowered.api.registry.RegistryKey;
3233
import org.spongepowered.api.registry.RegistryScope;
3334
import org.spongepowered.api.registry.RegistryScopes;
@@ -49,6 +50,10 @@ public final class FluidTypeTags {
4950
private FluidTypeTags() {
5051
}
5152

53+
public static Registry<Tag<FluidType>> registry() {
54+
return Sponge.game().registry(RegistryTypes.FLUID_TYPE_TAGS);
55+
}
56+
5257
private static DefaultedRegistryReference<Tag<FluidType>> key(final ResourceKey location) {
5358
return RegistryKey.of(RegistryTypes.FLUID_TYPE_TAGS, location).asDefaultedReference(Sponge::game);
5459
}

src/main/java/org/spongepowered/api/tag/ItemTypeTags.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.spongepowered.api.Sponge;
2929
import org.spongepowered.api.item.ItemType;
3030
import org.spongepowered.api.registry.DefaultedRegistryReference;
31+
import org.spongepowered.api.registry.Registry;
3132
import org.spongepowered.api.registry.RegistryKey;
3233
import org.spongepowered.api.registry.RegistryScope;
3334
import org.spongepowered.api.registry.RegistryScopes;
@@ -187,6 +188,10 @@ public final class ItemTypeTags {
187188
private ItemTypeTags() {
188189
}
189190

191+
public static Registry<Tag<ItemType>> registry() {
192+
return Sponge.game().registry(RegistryTypes.ITEM_TYPE_TAGS);
193+
}
194+
190195
private static DefaultedRegistryReference<Tag<ItemType>> key(final ResourceKey location) {
191196
return RegistryKey.of(RegistryTypes.ITEM_TYPE_TAGS, location).asDefaultedReference(Sponge::game);
192197
}

0 commit comments

Comments
 (0)