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
FieldsFields inherited from interface net.minecraft.data.DataProvider
SHA1 -
Constructor Summary
ConstructorsConstructorDescriptionAltarStructureMaterialProvider(String namespace, net.minecraft.data.DataGenerator generator) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCapMaterial(String name, net.minecraft.world.level.block.Block cap, int power) Adds a new cap material.protected voidaddCapMaterial(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.block.Block cap, int power) Adds a new cap material.protected voidaddStructureMaterial(String name, net.minecraft.world.level.block.Block block, net.minecraft.world.level.block.StairBlock stair, int power) Adds a new structure material.protected voidaddStructureMaterial(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 abstract voidgetName()voidrun(net.minecraft.data.HashCache pCache)
-
Field Details
-
generator
protected final net.minecraft.data.DataGenerator generator
-
-
Constructor Details
-
AltarStructureMaterialProvider
-
-
Method Details
-
createStructureMaterials
protected abstract void createStructureMaterials() -
run
- Specified by:
runin interfacenet.minecraft.data.DataProvider- Throws:
IOException
-
getName
- Specified by:
getNamein interfacenet.minecraft.data.DataProvider
-
addCapMaterial
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.
-
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 cap material.block- The block for the new cap material.stair- The stair block for the new cap material.power- The power of the new cap 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 cap material.block- The block for the new cap material.stair- The stair block for the new cap material.power- The power of the new cap material.
-