Class PrefabSpellProvider
java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.data.PrefabSpellProvider
- All Implemented Interfaces:
net.minecraft.data.DataProvider
-
Field Summary
Fields inherited from interface net.minecraft.data.DataProvider
SHA1 -
Constructor Summary
ConstructorsConstructorDescriptionPrefabSpellProvider(String namespace, net.minecraft.data.DataGenerator generator) PrefabSpellProvider(String namespace, net.minecraft.data.DataGenerator generator, @Nullable net.minecraftforge.common.data.LanguageProvider languageProvider) -
Method Summary
Modifier and TypeMethodDescriptionaddPrefabSpell(String id, String name, net.minecraft.resources.ResourceLocation icon, ISpell spell) Adds a new prefab spell.addPrefabSpell(String id, net.minecraft.network.chat.Component name, net.minecraft.resources.ResourceLocation icon, ISpell spell) Adds a new prefab spell.protected abstract voidcreatePrefabSpells(Consumer<PrefabSpellBuilder> consumer) getName()voidrun(net.minecraft.data.HashCache pCache)
-
Constructor Details
-
PrefabSpellProvider
-
PrefabSpellProvider
public PrefabSpellProvider(String namespace, net.minecraft.data.DataGenerator generator, @Nullable @Nullable net.minecraftforge.common.data.LanguageProvider languageProvider)
-
-
Method Details
-
createPrefabSpells
-
run
- Specified by:
runin interfacenet.minecraft.data.DataProvider- Throws:
IOException
-
getName
- Specified by:
getNamein interfacenet.minecraft.data.DataProvider
-
addPrefabSpell
public PrefabSpellBuilder addPrefabSpell(String id, net.minecraft.network.chat.Component name, net.minecraft.resources.ResourceLocation icon, ISpell spell) Adds a new prefab spell.- Parameters:
id- The id of the prefab spell.name- The name component of the prefab spell.icon- The icon of the prefab spell.spell- The spell of the prefab spell.
-
addPrefabSpell
public PrefabSpellBuilder addPrefabSpell(String id, String name, net.minecraft.resources.ResourceLocation icon, ISpell spell) Adds a new prefab spell.- Parameters:
id- The id of the prefab spell.name- The name of the prefab spell.icon- The icon of the prefab spell.spell- The spell of the prefab spell.
-