public final class RecipeBookOptions extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RecipeBookOptions.CategoryOption |
Modifier and Type | Field and Description |
---|---|
private static Map<RecipeBookCategory,com.mojang.datafixers.util.Pair<String,String>> |
CATEGORY_OPTION_NAMES |
private Map<RecipeBookCategory,RecipeBookOptions.CategoryOption> |
categoryOptions |
Modifier | Constructor and Description |
---|---|
|
RecipeBookOptions() |
private |
RecipeBookOptions(Map<RecipeBookCategory,RecipeBookOptions.CategoryOption> categoryOptions) |
Modifier and Type | Method and Description |
---|---|
RecipeBookOptions |
copy() |
void |
copyFrom(RecipeBookOptions other) |
boolean |
equals(Object object) |
static RecipeBookOptions |
fromPacket(PacketByteBuf buf) |
static RecipeBookOptions |
fromTag(CompoundTag tag) |
int |
hashCode() |
boolean |
isFilteringCraftable(RecipeBookCategory category) |
boolean |
isGuiOpen(RecipeBookCategory category) |
void |
setFilteringCraftable(RecipeBookCategory category,
boolean filtering) |
void |
setGuiOpen(RecipeBookCategory category,
boolean open) |
void |
toPacket(PacketByteBuf buf) |
void |
toTag(CompoundTag tag) |
private static final Map<RecipeBookCategory,com.mojang.datafixers.util.Pair<String,String>> CATEGORY_OPTION_NAMES
private final Map<RecipeBookCategory,RecipeBookOptions.CategoryOption> categoryOptions
private RecipeBookOptions(Map<RecipeBookCategory,RecipeBookOptions.CategoryOption> categoryOptions)
public RecipeBookOptions()
@Environment(value=CLIENT) public boolean isGuiOpen(RecipeBookCategory category)
public void setGuiOpen(RecipeBookCategory category, boolean open)
@Environment(value=CLIENT) public boolean isFilteringCraftable(RecipeBookCategory category)
public void setFilteringCraftable(RecipeBookCategory category, boolean filtering)
public static RecipeBookOptions fromPacket(PacketByteBuf buf)
public void toPacket(PacketByteBuf buf)
public static RecipeBookOptions fromTag(CompoundTag tag)
public void toTag(CompoundTag tag)
public RecipeBookOptions copy()
public void copyFrom(RecipeBookOptions other)