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
FIXED_ORDER_FIELDS, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionAltarStructureMaterialProvider(String namespace, net.minecraft.data.DataGenerator generator, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper) -
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 voidaddCapMaterial(net.minecraft.world.level.block.Block cap, int power) Adds a new cap material.protected voidaddStructureMaterial(String name, net.minecraft.data.BlockFamily blockFamily, int power) Adds a new structure 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.data.BlockFamily blockFamily, 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 voidaddStructureMaterial(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.CachedOutput pCache)
-
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
- 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.
-
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.
-