Make DummySearchTree extend SearchTreeReloadable for compatibility
This commit is contained in:
parent
1cdd9fdaaa
commit
d06ba2b7bf
|
|
@ -1,14 +1,23 @@
|
||||||
package org.embeddedt.modernfix.searchtree;
|
package org.embeddedt.modernfix.searchtree;
|
||||||
|
|
||||||
import net.minecraft.client.util.IMutableSearchTree;
|
import net.minecraft.client.util.IMutableSearchTree;
|
||||||
|
import net.minecraft.client.util.SearchTree;
|
||||||
|
import net.minecraft.client.util.SearchTreeReloadable;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.function.Function;
|
||||||
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dummy search tree that stores nothing and returns nothing on searches.
|
* Dummy search tree that stores nothing and returns nothing on searches.
|
||||||
*/
|
*/
|
||||||
public class DummySearchTree<T> implements IMutableSearchTree<T> {
|
public class DummySearchTree<T> extends SearchTreeReloadable<T> implements IMutableSearchTree<T> {
|
||||||
|
public DummySearchTree() {
|
||||||
|
super(t -> Stream.empty());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void add(T pObj) {
|
public void add(T pObj) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user