2016-07-30 17:07:32 +02:00
|
|
|
package de.ellpeck.actuallyadditions.api.laser;
|
|
|
|
|
|
|
|
import io.netty.util.internal.ConcurrentSet;
|
|
|
|
|
2019-05-02 09:10:29 +02:00
|
|
|
public class Network {
|
2016-07-30 17:07:32 +02:00
|
|
|
|
2019-02-27 19:53:05 +01:00
|
|
|
public final ConcurrentSet<IConnectionPair> connections = new ConcurrentSet<>();
|
2016-10-31 19:05:29 +01:00
|
|
|
public int changeAmount;
|
2016-07-30 17:07:32 +02:00
|
|
|
|
|
|
|
@Override
|
2019-05-02 09:10:29 +02:00
|
|
|
public String toString() {
|
2016-07-30 17:07:32 +02:00
|
|
|
return this.connections.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2019-05-02 09:10:29 +02:00
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (obj instanceof Network) {
|
|
|
|
if (this.connections.equals(((Network) obj).connections)) { return true; }
|
2016-07-30 17:07:32 +02:00
|
|
|
}
|
|
|
|
return super.equals(obj);
|
|
|
|
}
|
|
|
|
}
|