Interface PortalLogic.Factory

Enclosing interface:
PortalLogic

public static interface PortalLogic.Factory
  • Method Details

    • endPortal

      PortalLogic endPortal()
      The default vanilla BlockTypes.END_PORTAL.
      Returns:
      the portal type
    • endGateway

      PortalLogic endGateway()
      The default vanilla BlockTypes.END_GATEWAY.
      Returns:
      the portal type
    • netherPortal

      PortalLogic netherPortal()
      The default vanilla BlockTypes.NETHER_PORTAL.
      Returns:
      the portal type
    • netherPortalExitCalculator

      PortalLogic.PortalExitCalculator netherPortalExitCalculator(ResourceKey origin, ResourceKey target)
      Creates a nether portal exit calculator using the default scaling between the given worlds.
      Parameters:
      origin - the origin world
      target - the target world
      Returns:
      The portal exit calculator
    • netherPortalExitCalculator

      PortalLogic.PortalExitCalculator netherPortalExitCalculator(ResourceKey origin, ResourceKey target, double scale)
      Creates a nether portal exit calculator using the given scaling between the worlds.
      Parameters:
      origin - the origin world
      target - the target world
      scale - the scale
      Returns:
      The portal exit calculator
    • netherPortalFinder

      PortalLogic.PortalFinder netherPortalFinder()
      Creates a nether portal finder
      Returns:
      the portal finder
    • netherPortalGenerator

      PortalLogic.PortalGenerator netherPortalGenerator()
      Creates a nether portal generator
      Returns:
      the portal generator
    • endPlatformGenerator

      PortalLogic.PortalGenerator endPlatformGenerator()
      Creates an end platform generator
      Returns:
      the end platform generator
    • targetCalculator

      PortalLogic.PortalExitCalculator targetCalculator(ResourceKey origin, ResourceKey target, Vector3d targetPos)
      Creates a portal exit calculator using the given fixed target position
      Parameters:
      origin - the origin world
      target - the target world
      targetPos - the target position
      Returns:
      the portal exit calculator
    • spawnCalculator

      PortalLogic.PortalExitCalculator spawnCalculator(ResourceKey origin, ResourceKey target)
      Creates a portal exit calculator using the default world spawn
      Parameters:
      origin - the origin world
      target - the target world
      Returns:
      the portal exit calculator
    • noOpFinder

      Finds the given input location
      Returns:
      the no op portal finder
    • portalOf

      Portal portalOf(PortalLogic logic, ServerLocation position)
      Creates a portal with the given properties
      Parameters:
      logic - the portal logic
      position - the portal position
      Returns:
      the portal
    • portalOf

      Portal portalOf(PortalLogic logic, ServerLocation position, AABB aabb)
      Creates a portal with the given properties
      Parameters:
      logic - the portal logic
      position - the portal position
      aabb - the portals bounding box
      Returns:
      the portal