-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
95 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ain/java/com/minelittlepony/unicopia/datagen/providers/tag/UDimensionTypeTagProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.minelittlepony.unicopia.datagen.providers.tag; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import com.minelittlepony.unicopia.UTags; | ||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.registry.RegistryWrapper.WrapperLookup; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.world.dimension.DimensionType; | ||
|
||
public class UDimensionTypeTagProvider extends FabricTagProvider<DimensionType> { | ||
public UDimensionTypeTagProvider(FabricDataOutput output, CompletableFuture<WrapperLookup> registriesFuture) { | ||
super(output, RegistryKeys.DIMENSION_TYPE, registriesFuture); | ||
} | ||
|
||
@Override | ||
protected void configure(WrapperLookup lookup) { | ||
getOrCreateTagBuilder(UTags.DimensionTypes.HAS_NO_ATMOSPHERE) | ||
.addOptional(new Identifier("ad_astra", "earth_orbit")) | ||
.addOptional(new Identifier("ad_astra", "glacio_orbit")) | ||
.addOptional(new Identifier("ad_astra", "mars_orbit")) | ||
.addOptional(new Identifier("ad_astra", "mercury_orbit")) | ||
.addOptional(new Identifier("ad_astra", "moon")).addOptional(new Identifier("adastra", "moon_orbit")) | ||
.addOptional(new Identifier("ad_astra", "venus_orbit")) | ||
|
||
.addOptional(new Identifier("adastra", "earth_orbit")) | ||
.addOptional(new Identifier("adastra", "glacio_orbit")) | ||
.addOptional(new Identifier("adastra", "mars_orbit")) | ||
.addOptional(new Identifier("adastra", "mercury_orbit")) | ||
.addOptional(new Identifier("adastra", "moon")).addOptional(new Identifier("adastra", "moon_orbit")) | ||
.addOptional(new Identifier("adastra", "venus_orbit")); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...n/java/com/minelittlepony/unicopia/datagen/providers/tag/UPaintingVariantTagProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.minelittlepony.unicopia.datagen.providers.tag; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import com.minelittlepony.unicopia.entity.mob.UEntities; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.minecraft.entity.decoration.painting.PaintingVariant; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.registry.RegistryWrapper.WrapperLookup; | ||
import net.minecraft.registry.tag.PaintingVariantTags; | ||
|
||
public class UPaintingVariantTagProvider extends FabricTagProvider<PaintingVariant> { | ||
public UPaintingVariantTagProvider(FabricDataOutput output, CompletableFuture<WrapperLookup> registriesFuture) { | ||
super(output, RegistryKeys.PAINTING_VARIANT, registriesFuture); | ||
} | ||
|
||
@Override | ||
protected void configure(WrapperLookup lookup) { | ||
getOrCreateTagBuilder(PaintingVariantTags.PLACEABLE).add(UEntities.Paintings.REGISTRY.toArray(PaintingVariant[]::new)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/main/resources/data/c/tags/dimension_type/has_no_atmosphere.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/resources/data/minecraft/tags/damage_type/avoids_guardian_thorns.json
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/resources/data/minecraft/tags/damage_type/bypasses_armor.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/main/resources/data/minecraft/tags/damage_type/bypasses_invulnerability.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/main/resources/data/minecraft/tags/damage_type/bypasses_shield.json
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/resources/data/minecraft/tags/damage_type/is_fire.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/main/resources/data/minecraft/tags/damage_type/is_lightning.json
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/resources/data/minecraft/tags/damage_type/witch_resistant_to.json
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/main/resources/data/minecraft/tags/painting_variant/placeable.json
This file was deleted.
Oops, something went wrong.