public class ServerRecipeBook extends RecipeBook
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
recipes, toBeDisplayed
Constructor and Description |
---|
ServerRecipeBook() |
Modifier and Type | Method and Description |
---|---|
void |
fromTag(CompoundTag tag,
RecipeManager recipeManager) |
private void |
handleList(ListTag list,
Consumer<Recipe<?>> handler,
RecipeManager recipeManager) |
int |
lockRecipes(Collection<Recipe<?>> recipes,
ServerPlayerEntity player) |
void |
sendInitRecipesPacket(ServerPlayerEntity player) |
private void |
sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action,
ServerPlayerEntity player,
List<Identifier> recipeIds) |
CompoundTag |
toTag() |
int |
unlockRecipes(Collection<Recipe<?>> recipes,
ServerPlayerEntity player) |
add, add, contains, contains, copyFrom, display, display, getOptions, isFilteringCraftable, isFilteringCraftable, isGuiOpen, onRecipeDisplayed, remove, remove, setCategoryOptions, setFilteringCraftable, setGuiOpen, setOptions, shouldDisplay
private static final Logger LOGGER
public int unlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)
public int lockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)
private void sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action, ServerPlayerEntity player, List<Identifier> recipeIds)
public CompoundTag toTag()
public void fromTag(CompoundTag tag, RecipeManager recipeManager)
private void handleList(ListTag list, Consumer<Recipe<?>> handler, RecipeManager recipeManager)
public void sendInitRecipesPacket(ServerPlayerEntity player)