Package journeymap.api.v2.client.event
Class InfoSlotDisplayEvent
java.lang.Object
journeymap.api.v2.common.event.impl.JourneyMapEvent
journeymap.api.v2.common.event.impl.ClientEvent
journeymap.api.v2.client.event.InfoSlotDisplayEvent
-
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
ConstructorsConstructorDescriptionInfoSlotDisplayEvent(LinkedHashMap<String, InfoSlotDisplayEvent.Position> infoSlotMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBefore(String key, InfoSlotDisplayEvent.Position position) This will put it at the top, of either the top of minimap slots or bottoms of minimap slots.voidaddLast(String key, InfoSlotDisplayEvent.Position position) This will add a slot to the bottom, of either the bottom of minimap slots or bottom of minimap slots.Gets the map, remove, add, replace.Methods inherited from class journeymap.api.v2.common.event.impl.JourneyMapEvent
cancel, isCancellable, isCancelled
-
Constructor Details
-
InfoSlotDisplayEvent
-
-
Method Details
-
addBefore
This will put it at the top, of either the top of minimap slots or bottoms of minimap slots.- Parameters:
key- - the key of the registered info slot.position- - Position (top or bottom of minimap)
-
addLast
This will add a slot to the bottom, of either the bottom of minimap slots or bottom of minimap slots.- Parameters:
key- - the key of the registered info slot.position- - Position (top or bottom of minimap)
-
getInfoSlotMap
Gets the map, remove, add, replace. Be careful!- Returns:
- the map
-