Package net.minecraftforge.common.data
Class LanguageProvider
java.lang.Object
net.minecraftforge.common.data.LanguageProvider
- All Implemented Interfaces:
IDataProvider
- 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.IDataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
add
(Enchantment key, String name) void
add
(EntityType<?> 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
run
(DirectoryCache cache) private void
save
(DirectoryCache cache, Object object, Path target)
-
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 interfaceIDataProvider
- Throws:
IOException
-
getName
- Specified by:
getName
in interfaceIDataProvider
-
save
- Throws:
IOException
-
addBlock
-
add
-
addItem
-
add
-
addItemStack
-
add
-
addEnchantment
-
add
-
addEffect
-
add
-
addEntityType
-
add
-
add
-