blob: 4cdc995e2dcf732b3001bc1bb1114aee1f24abef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package moe.nea.funnyteleporters;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider;
import net.minecraft.registry.RegistryWrapper;
import java.util.concurrent.CompletableFuture;
public class FunnyTranslationProvider extends FabricLanguageProvider {
protected FunnyTranslationProvider(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookup) {
super(dataOutput, "en_us", registryLookup);
}
@Override
public void generateTranslations(RegistryWrapper.WrapperLookup wrapperLookup, TranslationBuilder translationBuilder) {
translationBuilder.add(FunnyRegistry.ENDER_PEARL_BLOCK, "Block of Ender Pearl");
translationBuilder.add(FunnyRegistry.TELEPORTER, "Teleporter");
translationBuilder.add(FunnyRegistry.TELEPORTER_NEXUS, "Teleporter Nexus");
translationBuilder.add(FunnyRegistry.COLOURED_CHEST, "Colored Chest");
translationBuilder.add(FunnyRegistry.TELEPORTER_WAND, "Teleporter Wand");
}
}
|