mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
28 lines
591 B
Java
28 lines
591 B
Java
package vazkii.botania.api.mana;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
public class TileSignature {
|
|
|
|
public final TileEntity tile;
|
|
public final boolean remoteWorld;
|
|
|
|
public TileSignature(TileEntity tile, boolean remoteWorld) {
|
|
this.tile = tile;
|
|
this.remoteWorld = remoteWorld;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Boolean.hashCode(remoteWorld) ^ System.identityHashCode(tile);
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
return o instanceof TileSignature
|
|
&& tile == ((TileSignature) o).tile
|
|
&& remoteWorld == ((TileSignature) o).remoteWorld;
|
|
}
|
|
|
|
}
|