Class CastItemDataHelper
java.lang.Object
com.binaris.wizardry.api.content.util.CastItemDataHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddProgression(net.minecraft.world.item.ItemStack stack, int progression) static voidapplyUpgrade(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item upgrade) static long[]getCooldownEndTimes(net.minecraft.world.item.ItemStack stack) static intgetCurrentCooldown(net.minecraft.world.item.ItemStack stack, long currentGameTime) static intgetCurrentMaxCooldown(net.minecraft.world.item.ItemStack stack) static SpellgetCurrentSpell(net.minecraft.world.item.ItemStack stack) static intgetCurrentSpellIndex(net.minecraft.world.item.ItemStack stack) static int[]getMaxCooldowns(net.minecraft.world.item.ItemStack stack) static SpellgetNextSpell(net.minecraft.world.item.ItemStack stack) static SpellgetPreviousSpell(net.minecraft.world.item.ItemStack stack) static intgetProgression(net.minecraft.world.item.ItemStack stack) getSpells(net.minecraft.world.item.ItemStack stack) static intgetTotalUpgrades(net.minecraft.world.item.ItemStack stack) static intgetUpgradeLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item upgrade) static voidselectNextSpell(net.minecraft.world.item.ItemStack stack) static voidselectPreviousSpell(net.minecraft.world.item.ItemStack stack) static voidsetCooldownEndTimes(net.minecraft.world.item.ItemStack stack, long[] cooldownEndTimes) static voidsetCurrentCooldown(net.minecraft.world.item.ItemStack stack, int cooldown, long currentGameTime) static booleansetCurrentSpell(net.minecraft.world.item.ItemStack stack, int index) static voidsetCurrentSpell(net.minecraft.world.item.ItemStack stack, Spell spell) static voidsetMaxCooldowns(net.minecraft.world.item.ItemStack stack, int[] cooldowns) static voidsetProgression(net.minecraft.world.item.ItemStack stack, int progression) static voidsetSpells(net.minecraft.world.item.ItemStack stack, Collection<Spell> spells)
-
Field Details
-
SPELL_ARRAY_KEY
- See Also:
-
SELECTED_SPELL_KEY
- See Also:
-
COOLDOWN_END_TIME_ARRAY_KEY
- See Also:
-
MAX_COOLDOWN_ARRAY_KEY
- See Also:
-
UPGRADES_KEY
- See Also:
-
PROGRESSION_KEY
- See Also:
-
-
Method Details
-
getSpells
-
setSpells
-
getCurrentSpell
-
getCurrentSpellIndex
public static int getCurrentSpellIndex(net.minecraft.world.item.ItemStack stack) -
setCurrentSpell
-
setCurrentSpell
public static boolean setCurrentSpell(net.minecraft.world.item.ItemStack stack, int index) -
getNextSpell
-
getPreviousSpell
-
selectNextSpell
public static void selectNextSpell(net.minecraft.world.item.ItemStack stack) -
selectPreviousSpell
public static void selectPreviousSpell(net.minecraft.world.item.ItemStack stack) -
getCooldownEndTimes
public static long[] getCooldownEndTimes(net.minecraft.world.item.ItemStack stack) -
setCooldownEndTimes
public static void setCooldownEndTimes(net.minecraft.world.item.ItemStack stack, long[] cooldownEndTimes) -
getCurrentCooldown
public static int getCurrentCooldown(net.minecraft.world.item.ItemStack stack, long currentGameTime) -
setCurrentCooldown
public static void setCurrentCooldown(net.minecraft.world.item.ItemStack stack, int cooldown, long currentGameTime) -
getMaxCooldowns
public static int[] getMaxCooldowns(net.minecraft.world.item.ItemStack stack) -
setMaxCooldowns
public static void setMaxCooldowns(net.minecraft.world.item.ItemStack stack, int[] cooldowns) -
getCurrentMaxCooldown
public static int getCurrentMaxCooldown(net.minecraft.world.item.ItemStack stack) -
getUpgradeLevel
public static int getUpgradeLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item upgrade) -
getTotalUpgrades
public static int getTotalUpgrades(net.minecraft.world.item.ItemStack stack) -
applyUpgrade
public static void applyUpgrade(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item upgrade) -
getProgression
public static int getProgression(net.minecraft.world.item.ItemStack stack) -
setProgression
public static void setProgression(net.minecraft.world.item.ItemStack stack, int progression) -
addProgression
public static void addProgression(net.minecraft.world.item.ItemStack stack, int progression)
-