From dbee8a24d864383c17205b47072eae8f540784ee Mon Sep 17 00:00:00 2001 From: tterrag Date: Mon, 28 Oct 2019 21:23:01 -0400 Subject: [PATCH] Allow LanguageProvider helpers to accept suppliers of subtypes --- .../minecraftforge/common/data/LanguageProvider.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/minecraftforge/common/data/LanguageProvider.java b/src/main/java/net/minecraftforge/common/data/LanguageProvider.java index 51411a593..43fd8d46d 100644 --- a/src/main/java/net/minecraftforge/common/data/LanguageProvider.java +++ b/src/main/java/net/minecraftforge/common/data/LanguageProvider.java @@ -82,7 +82,7 @@ public abstract class LanguageProvider implements IDataProvider { cache.func_208316_a(target, hash); } - protected void addBlock(Supplier key, String name) { + protected void addBlock(Supplier key, String name) { add(key.get(), name); } @@ -90,7 +90,7 @@ public abstract class LanguageProvider implements IDataProvider { add(key.getTranslationKey(), name); } - protected void addItem(Supplier key, String name) { + protected void addItem(Supplier key, String name) { add(key.get(), name); } @@ -106,7 +106,7 @@ public abstract class LanguageProvider implements IDataProvider { add(key.getTranslationKey(), name); } - protected void addEnchantment(Supplier key, String name) { + protected void addEnchantment(Supplier key, String name) { add(key.get(), name); } @@ -114,7 +114,7 @@ public abstract class LanguageProvider implements IDataProvider { add(key.getName(), name); } - protected void addBiome(Supplier key, String name) { + protected void addBiome(Supplier key, String name) { add(key.get(), name); } @@ -122,7 +122,7 @@ public abstract class LanguageProvider implements IDataProvider { add(key.getTranslationKey(), name); } - protected void addEffect(Supplier key, String name) { + protected void addEffect(Supplier key, String name) { add(key.get(), name); } @@ -130,7 +130,7 @@ public abstract class LanguageProvider implements IDataProvider { add(key.getName(), name); } - protected void addEntityType(Supplier> key, String name) { + protected void addEntityType(Supplier> key, String name) { add(key.get(), name); }