File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
src/main/java/org/spongepowered/api/tag Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 2828import org .spongepowered .api .Sponge ;
2929import org .spongepowered .api .block .BlockType ;
3030import org .spongepowered .api .registry .DefaultedRegistryReference ;
31+ import org .spongepowered .api .registry .Registry ;
3132import org .spongepowered .api .registry .RegistryKey ;
3233import org .spongepowered .api .registry .RegistryScope ;
3334import 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 }
Original file line number Diff line number Diff line change 2828import org .spongepowered .api .Sponge ;
2929import org .spongepowered .api .entity .EntityType ;
3030import org .spongepowered .api .registry .DefaultedRegistryReference ;
31+ import org .spongepowered .api .registry .Registry ;
3132import org .spongepowered .api .registry .RegistryKey ;
3233import org .spongepowered .api .registry .RegistryScope ;
3334import 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 }
Original file line number Diff line number Diff line change 2828import org .spongepowered .api .Sponge ;
2929import org .spongepowered .api .fluid .FluidType ;
3030import org .spongepowered .api .registry .DefaultedRegistryReference ;
31+ import org .spongepowered .api .registry .Registry ;
3132import org .spongepowered .api .registry .RegistryKey ;
3233import org .spongepowered .api .registry .RegistryScope ;
3334import 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 }
Original file line number Diff line number Diff line change 2828import org .spongepowered .api .Sponge ;
2929import org .spongepowered .api .item .ItemType ;
3030import org .spongepowered .api .registry .DefaultedRegistryReference ;
31+ import org .spongepowered .api .registry .Registry ;
3132import org .spongepowered .api .registry .RegistryKey ;
3233import org .spongepowered .api .registry .RegistryScope ;
3334import 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 }
You can’t perform that action at this time.
0 commit comments