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 org.cyclops.integrateddynamics.core.network.event.NetworkElementAddEvent
NetworkElementAddEvent.Post, NetworkElementAddEvent.Pre
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel this event from further processing.boolean
Methods inherited from class org.cyclops.integrateddynamics.core.network.event.NetworkElementAddEvent
getNetworkElement
Methods inherited from class org.cyclops.integrateddynamics.core.network.event.NetworkEvent
getNetwork
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.network.event.INetworkEvent
getNetwork
-
Constructor Details
-
Pre
-
-
Method Details
-
cancel
public void cancel()Description copied from interface:ICancelableNetworkEvent
Cancel this event from further processing.- Specified by:
cancel
in interfaceICancelableNetworkEvent
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceled
in interfaceICancelableNetworkEvent
- Returns:
- If this event was canceled.
-