Package net.minecraftforge.common.data
Class LanguageProvider
java.lang.Object
net.minecraftforge.common.data.LanguageProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
DataGeneratorTest.Lang
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DataGenerator
private static final com.google.gson.Gson
private final String
private final String
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
add
(EntityType<?> key, String name) void
add
(Enchantment key, String name) void
void
void
void
void
void
addEnchantment
(Supplier<? extends Enchantment> key, String name) void
addEntityType
(Supplier<? extends EntityType<?>> key, String name) void
void
addItemStack
(Supplier<ItemStack> key, String name) protected abstract void
getName()
void
private void
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON -
data
-
gen
-
modid
-
locale
-
-
Constructor Details
-
LanguageProvider
-
-
Method Details
-
addTranslations
protected abstract void addTranslations() -
run
- Specified by:
run
in interfaceDataProvider
- Throws:
IOException
-
getName
- Specified by:
getName
in interfaceDataProvider
-
save
- Throws:
IOException
-
addBlock
-
add
-
addItem
-
add
-
addItemStack
-
add
-
addEnchantment
-
add
-
addEffect
-
add
-
addEntityType
-
add
-
add
-