public class SearchTreeExtender
extends java.lang.Object
implements net.minecraftforge.resource.ISelectiveResourceReloadListener
Constructor and Description |
---|
SearchTreeExtender() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
addToTree(net.minecraft.client.util.SearchTreeReloadable<net.minecraft.item.ItemStack> tree,
java.util.Collection<T> entries,
java.util.function.Function<T,java.util.List<com.mojang.datafixers.util.Pair<java.lang.String,net.minecraft.item.ItemStack>>> function) |
void |
onResourceManagerReload(net.minecraft.resources.IResourceManager manager,
java.util.function.Predicate<net.minecraftforge.resource.IResourceType> resourcePredicate) |
static void |
reloadSearchTrees() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onResourceManagerReload
public void onResourceManagerReload(net.minecraft.resources.IResourceManager manager, java.util.function.Predicate<net.minecraftforge.resource.IResourceType> resourcePredicate)
onResourceManagerReload
in interface net.minecraftforge.resource.ISelectiveResourceReloadListener
public static void reloadSearchTrees()
public static <T> void addToTree(net.minecraft.client.util.SearchTreeReloadable<net.minecraft.item.ItemStack> tree, java.util.Collection<T> entries, java.util.function.Function<T,java.util.List<com.mojang.datafixers.util.Pair<java.lang.String,net.minecraft.item.ItemStack>>> function)