Class SpellTransformationProvider

java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.data.SpellTransformationProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider

public abstract class SpellTransformationProvider extends Object implements net.minecraft.data.DataProvider
Base class for spell part data generators.
  • Constructor Details

    • SpellTransformationProvider

      public SpellTransformationProvider(String namespace, net.minecraft.data.DataGenerator generator)
  • Method Details

    • createSpellTransformations

      protected abstract void createSpellTransformations()
    • run

      public void run(net.minecraft.data.HashCache pCache)
      Specified by:
      run in interface net.minecraft.data.DataProvider
    • getName

      public String getName()
      Specified by:
      getName in interface net.minecraft.data.DataProvider
    • addSpellTransformation

      public void addSpellTransformation(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest from, net.minecraft.world.level.block.state.BlockState to, net.minecraft.resources.ResourceLocation spellPart)
      Adds a new spell transformation.
      Parameters:
      id - The id of the transformation.
      from - The block to apply the transformation to.
      to - The block state to transform to.
      spellPart - The spell part this transformation is for.