Package net.minecraftforge.common.data
Class LanguageProvider
java.lang.Object
net.minecraftforge.common.data.LanguageProvider
- All Implemented Interfaces:
DataProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final String
private final PackOutput
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
-
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()
run
(CachedOutput cache) private CompletableFuture
<?> save
(CachedOutput cache, Path target)
-
Field Details
-
data
-
output
-
modid
-
locale
-
-
Constructor Details
-
LanguageProvider
-
-
Method Details
-
addTranslations
protected abstract void addTranslations() -
run
- Specified by:
run
in interfaceDataProvider
-
getName
- Specified by:
getName
in interfaceDataProvider
-
save
-
addBlock
-
add
-
addItem
-
add
-
addItemStack
-
add
-
addEnchantment
-
add
-
addEffect
-
add
-
addEntityType
-
add
-
add
-