2021-10-03 13:43:16 +02:00
|
|
|
package io.gitlab.jfronny.libjf.data.manipulation.api;
|
2021-07-13 15:07:56 +02:00
|
|
|
|
2021-09-27 18:25:19 +02:00
|
|
|
import net.minecraft.util.Identifier;
|
2021-07-13 15:07:56 +02:00
|
|
|
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.Set;
|
|
|
|
|
2021-10-03 13:43:16 +02:00
|
|
|
@SuppressWarnings("unused")
|
2021-07-13 15:07:56 +02:00
|
|
|
public class RecipeUtil {
|
2021-09-27 18:25:19 +02:00
|
|
|
private static final Set<Identifier> REMOVAL_BY_ID = new HashSet<>();
|
2021-07-13 15:07:56 +02:00
|
|
|
|
2021-09-27 18:25:19 +02:00
|
|
|
public static void removeRecipe(Identifier identifier) {
|
|
|
|
REMOVAL_BY_ID.add(identifier);
|
2021-07-13 15:07:56 +02:00
|
|
|
}
|
|
|
|
|
2021-09-27 18:25:19 +02:00
|
|
|
public static boolean isIdBlocked(Identifier identifier) {
|
|
|
|
return REMOVAL_BY_ID.contains(identifier);
|
2021-07-13 15:07:56 +02:00
|
|
|
}
|
|
|
|
}
|