Class WizardDataHolder
java.lang.Object
com.binaris.wizardry.capabilities.WizardDataHolder
- All Implemented Interfaces:
WizardData,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class WizardDataHolder
extends Object
implements net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, WizardData
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.binaris.wizardry.api.content.data.WizardData
WizardData.RecentSpellCast -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.common.capabilities.Capability<WizardDataHolder>static final net.minecraft.resources.ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(@NotNull WizardDataHolder holder) intcountRecentCasts(Spell spell) voiddeserializeNBT(net.minecraft.nbt.CompoundTag tag) @Nullable WizardData.RecentSpellCastbooleanhasReachedTier(SpellTier tier) booleanisPlayerAlly(UUID playerUUID) booleanisPlayerAlly(net.minecraft.world.entity.player.Player ally) voidremoveRecentCasts(Predicate<WizardData.RecentSpellCast> predicate) net.minecraft.nbt.CompoundTagvoidsetSpellModifiers(SpellModifiers modifiers) voidsetTierReached(SpellTier tier) voidsync()booleantoggleAlly(net.minecraft.world.entity.player.Player friend) voidtrackRecentSpell(Spell spell, long timestamp)
-
Field Details
-
LOCATION
public static final net.minecraft.resources.ResourceLocation LOCATION -
INSTANCE
-
allies
-
allyNames
-
itemModifiers
-
-
Constructor Details
-
WizardDataHolder
public WizardDataHolder(net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
sync
public void sync() -
setTierReached
- Specified by:
setTierReachedin interfaceWizardData
-
hasReachedTier
- Specified by:
hasReachedTierin interfaceWizardData
-
toggleAlly
public boolean toggleAlly(net.minecraft.world.entity.player.Player friend) - Specified by:
toggleAllyin interfaceWizardData
-
isPlayerAlly
public boolean isPlayerAlly(net.minecraft.world.entity.player.Player ally) - Specified by:
isPlayerAllyin interfaceWizardData
-
isPlayerAlly
- Specified by:
isPlayerAllyin interfaceWizardData
-
getSpellModifiers
- Specified by:
getSpellModifiersin interfaceWizardData
-
setSpellModifiers
- Specified by:
setSpellModifiersin interfaceWizardData
-
trackRecentSpell
- Specified by:
trackRecentSpellin interfaceWizardData
-
countRecentCasts
- Specified by:
countRecentCastsin interfaceWizardData
-
getRecentSpells
- Specified by:
getRecentSpellsin interfaceWizardData
-
getRecentlyCastSpell
- Specified by:
getRecentlyCastSpellin interfaceWizardData
-
removeRecentCasts
- Specified by:
removeRecentCastsin interfaceWizardData
-
getRandom
- Specified by:
getRandomin interfaceWizardData
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT()- Specified by:
serializeNBTin interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
deserializeNBT
public void deserializeNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
deserializeNBTin interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
copyFrom
-