Class ConjureItemSpell
java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.ConjureItemSpell
- Direct Known Subclasses:
ConjureArmor,Flamecatcher,FlamingAxe,FrostAxe
-
Field Summary
FieldsFields inherited from class com.binaris.wizardry.api.content.spell.Spell
pitch, pitchVariation, volume -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.item.ItemStackaddItemExtras(PlayerCastContext ctx, net.minecraft.world.item.ItemStack stack) booleancast(PlayerCastContext ctx) protected booleanstatic booleanisSummonableItem(net.minecraft.world.item.Item item) Checks if the given item is part of the supported conjure items inside the mod.static booleanisSummonableItem(net.minecraft.world.item.ItemStack stack) Checks if the given item stack is part of the supported conjure items inside the mod.static booleanisSummoned(net.minecraft.world.item.ItemStack stack) Checks if the given item stack is currently summoned (i.e.protected @NotNull SpellPropertiesstatic voidregisterSupportedItem(net.minecraft.world.item.Item item) protected voidMethods inherited from class com.binaris.wizardry.api.content.spell.Spell
assignProperties, canCastByEntity, canCastByLocation, cast, cast, endCast, getAction, getCharge, getCooldown, getCost, getDesc, getDescriptionFormatted, getDescriptionId, getElement, getIcon, getLocation, getLoopSounds, getOrCreateDescriptionId, getOrCreateLocation, getPitch, getPitchVariation, getProperties, getTier, getType, getVolume, hasEnded, is, is, is, isEmpty, isEnabled, isInstantCast, onCharge, playSound, playSound, playSound, playSoundLoop, playSoundLoop, property, requiresPacket, setProperties, soundValues, toString
-
Field Details
-
SUPPORTED_ITEMS
-
-
Constructor Details
-
ConjureItemSpell
public ConjureItemSpell(net.minecraft.world.item.Item item)
-
-
Method Details
-
isSummoned
public static boolean isSummoned(net.minecraft.world.item.ItemStack stack) Checks if the given item stack is currently summoned (i.e. conjured and not expired). The item must also be part of the supported conjure items inside the mod. For a check of whether an item is part of the supported conjure items (not checking if it is summoned), useisSummonableItem(ItemStack). -
isSummonableItem
public static boolean isSummonableItem(net.minecraft.world.item.Item item) Checks if the given item is part of the supported conjure items inside the mod. For a better check of whether an item is actually summoned, useisSummoned(ItemStack). -
isSummonableItem
public static boolean isSummonableItem(net.minecraft.world.item.ItemStack stack) Checks if the given item stack is part of the supported conjure items inside the mod. For a better check of whether an item is actually summoned, useisSummoned(ItemStack). -
registerSupportedItem
public static void registerSupportedItem(net.minecraft.world.item.Item item) -
cast
-
spawnParticles
-
conjureItem
-
addItemExtras
protected net.minecraft.world.item.ItemStack addItemExtras(PlayerCastContext ctx, net.minecraft.world.item.ItemStack stack) -
properties
- Specified by:
propertiesin classSpell
-