Class WsListingEvent<T extends Event>
java.lang.Object
de.chojo.universalis.websocket.events.WsEvent<T>
de.chojo.universalis.websocket.events.concrete.listing.WsListingEvent<T>
- All Implemented Interfaces:
EventSupplier<T>
- Direct Known Subclasses:
WsListingAddEvent,WsListingRemoveEvent
A websocket listing event.
-
Constructor Summary
ConstructorsConstructorDescriptionWsListingEvent(Item item, World world, List<ListingView> listings) Create a new websocket listing event -
Method Summary
Modifier and TypeMethodDescriptionConverts theListingViewto aListingobject.listings()The listing views contained in this event.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.chojo.universalis.websocket.events.EventSupplier
toEvent
-
Constructor Details
-
WsListingEvent
Create a new websocket listing event- Parameters:
item- item idworld- world idlistings- listings
-
-
Method Details
-
listings
The listing views contained in this event.- Returns:
- unmodifiable list
-
asListing
Converts theListingViewto aListingobject.- Parameters:
world- world for the sale- Returns:
- list of sales
-