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

public abstract class WsListingEvent<T extends Event> extends WsEvent<T>
A websocket listing event.
  • Constructor Details

    • WsListingEvent

      public WsListingEvent(Item item, World world, List<ListingView> listings)
      Create a new websocket listing event
      Parameters:
      item - item id
      world - world id
      listings - listings
  • Method Details

    • listings

      public List<ListingView> listings()
      The listing views contained in this event.
      Returns:
      unmodifiable list
    • asListing

      public List<Listing> asListing(World world)
      Converts the ListingView to a Listing object.
      Parameters:
      world - world for the sale
      Returns:
      list of sales