Class NetworkElementAddEvent.Pre
java.lang.Object
org.cyclops.integrateddynamics.core.network.event.NetworkEvent
org.cyclops.integrateddynamics.core.network.event.NetworkElementAddEvent
org.cyclops.integrateddynamics.core.network.event.NetworkElementAddEvent.Pre
- All Implemented Interfaces:
ICancelableNetworkEvent, INetworkEvent
- Enclosing class:
NetworkElementAddEvent
public static class NetworkElementAddEvent.Pre
extends NetworkElementAddEvent
implements ICancelableNetworkEvent
A cancelable event before the element is added to the network.
Canceling this event will prevent the network element from being added.
-
Nested Class Summary
Nested classes/interfaces inherited from class NetworkElementAddEvent
NetworkElementAddEvent.Post, NetworkElementAddEvent.Pre -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel this event from further processing.booleanMethods inherited from class NetworkElementAddEvent
getNetworkElementMethods inherited from class NetworkEvent
getNetworkMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface INetworkEvent
getNetwork
-
Constructor Details
-
Pre
-
-
Method Details
-
cancel
public void cancel()Description copied from interface:ICancelableNetworkEventCancel this event from further processing.- Specified by:
cancelin interfaceICancelableNetworkEvent
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceICancelableNetworkEvent- Returns:
- If this event was canceled.
-