abstract class EventView
Class EventView. Provides eventview functionality for the Hytale server.
java.lang.Object > EventView
Field Summary
eventRegistry
protected
EventRegistry
eventRegistry
Field eventRegistry.
entityStoreRegistry
protected
ComponentRegistryProxy
entityStoreRegistry
Field entityStoreRegistry.
shutdown
protected
boolean
shutdown
Field shutdown.
Method Detail
EventView
public
protected
EventView
(final Class type, final EventType[] eventTypes, final NotificationType reusableEventNotification, @Nonnull final World world)
Method EventView.
- Parameters:
final Classtypefinal EventType[]eventTypesfinal NotificationTypereusableEventNotification@Nonnull final Worldworld
EventRegistry
public
( )
new
EventRegistry
(new CopyOnWriteArrayListMethod EventRegistry.
- Parameters:
newCopyOnWriteArrayList(
onWorldRemoved
public
void
onWorldRemoved
()
Method onWorldRemoved.
cleanup
public
void
cleanup
()
Method cleanup.
getSetCount
public
int
getSetCount
()
Method getSetCount.
forEach
public
void
forEach
(@Nonnull final IntObjectConsumer setConsumer, @Nonnull final Consumer> npcConsumer)
Method forEach.
- Parameters:
@Nonnull final IntObjectConsumersetConsumer@Nonnull final Consumer>npcConsumer
onEvent
protected
void
onEvent
(final int senderTypeId, final double x, final double y, final double z, final Ref initiator, final Ref skip, @Nonnull final ComponentAccessor componentAccessor, final EventType type)
Method onEvent.
- Parameters:
final intsenderTypeIdfinal doublexfinal doubleyfinal doublezfinal Refinitiatorfinal Refskip@Nonnull final ComponentAccessorcomponentAccessorfinal EventTypetype