ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/laser/Network.java

33 lines
895 B
Java
Raw Normal View History

/*
* This file ("Network.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.api.laser;
import io.netty.util.internal.ConcurrentSet;
2019-05-02 09:10:29 +02:00
public class Network {
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;
@Override
2019-05-02 09:10:29 +02:00
public String toString() {
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; }
}
return super.equals(obj);
}
}