java.lang.Object
de.chojo.universalis.websocket.events.WsEvent<ListingUpdateEvent>
de.chojo.universalis.websocket.events.concrete.listing.impl.WsListingUpdateEvent
All Implemented Interfaces:
EventSupplier<ListingUpdateEvent>

public class WsListingUpdateEvent extends WsEvent<ListingUpdateEvent>
The listing update. Created by merging a WsListingRemoveEvent with a WsListingAddEvent
  • Constructor Details

    • WsListingUpdateEvent

      public WsListingUpdateEvent(Item item, World world, List<ListingView> added, List<ListingView> removed)
      Creates a new websocket listing update event.
      Parameters:
      item - item
      world - world
      added - added listings
      removed - removed listing
  • Method Details

    • added

      public List<ListingView> added()
      The added entries in this update
      Returns:
      list of listings
    • removed

      public List<ListingView> removed()
      The removed entries in this update
      Returns:
      list of listings
    • toEvent

      public ListingUpdateEvent toEvent()
      Description copied from interface: EventSupplier
      Converts the websocket event into an internal event
      Returns:
      event