Remove ISimpleReloadListener lambda types

This commit is contained in:
PepperBell 2021-04-28 21:25:06 -07:00
parent 9140c2ad4c
commit 80921ebd6b
3 changed files with 3 additions and 9 deletions

View File

@ -7,15 +7,13 @@ import com.simibubi.create.foundation.utility.ISimpleReloadListener;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.profiler.IProfiler;
import net.minecraft.resources.IResourceManager;
public class FluidTransferRecipes {
public static List<ItemStack> POTION_ITEMS = new ArrayList<>();
public static List<Item> FILLED_BUCKETS = new ArrayList<>();
public static final ISimpleReloadListener LISTENER = (IResourceManager resourceManager, IProfiler profiler) -> {
public static final ISimpleReloadListener LISTENER = (resourceManager, profiler) -> {
POTION_ITEMS.clear();
FILLED_BUCKETS.clear();
};

View File

@ -24,8 +24,6 @@ import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionBrewing;
import net.minecraft.potion.PotionUtils;
import net.minecraft.potion.Potions;
import net.minecraft.profiler.IProfiler;
import net.minecraft.resources.IResourceManager;
import net.minecraftforge.common.brewing.BrewingRecipeRegistry;
import net.minecraftforge.common.brewing.IBrewingRecipe;
import net.minecraftforge.common.brewing.VanillaBrewingRecipe;
@ -133,7 +131,7 @@ public class PotionMixingRecipeManager {
.collect(Collectors.toList());
}
public static final ISimpleReloadListener LISTENER = (IResourceManager resourceManager, IProfiler profiler) -> {
public static final ISimpleReloadListener LISTENER = (resourceManager, profiler) -> {
ALL.clear();
getAllBrewingRecipes().forEach(recipe -> {
for (Ingredient ingredient : recipe.getIngredients()) {

View File

@ -13,8 +13,6 @@ import com.google.common.cache.CacheBuilder;
import com.simibubi.create.foundation.utility.ISimpleReloadListener;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.profiler.IProfiler;
import net.minecraft.resources.IResourceManager;
import net.minecraft.world.World;
/**
@ -58,7 +56,7 @@ public class RecipeFinder {
return list;
}
public static final ISimpleReloadListener LISTENER = (IResourceManager resourceManager, IProfiler profiler) -> {
public static final ISimpleReloadListener LISTENER = (resourceManager, profiler) -> {
cachedSearches.invalidateAll();
};