ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/laser/Network.java
Shadows_of_Fire 0d8f38710e Auto cleanup
2019-02-27 13:53:05 -05:00

35 lines
915 B
Java

/*
* 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
*
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.api.laser;
import io.netty.util.internal.ConcurrentSet;
public class Network{
public final ConcurrentSet<IConnectionPair> connections = new ConcurrentSet<>();
public int changeAmount;
@Override
public String toString(){
return this.connections.toString();
}
@Override
public boolean equals(Object obj){
if(obj instanceof Network){
if(this.connections.equals(((Network)obj).connections)){
return true;
}
}
return super.equals(obj);
}
}