Package net.minecraft.client.multiplayer
Class SessionSearchTrees
java.lang.Object
net.minecraft.client.multiplayer.SessionSearchTrees
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SessionSearchTrees.Key
static final SessionSearchTrees.Key
private CompletableFuture
<SearchTree<ItemStack>> private CompletableFuture
<SearchTree<ItemStack>> private static final SessionSearchTrees.Key
private CompletableFuture
<SearchTree<RecipeCollection>> private final Map
<SessionSearchTrees.Key, Runnable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTooltipLines
(Stream<ItemStack> pItems, Item.TooltipContext pContext, TooltipFlag pTooltipFlag) void
recipes()
private void
register
(SessionSearchTrees.Key pKey, Runnable pReloader) void
updateCreativeTags
(List<ItemStack> pItems) void
updateCreativeTags
(List<ItemStack> pItems, SessionSearchTrees.Key key) void
updateCreativeTooltips
(HolderLookup.Provider pRegistries, List<ItemStack> pItems) void
updateCreativeTooltips
(HolderLookup.Provider pRegistries, List<ItemStack> pItems, SessionSearchTrees.Key key) void
updateRecipes
(ClientRecipeBook pRecipeBook, RegistryAccess.Frozen pRegistries)
-
Field Details
-
RECIPE_COLLECTIONS
-
CREATIVE_NAMES
-
CREATIVE_TAGS
-
creativeByNameSearch
-
creativeByTagSearch
-
recipeSearch
-
reloaders
-
-
Constructor Details
-
SessionSearchTrees
public SessionSearchTrees()
-
-
Method Details
-
register
-
rebuildAfterLanguageChange
public void rebuildAfterLanguageChange() -
getTooltipLines
private static Stream<String> getTooltipLines(Stream<ItemStack> pItems, Item.TooltipContext pContext, TooltipFlag pTooltipFlag) -
updateRecipes
-
recipes
-
updateCreativeTags
-
updateCreativeTags
-
creativeTagSearch
-
creativeTagSearch
-
updateCreativeTooltips
-
updateCreativeTooltips
public void updateCreativeTooltips(HolderLookup.Provider pRegistries, List<ItemStack> pItems, SessionSearchTrees.Key key) -
creativeNameSearch
-
creativeNameSearch
-