generated from tilera/1710mod
fix: add HelperLocation to original IConnection
This commit is contained in:
parent
715751f799
commit
ec424f6a12
|
@ -24,7 +24,7 @@ apply from: './gradle/scripts/mixins.gradle'
|
|||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
version = "1.1.1"
|
||||
version = "1.1.2"
|
||||
group= "dev.tilera"
|
||||
archivesBaseName = "auracore"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package dev.tilera.auracore.api.machine;
|
||||
|
||||
import dev.tilera.auracore.api.HelperLocation;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
public interface IConnection
|
||||
|
@ -22,15 +23,15 @@ public interface IConnection
|
|||
|
||||
float getMaxVis();
|
||||
|
||||
int getVisSuction(int x, int y, int z);
|
||||
int getVisSuction(HelperLocation loc);
|
||||
|
||||
void setVisSuction(int suction);
|
||||
|
||||
int getTaintSuction(int x, int y, int z);
|
||||
int getTaintSuction(HelperLocation loc);
|
||||
|
||||
void setTaintSuction(int suction);
|
||||
|
||||
void setSuction(int suction);
|
||||
|
||||
int getSuction(int x, int y, int z);
|
||||
int getSuction(HelperLocation loc);
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package dev.tilera.auracore.api.machine;
|
||||
|
||||
import dev.tilera.auracore.api.HelperLocation;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
|
@ -146,7 +147,7 @@ public class TileVisUser extends TileEntity implements IConnection
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getVisSuction(int x, int y, int z) {
|
||||
public int getVisSuction(HelperLocation loc) {
|
||||
return this.visSuction;
|
||||
}
|
||||
|
||||
|
@ -156,7 +157,7 @@ public class TileVisUser extends TileEntity implements IConnection
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getTaintSuction(int x, int y, int z) {
|
||||
public int getTaintSuction(HelperLocation loc) {
|
||||
return this.taintSuction;
|
||||
}
|
||||
|
||||
|
@ -172,7 +173,7 @@ public class TileVisUser extends TileEntity implements IConnection
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getSuction(int x, int y, int z) {
|
||||
public int getSuction(HelperLocation loc) {
|
||||
return Math.max(this.visSuction, this.taintSuction);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue