net.minecraft.server.network

public class ServerRecipeBook

extends RecipeBook

net.minecraft.stats.ServerRecipeBook
net.minecraft.class_3441
net.minecraft.server.network.ServerRecipeBook

Field summary

Modifier and TypeField
public static final String
RECIPE_BOOK_TAG
field_29820
RECIPE_BOOK_KEY
private static final org.slf4j.Logger
LOGGER
field_15303
LOGGER
private final ServerRecipeBook$DisplayCollector
displayResolver
field_54552
collector
protected final Set<RegistryKey<Recipe<?>>>
known
field_54550
unlocked
protected final Set<RegistryKey<Recipe<?>>>
highlight
field_54551
highlighted

Constructor summary

ModifierConstructor
public (ServerRecipeBook$DisplayCollector collector)

Method summary

Modifier and TypeMethod
public void
add(ResourceKey<Recipe<?>> id)
method_64588(class_5321<class_1860<?>> arg0)
unlock(RegistryKey<Recipe<?>> recipeKey)
public boolean
contains(ResourceKey<Recipe<?>> id)
method_64593(class_5321<class_1860<?>> arg0)
isUnlocked(RegistryKey<Recipe<?>> recipeKey)
public void
remove(ResourceKey<Recipe<?>> id)
method_64594(class_5321<class_1860<?>> arg0)
lock(RegistryKey<Recipe<?>> recipeKey)
public void
removeHighlight(ResourceKey<Recipe<?>> id)
method_64595(class_5321<class_1860<?>> arg0)
unmarkHighlighted(RegistryKey<Recipe<?>> recipeKey)
private void
addHighlight(ResourceKey<Recipe<?>> id)
method_64596(class_5321<class_1860<?>> arg0)
markHighlighted(RegistryKey<Recipe<?>> recipeKey)
public int
addRecipes(Collection<RecipeHolder<?>> recipes, ServerPlayer player)
method_14903(Collection<class_8786<?>> arg0, class_3222 arg1)
unlockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player)
public int
removeRecipes(Collection<RecipeHolder<?>> recipes, ServerPlayer player)
method_14900(Collection<class_8786<?>> arg0, class_3222 arg1)
lockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player)
private void
loadRecipes(List<ResourceKey<Recipe<?>>> recipes, Consumer<ResourceKey<Recipe<?>>> recipeAddingMethod, Predicate<ResourceKey<Recipe<?>>> validator)
method_20732(List<class_5321<class_1860<?>>> arg0, Consumer<class_5321<class_1860<?>>> arg1, Predicate<class_5321<class_1860<?>>> arg2)
handleList(List<RegistryKey<Recipe<?>>> recipes, Consumer<RegistryKey<Recipe<?>>> handler, Predicate<RegistryKey<Recipe<?>>> validPredicate)
public void
sendInitialRecipeBook(ServerPlayer player)
method_14904(class_3222 arg0)
sendInitRecipesPacket(ServerPlayerEntity player)
public void
copyOverData(ServerRecipeBook bookToCopy)
method_64589(class_3441 arg0)
copyFrom(ServerRecipeBook recipeBook)
public ServerRecipeBook$Packed
pack()
method_71344()
pack()
private void
apply(ServerRecipeBook$Packed packed)
method_71342(class_3441$class_11328 arg0)
unpack(ServerRecipeBook$Packed packed)
public void
loadUntrusted(ServerRecipeBook$Packed packed, Predicate<ResourceKey<Recipe<?>>> validator)
method_71343(class_3441$class_11328 arg0, Predicate<class_5321<class_1860<?>>> arg1)
unpack(ServerRecipeBook$Packed packed, Predicate<RegistryKey<Recipe<?>>> validPredicate)
private void
lambda$sendInitialRecipeBook$0(List arg0, ResourceKey arg1, RecipeDisplayEntry arg2)
method_64590(List arg0, class_5321 arg1, class_10297 arg2)
method_64590(List arg0, RegistryKey arg1, RecipeDisplayEntry display)
private static void
lambda$removeRecipes$0(List arg0, RecipeDisplayEntry arg1)
method_64592(List arg0, class_10297 arg1)
method_64592(List arg0, RecipeDisplayEntry display)
private static void
lambda$addRecipes$0(List arg0, RecipeHolder arg1, RecipeDisplayEntry arg2)
method_64591(List arg0, class_8786 arg1, class_10297 arg2)
method_64591(List arg0, RecipeEntry arg1, RecipeDisplayEntry display)