Class WsListingUpdateEvent
java.lang.Object
de.chojo.universalis.websocket.events.WsEvent<ListingUpdateEvent>
de.chojo.universalis.websocket.events.concrete.listing.impl.WsListingUpdateEvent
- All Implemented Interfaces:
EventSupplier<ListingUpdateEvent>
The listing update. Created by merging a
WsListingRemoveEvent with a WsListingAddEvent-
Constructor Summary
ConstructorsConstructorDescriptionWsListingUpdateEvent(Item item, World world, List<ListingView> added, List<ListingView> removed) Creates a new websocket listing update event. -
Method Summary
-
Constructor Details
-
WsListingUpdateEvent
public WsListingUpdateEvent(Item item, World world, List<ListingView> added, List<ListingView> removed) Creates a new websocket listing update event.- Parameters:
item- itemworld- worldadded- added listingsremoved- removed listing
-
-
Method Details
-
added
The added entries in this update- Returns:
- list of listings
-
removed
The removed entries in this update- Returns:
- list of listings
-
toEvent
Description copied from interface:EventSupplierConverts the websocket event into an internal event- Returns:
- event
-