Package journeymap.api.v2.client.event
Class EntityRadarUpdateEvent
java.lang.Object
journeymap.api.v2.common.event.impl.JourneyMapEvent
journeymap.api.v2.common.event.impl.ClientEvent
journeymap.api.v2.client.event.EntityRadarUpdateEvent
This event is fired when JourneyMap updates an entity before it is displayed on the map.
This event is cancellable, when cancelled, it will prevent the entity from being displayed on the map.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class journeymap.api.v2.common.event.impl.ClientEvent
dimensionFields inherited from class journeymap.api.v2.common.event.impl.JourneyMapEvent
timestamp -
Constructor Summary
ConstructorsConstructorDescriptionEntityRadarUpdateEvent(UIState activeUiState, EntityRadarUpdateEvent.EntityType entityType, WrappedEntity wrappedEntity) -
Method Summary
Modifier and TypeMethodDescriptionGets the current active UIState, small chance it may be null.getType()Gets the entity type.Gets the wrapped entity, modifying the Entity itself will not change anything.Methods inherited from class journeymap.api.v2.common.event.impl.JourneyMapEvent
cancel, isCancellable, isCancelled
-
Constructor Details
-
EntityRadarUpdateEvent
public EntityRadarUpdateEvent(UIState activeUiState, EntityRadarUpdateEvent.EntityType entityType, WrappedEntity wrappedEntity)
-
-
Method Details
-
getActiveUiState
Gets the current active UIState, small chance it may be null.- Returns:
- - The UIState
-
getType
Gets the entity type.- Returns:
- - The entity type.
-
getWrappedEntity
Gets the wrapped entity, modifying the Entity itself will not change anything.- Returns:
- - The wrapped entity.
-