Class SpellVar<T>

java.lang.Object
com.binaris.wizardry.api.content.data.SpellVar<T>
All Implemented Interfaces:
ISpellVar<T>

public class SpellVar<T> extends Object implements ISpellVar<T>
  • Constructor Details

  • Method Details

    • withTicker

      public SpellVar<T> withTicker(BiFunction<net.minecraft.world.entity.player.Player,T,T> ticker)
    • update

      public T update(net.minecraft.world.entity.player.Player player, T value)
      Specified by:
      update in interface ISpellVar<T>
    • isPersistent

      public boolean isPersistent(boolean respawn)
      Specified by:
      isPersistent in interface ISpellVar<T>
    • isSynced

      public boolean isSynced()
      Specified by:
      isSynced in interface ISpellVar<T>
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf, T value)
      Specified by:
      write in interface ISpellVar<T>
    • read

      public T read(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      read in interface ISpellVar<T>