Class PortalSetupXMLReader


public class PortalSetupXMLReader extends EntitySetupXMLReader
A portal entity setup xml reader.
  • Constructor Details

    • PortalSetupXMLReader

      public PortalSetupXMLReader()
  • Method Details

    • read

      protected PortalSetupDescriptor read(Element element, int x, int y, Object identifier)
      Create a portal setup descriptor.
      Parameters:
      element - The entity setup XML element.
      x - The X coordinate.
      y - The Y coordinate.
      identifier - The portal identifier.
      Returns:
      A portal setup descriptor.
    • readDestination

      protected void readDestination(PortalSetupDescriptor desc, Element element)
      Read destination information from an XML element.
      Parameters:
      desc - The descriptor to load.
      element - The XML element.
    • read

      protected EntitySetupDescriptor read(Element element, int x, int y)
      Create a setup descriptor from XML data.
      Overrides:
      read in class EntitySetupXMLReader
      Parameters:
      element - The descriptor XML element.
      x - The X coordinate.
      y - The Y coordinate.
      Returns:
      A setup descriptor, or null if invalid.