1.17: TechReborn compiles and runs, big thanks to @petabyteboy
Co-authored-by: Milan Pässler <milan@petabyte.dev>
This commit is contained in:
parent
c661de5254
commit
b33f4be5f4
212 changed files with 952 additions and 2025 deletions
|
@ -62,6 +62,18 @@ public class BiObseravable<A, B> {
|
|||
return b;
|
||||
}
|
||||
|
||||
public boolean hasA() {
|
||||
return a != null;
|
||||
}
|
||||
|
||||
public boolean hasB() {
|
||||
return b != null;
|
||||
}
|
||||
|
||||
public boolean hasBoth() {
|
||||
return hasA() && hasB();
|
||||
}
|
||||
|
||||
private void fireListeners() {
|
||||
if (a == null || b == null) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue