-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for heating/cooling armor trims
- Loading branch information
Showing
8 changed files
with
93 additions
and
8 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
common/src/generated/resources/.cache/237ed1d533e00e9b8d8148d6061ae61b82e960bb
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,3 @@ | ||
// 1.20.4 2024-01-03T18:57:51.0266812 Tags for minecraft:trim_material mod id toughasnails | ||
35133e95f1c8fdd7a1c21afcc231fc0bffefb9a8 data/toughasnails/tags/trim_material/cooling_trims.json | ||
35133e95f1c8fdd7a1c21afcc231fc0bffefb9a8 data/toughasnails/tags/trim_material/heating_trims.json |
3 changes: 3 additions & 0 deletions
3
common/src/generated/resources/data/toughasnails/tags/trim_material/cooling_trims.json
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,3 @@ | ||
{ | ||
"values": [] | ||
} |
3 changes: 3 additions & 0 deletions
3
common/src/generated/resources/data/toughasnails/tags/trim_material/heating_trims.json
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,3 @@ | ||
{ | ||
"values": [] | ||
} |
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
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
33 changes: 33 additions & 0 deletions
33
forge/src/main/java/toughasnails/forge/datagen/provider/TANTrimMaterialTagsProvider.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,33 @@ | ||
/******************************************************************************* | ||
* Copyright 2023, the Glitchfiend Team. | ||
* All rights reserved. | ||
******************************************************************************/ | ||
package toughasnails.forge.datagen.provider; | ||
|
||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.tags.TagsProvider; | ||
import net.minecraft.world.item.armortrim.TrimMaterial; | ||
import net.minecraft.world.item.armortrim.TrimMaterials; | ||
import net.minecraftforge.common.data.ExistingFileHelper; | ||
import org.jetbrains.annotations.Nullable; | ||
import toughasnails.core.ToughAsNails; | ||
import toughasnails.init.ModTags; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class TANTrimMaterialTagsProvider extends TagsProvider<TrimMaterial> | ||
{ | ||
public TANTrimMaterialTagsProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, @Nullable ExistingFileHelper existingFileHelper) | ||
{ | ||
super(output, Registries.TRIM_MATERIAL, lookupProvider, ToughAsNails.MOD_ID, existingFileHelper); | ||
} | ||
|
||
@Override | ||
protected void addTags(HolderLookup.Provider provider) | ||
{ | ||
this.tag(ModTags.Trims.COOLING_TRIMS); | ||
this.tag(ModTags.Trims.HEATING_TRIMS); | ||
} | ||
} |