Interface INetworkEventListener<E>
- All Known Subinterfaces:
IPartType<P,,S> IPartTypeActiveVariable<P,,S> IPartTypeReader<P,,S> IPartTypeWriter<P,S>
- All Known Implementing Classes:
BlockEntityActiveVariableBase,BlockEntityDelay,BlockEntityMaterializer,BlockEntityProxy,BlockEntityVariablestore,PartTypeAdapter,PartTypeAspects,PartTypeAudioReader,PartTypeAudioWriter,PartTypeBase,PartTypeBlockReader,PartTypeConfigurable,PartTypeConnector,PartTypeConnectorMonoDirectional,PartTypeConnectorOmniDirectional,PartTypeEffectWriter,PartTypeEntityReader,PartTypeEntityWriter,PartTypeExtraDimensionalReader,PartTypeFluidReader,PartTypeInventoryReader,PartTypeInventoryWriter,PartTypeMachineReader,PartTypeMachineWriter,PartTypeNetworkReader,PartTypePanel,PartTypePanelDisplay,PartTypePanelLightDynamic,PartTypePanelLightStatic,PartTypePanelVariableDriven,PartTypeReadBase,PartTypeRedstoneReader,PartTypeRedstoneWriter,PartTypeWorldReader,PartTypeWriteBase
public interface INetworkEventListener<E>
Interface to indicate delegates of a network element instance.
-
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends INetworkEvent>>booleanvoidonEvent(INetworkEvent event, E networkElement) Can be called at any time by theINetworkEventBus.
-
Method Details
-
hasEventSubscriptions
boolean hasEventSubscriptions()- Returns:
- If this should be registered to the network event bus for listening to network events.
-
getSubscribedEvents
Set<Class<? extends INetworkEvent>> getSubscribedEvents()- Returns:
- The static set of events this listener should be subscribed to.
-
onEvent
Can be called at any time by theINetworkEventBus. Only events in the set fromgetSubscribedEvents()will be received.- Parameters:
event- The received event.networkElement- The network element.
-