Class AltarStructureMaterialProvider

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

public abstract class AltarStructureMaterialProvider extends Object implements net.minecraft.data.DataProvider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.data.DataGenerator
     

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    AltarStructureMaterialProvider(String namespace, net.minecraft.data.DataGenerator generator, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addCapMaterial(String name, net.minecraft.world.level.block.Block cap, int power)
    Adds a new cap material.
    protected void
    addCapMaterial(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.block.Block cap, int power)
    Adds a new cap material.
    protected void
    addCapMaterial(net.minecraft.world.level.block.Block cap, int power)
    Adds a new cap material.
    protected void
    addStructureMaterial(String name, net.minecraft.data.BlockFamily blockFamily, int power)
    Adds a new structure material.
    protected void
    addStructureMaterial(String name, net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.StairBlock stair, int power)
    Adds a new structure material.
    protected void
    addStructureMaterial(net.minecraft.data.BlockFamily blockFamily, int power)
    Adds a new structure material.
    protected void
    addStructureMaterial(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.StairBlock stair, int power)
    Adds a new structure material.
    protected void
    addStructureMaterial(net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.StairBlock stair, int power)
    Adds a new structure material.
    protected abstract void
     
     
    void
    run(net.minecraft.data.CachedOutput pCache)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • generator

      protected final net.minecraft.data.DataGenerator generator
  • Constructor Details

    • AltarStructureMaterialProvider

      public AltarStructureMaterialProvider(String namespace, net.minecraft.data.DataGenerator generator, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper)
  • Method Details

    • createStructureMaterials

      protected abstract void createStructureMaterials()
    • run

      public void run(net.minecraft.data.CachedOutput pCache) throws IOException
      Specified by:
      run in interface net.minecraft.data.DataProvider
      Throws:
      IOException
    • getName

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

      protected void addCapMaterial(String name, net.minecraft.world.level.block.Block cap, int power)
      Adds a new cap material.
      Parameters:
      name - The name of the new cap material.
      cap - The block for the new cap material.
      power - The power of the new cap material.
    • addCapMaterial

      protected void addCapMaterial(net.minecraft.world.level.block.Block cap, int power)
      Adds a new cap material.
      Parameters:
      cap - The block for the new cap material.
      power - The power of the new cap material.
    • addStructureMaterial

      protected void addStructureMaterial(String name, net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.StairBlock stair, int power)
      Adds a new structure material.
      Parameters:
      name - The name of the new structure material.
      block - The block for the new structure material.
      stair - The stair block for the new structure material.
      power - The power of the new structure material.
    • addStructureMaterial

      protected void addStructureMaterial(net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.StairBlock stair, int power)
      Adds a new structure material.
      Parameters:
      block - The block for the new structure material.
      stair - The stair block for the new structure material.
      power - The power of the new structure material.
    • addStructureMaterial

      protected void addStructureMaterial(String name, net.minecraft.data.BlockFamily blockFamily, int power)
      Adds a new structure material.
      Parameters:
      name - The name of the new structure material.
      blockFamily - The block family for the new structure material.
      power - The power of the new structure material.
    • addStructureMaterial

      protected void addStructureMaterial(net.minecraft.data.BlockFamily blockFamily, int power)
      Adds a new structure material.
      Parameters:
      blockFamily - The block family for the new structure material.
      power - The power of the new structure material.
    • addCapMaterial

      protected void addCapMaterial(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.block.Block cap, int power)
      Adds a new cap material.
      Parameters:
      id - The id of the new cap material.
      cap - The block for the new cap material.
      power - The power of the new cap material.
    • addStructureMaterial

      protected void addStructureMaterial(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.StairBlock stair, int power)
      Adds a new structure material.
      Parameters:
      id - The id of the new structure material.
      block - The block for the new structure material.
      stair - The stair block for the new structure material.
      power - The power of the new structure material.