This repository has been archived by the owner on May 13, 2023. It is now read-only.
forked from WayofTime/BloodMagic
-
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.
Added the necessary infrastructure for Rituals to use Demon Will from…
… the Aura. Added the Demon Will Gauge.
- Loading branch information
Showing
16 changed files
with
190 additions
and
28 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
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
58 changes: 58 additions & 0 deletions
58
src/main/java/WayofTime/bloodmagic/item/ItemDemonWillGauge.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,58 @@ | ||
package WayofTime.bloodmagic.item; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.fml.relauncher.Side; | ||
import net.minecraftforge.fml.relauncher.SideOnly; | ||
|
||
import org.apache.commons.lang3.tuple.ImmutablePair; | ||
import org.apache.commons.lang3.tuple.Pair; | ||
|
||
import WayofTime.bloodmagic.BloodMagic; | ||
import WayofTime.bloodmagic.api.Constants; | ||
import WayofTime.bloodmagic.api.iface.IDemonWillViewer; | ||
import WayofTime.bloodmagic.client.IVariantProvider; | ||
import WayofTime.bloodmagic.util.helper.TextHelper; | ||
|
||
public class ItemDemonWillGauge extends Item implements IVariantProvider, IDemonWillViewer | ||
{ | ||
public ItemDemonWillGauge() | ||
{ | ||
setUnlocalizedName(Constants.Mod.MODID + ".willGauge"); | ||
setMaxStackSize(1); | ||
setCreativeTab(BloodMagic.tabBloodMagic); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean advanced) | ||
{ | ||
tooltip.addAll(Arrays.asList(TextHelper.cutLongString(TextHelper.localizeEffect("tooltip.BloodMagic.willGauge")))); | ||
} | ||
|
||
@Override | ||
public List<Pair<Integer, String>> getVariants() | ||
{ | ||
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>(); | ||
ret.add(new ImmutablePair<Integer, String>(0, "type=willgauge")); | ||
return ret; | ||
} | ||
|
||
@Override | ||
public boolean canSeeDemonWillAura(World world, ItemStack stack, EntityPlayer player) | ||
{ | ||
return true; | ||
} | ||
|
||
@Override | ||
public int getDemonWillAuraResolution(World world, ItemStack stack, EntityPlayer player) | ||
{ | ||
return 100; | ||
} | ||
} |
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
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
16 changes: 16 additions & 0 deletions
16
src/main/resources/assets/bloodmagic/blockstates/item/ItemDemonWillGauge.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,16 @@ | ||
{ | ||
"forge_marker": 1, | ||
"defaults": { | ||
"model": "builtin/generated", | ||
"transform": "forge:default-item" | ||
}, | ||
"variants": { | ||
"type": { | ||
"willgauge": { | ||
"textures": { | ||
"layer0": "bloodmagic:items/DemonWillGauge" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Binary file removed
BIN
-740 Bytes
src/main/resources/assets/bloodmagic/textures/gui/DefaultCrystal.png
Binary file not shown.
Binary file added
BIN
+779 Bytes
src/main/resources/assets/bloodmagic/textures/items/DemonWillGauge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.