Research system progress

This commit is contained in:
Anuken
2020-06-19 19:31:14 -04:00
parent 08ac91359b
commit 6bcc103cf7
59 changed files with 393 additions and 415 deletions
+3 -3
View File
@@ -388,12 +388,12 @@ public class Block extends UnlockableContent{
}
/** Configure when a null value is passed.*/
public void configClear(Cons<Tilec> cons){
configurations.put(void.class, (tile, value) -> cons.get((Tilec)tile));
public <E extends Tilec> void configClear(Cons<E> cons){
configurations.put(void.class, (tile, value) -> cons.get((E)tile));
}
/** Listen for a config by class type. */
public <T> void config(Class<T> type, Cons2<Tilec, T> config){
public <T, E extends Tilec> void config(Class<T> type, Cons2<E, T> config){
configurations.put(type, config);
}