-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: TheBv <[email protected]>
- Loading branch information
Showing
8 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/generated/resources/data/iceandfire/tags/items/make_item_drops_fireimmune.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,6 @@ | ||
{ | ||
"values": [ | ||
"iceandfire:dragonsteel_lightning_sword", | ||
"iceandfire:dragonbone_sword_lightning" | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
src/generated/resources/data/iceandfire/worldgen/structure/gorgon_temple.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
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
26 changes: 26 additions & 0 deletions
26
src/main/java/com/github/alexthe666/iceandfire/datagen/tags/IafBlockTags.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,26 @@ | ||
package com.github.alexthe666.iceandfire.datagen.tags; | ||
|
||
import com.github.alexthe666.iceandfire.IceAndFire; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraftforge.common.data.BlockTagsProvider; | ||
import net.minecraftforge.common.data.ExistingFileHelper; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class IafBlockTags extends BlockTagsProvider { | ||
|
||
public IafBlockTags(PackOutput output, CompletableFuture<HolderLookup.Provider> future, ExistingFileHelper helper) { | ||
super(output, future, IceAndFire.MODID, helper); | ||
} | ||
|
||
@Override | ||
protected void addTags(HolderLookup.Provider pProvider) { | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Ice and Fire Block Tags"; | ||
} | ||
} | ||
|
40 changes: 40 additions & 0 deletions
40
src/main/java/com/github/alexthe666/iceandfire/datagen/tags/IafItemTags.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,40 @@ | ||
package com.github.alexthe666.iceandfire.datagen.tags; | ||
|
||
import com.github.alexthe666.iceandfire.IceAndFire; | ||
import com.github.alexthe666.iceandfire.item.IafItemRegistry; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.tags.ItemTagsProvider; | ||
import net.minecraft.data.tags.TagsProvider; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.ItemTags; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraftforge.common.data.ExistingFileHelper; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class IafItemTags extends ItemTagsProvider { | ||
public static TagKey<Item> MAKE_ITEM_DROPS_FIREIMMUNE = createKey("make_item_drops_fireimmune"); | ||
|
||
public IafItemTags(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, CompletableFuture<TagsProvider.TagLookup<Block>> blockTags, ExistingFileHelper helper) { | ||
super(output, lookupProvider, blockTags, IceAndFire.MODID, helper); | ||
} | ||
|
||
@Override | ||
protected void addTags(HolderLookup.Provider provider) { | ||
tag(MAKE_ITEM_DROPS_FIREIMMUNE) | ||
.add(IafItemRegistry.DRAGONSTEEL_LIGHTNING_SWORD.get()) | ||
.add(IafItemRegistry.DRAGONBONE_SWORD_LIGHTNING.get()); | ||
} | ||
|
||
private static TagKey<Item> createKey(final String name) { | ||
return ItemTags.create(new ResourceLocation(IceAndFire.MODID, name)); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Ice and Fire Item Tags"; | ||
} | ||
} |
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