Class LanguageProvider
java.lang.Object
net.neoforged.neoforge.common.data.LanguageProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
DataGeneratorTest.Lang
,NeoForgeLanguageProvider
-
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
void
add
(EntityType<?> key, String name) void
void
void
void
void
void
addEntityType
(Supplier<? extends EntityType<?>> key, String name) void
void
addItemStack
(Supplier<ItemStack> key, String name) void
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
-
addEffect
-
add
-
addEntityType
-
add
-
addTag
-
add
-
add
-