forked from MobiusFlip/CrimsonRevelations
-
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.
Showing
13 changed files
with
88 additions
and
1 deletion.
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
37 changes: 37 additions & 0 deletions
37
src/main/java/mod/icarus/crimsonrevelations/item/baubles/CRItemRunicBauble.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,37 @@ | ||
package mod.icarus.crimsonrevelations.item.baubles; | ||
|
||
import baubles.api.BaubleType; | ||
import baubles.api.IBauble; | ||
import mod.icarus.crimsonrevelations.item.CRItem; | ||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.item.EnumRarity; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.nbt.NBTTagByte; | ||
import net.minecraft.util.NonNullList; | ||
|
||
public class CRItemRunicBauble extends CRItem implements IBauble { | ||
BaubleType type; | ||
EnumRarity rarity; | ||
int amount; | ||
|
||
public CRItemRunicBauble(BaubleType type, EnumRarity rarity, int amount) { | ||
super(rarity); | ||
this.maxStackSize = 1; | ||
this.type = type; | ||
this.rarity = rarity; | ||
this.amount = amount; | ||
} | ||
|
||
@Override | ||
public BaubleType getBaubleType(ItemStack stack) { | ||
return type; | ||
} | ||
|
||
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> items) { | ||
if (this.isInCreativeTab(tab)) { | ||
ItemStack stack = new ItemStack(this); | ||
stack.setTagInfo("TC.RUNIC", new NBTTagByte((byte) amount)); | ||
items.add(stack); | ||
} | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/crimsonrevelations/models/item/runic_amulet.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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "crimsonrevelations:items/runic_amulet" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/crimsonrevelations/models/item/runic_girdle.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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "crimsonrevelations:items/runic_girdle" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/crimsonrevelations/models/item/runic_ring.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 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "crimsonrevelations:items/runic_ring" | ||
} | ||
} |
Binary file added
BIN
+963 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
src/main/resources/assets/crimsonrevelations/textures/items/runic_amulet.png.mcmeta
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,5 @@ | ||
{ | ||
"animation": { | ||
"frametime": 2 | ||
} | ||
} |
Binary file added
BIN
+943 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
src/main/resources/assets/crimsonrevelations/textures/items/runic_girdle.png.mcmeta
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,5 @@ | ||
{ | ||
"animation": { | ||
"frametime": 2 | ||
} | ||
} |
Binary file added
BIN
+747 Bytes
src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
src/main/resources/assets/crimsonrevelations/textures/items/runic_ring.png.mcmeta
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,5 @@ | ||
{ | ||
"animation": { | ||
"frametime": 2 | ||
} | ||
} |