add default, fix conflict
This commit is contained in:
@@ -153,10 +153,14 @@ public interface ICraftingPatternContainer {
|
||||
/**
|
||||
* @return whether the container is successfully connected to the inventory it wants to insert to
|
||||
*/
|
||||
boolean hasConnectedInventory();
|
||||
default boolean hasConnectedInventory() {
|
||||
return getConnectedInventory() != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return whether the container is successfully connected to the fluid inventory it wants to insert to
|
||||
*/
|
||||
boolean hasConnectedFluidInventory();
|
||||
default boolean hasConnectedFluidInventory() {
|
||||
return getConnectedFluidInventory() != null;
|
||||
}
|
||||
}
|
||||
|
@@ -552,14 +552,4 @@ public class CrafterNetworkNode extends NetworkNode implements ICraftingPatternC
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasConnectedInventory() {
|
||||
return getConnectedInventory() != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasConnectedFluidInventory() {
|
||||
return getConnectedFluidInventory() != null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user