Package com.binaris.wizardry.cca.player
Class WizardDataHolder
java.lang.Object
com.binaris.wizardry.cca.player.WizardDataHolder
- All Implemented Interfaces:
WizardData,dev.onyxstudios.cca.api.v3.component.Component,dev.onyxstudios.cca.api.v3.component.ComponentV3,dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent,dev.onyxstudios.cca.api.v3.component.sync.ComponentPacketWriter,dev.onyxstudios.cca.api.v3.component.sync.PlayerSyncPredicate
public class WizardDataHolder
extends Object
implements WizardData, dev.onyxstudios.cca.api.v3.component.ComponentV3, dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.binaris.wizardry.api.content.data.WizardData
WizardData.RecentSpellCast -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountRecentCasts(Spell spell) @Nullable WizardData.RecentSpellCastbooleanhasReachedTier(SpellTier tier) booleanisPlayerAlly(UUID playerUUID) booleanisPlayerAlly(net.minecraft.world.entity.player.Player ally) voidreadFromNbt(@NotNull net.minecraft.nbt.CompoundTag tag) voidremoveRecentCasts(Predicate<WizardData.RecentSpellCast> predicate) voidsetSpellModifiers(SpellModifiers modifiers) voidsetTierReached(SpellTier tier) booleantoggleAlly(net.minecraft.world.entity.player.Player friend) voidtrackRecentSpell(Spell spell, long timestamp) voidwriteToNbt(@NotNull net.minecraft.nbt.CompoundTag tag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.onyxstudios.cca.api.v3.component.sync.AutoSyncedComponent
applySyncPacket, shouldSyncWith, writeSyncPacketMethods inherited from interface dev.onyxstudios.cca.api.v3.component.Component
equals
-
Field Details
-
allies
-
allyNames
-
itemModifiers
-
-
Constructor Details
-
WizardDataHolder
public WizardDataHolder(net.minecraft.world.entity.player.Player provider)
-
-
Method Details
-
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
-
readFromNbt
public void readFromNbt(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNbtin interfacedev.onyxstudios.cca.api.v3.component.Component
-
writeToNbt
public void writeToNbt(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Specified by:
writeToNbtin interfacedev.onyxstudios.cca.api.v3.component.Component
-