mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Further Java 8 cleanup (#4077)
This commit is contained in:
1 parent
3738a2e42b
commit
690c9bb76a
6 files changed
+7
-44
No files matched your search
@@ -929,8 +929,6 @@ public class ForgeHooks
|
||||
* Default implementation of IRecipe.func_179532_b {getRemainingItems} because
|
||||
* this is just copy pasted over a lot of recipes.
|
||||
*
|
||||
* Another use case for java 8 but sadly we can't use it!
|
||||
*
|
||||
* @param inv Crafting inventory
|
||||
* @return Crafting inventory contents after the recipe.
|
||||
*/
|
||||
|
||||
@@ -199,6 +199,7 @@ public class ForgeModContainer extends DummyModContainer implements WorldAccessC
|
||||
if (config.getCategory(CATEGORY_GENERAL).containsKey("defaultSpawnFuzz")) config.getCategory(CATEGORY_GENERAL).remove("defaultSpawnFuzz");
|
||||
if (config.getCategory(CATEGORY_GENERAL).containsKey("spawnHasFuzz")) config.getCategory(CATEGORY_GENERAL).remove("spawnHasFuzz");
|
||||
if (config.getCategory(CATEGORY_GENERAL).containsKey("disableStitchedFileSaving")) config.getCategory(CATEGORY_GENERAL).remove("disableStitchedFileSaving");
|
||||
if (config.getCategory(CATEGORY_CLIENT).containsKey("java8Reminder")) config.getCategory(CATEGORY_CLIENT).remove("java8Reminder");
|
||||
|
||||
prop = config.get(CATEGORY_GENERAL, "disableVersionCheck", false);
|
||||
prop.setComment("Set to true to disable Forge's version check mechanics. Forge queries a small json file on our server for version information. For more details see the ForgeVersion class in our github.");
|
||||
|
||||
@@ -154,13 +154,6 @@ public class ShapedOreRecipe extends IForgeRegistryEntry.Impl<IRecipe> implement
|
||||
return this.input;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public NonNullList<ItemStack> getRemainingItems(@Nonnull InventoryCrafting inv) //getRecipeLeftovers
|
||||
{
|
||||
return ForgeHooks.defaultRecipeGetRemainingItems(inv);
|
||||
}
|
||||
|
||||
public int getWidth()
|
||||
{
|
||||
return width;
|
||||
|
||||
@@ -131,13 +131,6 @@ public class ShapelessOreRecipe extends IForgeRegistryEntry.Impl<IRecipe> implem
|
||||
return this.input;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public NonNullList<ItemStack> getRemainingItems(@Nonnull InventoryCrafting inv)
|
||||
{
|
||||
return ForgeHooks.defaultRecipeGetRemainingItems(inv);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public String getGroup()
|
||||
|
||||
Reference in new issue
Block a user