generated from TeamGensouSpark/LunarCapitalFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
46 additions
and
11 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
1 change: 0 additions & 1 deletion
1
src/main/java/io/github/teamgensouspark/kekkai/example/MySpellCardEntity.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
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
36 changes: 36 additions & 0 deletions
36
src/main/java/io/github/teamgensouspark/kekkai/spellcard/SpellCardModelHelper.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,36 @@ | ||
package io.github.teamgensouspark.kekkai.spellcard; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import io.github.teamgensouspark.kekkai.Consts; | ||
import net.katsstuff.teamnightclipse.danmakucore.entity.spellcard.Spellcard; | ||
import net.minecraft.item.Item; | ||
import net.minecraftforge.client.event.ModelRegistryEvent; | ||
import net.minecraftforge.client.model.ModelLoader; | ||
import net.minecraftforge.event.RegistryEvent; | ||
import net.minecraftforge.fml.common.Mod.EventBusSubscriber; | ||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | ||
|
||
@EventBusSubscriber(modid = Consts.MODID) | ||
public class SpellCardModelHelper { | ||
public static void initSpellCardBake() { | ||
}; | ||
|
||
public static final List<Spellcard> BAKE_SPELLCARDS = new ArrayList<>(); | ||
public static final Item SPELLCARD_HELPER = new Item().setTranslationKey("spellcard_helper") | ||
.setRegistryName(Consts.MODID, "spellcard_helper").setCreativeTab(null); | ||
|
||
@SubscribeEvent | ||
public static void onItemRegister(RegistryEvent.Register<Item> event) { | ||
event.getRegistry().registerAll( | ||
SPELLCARD_HELPER); | ||
} | ||
|
||
@SubscribeEvent | ||
public static void onModelRegister(ModelRegistryEvent event) { | ||
for (Spellcard sp : BAKE_SPELLCARDS) { | ||
ModelLoader.setCustomModelResourceLocation(SPELLCARD_HELPER, 0, sp.itemModel()); | ||
} | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
src/main/resources/assets/kekkai/models/item/danmaku/spellcard/example_card.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "kekkai:items/spellcard/example_card" | ||
} | ||
} | ||
{ | ||
"parent": "danmakucore:item/danmaku/spellcard/spellcard_base", | ||
"textures": { | ||
"1": "kekkai:items/spellcard/example_card" | ||
} | ||
} |
Binary file modified
BIN
+3.83 KB
(210%)
src/main/resources/assets/kekkai/textures/items/spellcard/example_card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.