Interface PortalLogic.Factory
- Enclosing interface:
PortalLogic
public static interface PortalLogic.Factory
-
Method Summary
Modifier and TypeMethodDescriptionThe default vanillaBlockTypes.END_GATEWAY.Creates an end platform generatorThe default vanillaBlockTypes.END_PORTAL.The default vanillaBlockTypes.NETHER_PORTAL.netherPortalExitCalculator(ResourceKey origin, ResourceKey target) Creates a nether portal exit calculator using the default scaling between the given worlds.netherPortalExitCalculator(ResourceKey origin, ResourceKey target, double scale) Creates a nether portal exit calculator using the given scaling between the worlds.Creates a nether portal finderCreates a nether portal generatorFinds the given input locationportalOf(PortalLogic logic, ServerLocation position) Creates a portal with the given propertiesportalOf(PortalLogic logic, ServerLocation position, AABB aabb) Creates a portal with the given propertiesspawnCalculator(ResourceKey origin, ResourceKey target) Creates a portal exit calculator using the default world spawntargetCalculator(ResourceKey origin, ResourceKey target, Vector3d targetPos) Creates a portal exit calculator using the given fixed target position
-
Method Details
-
endPortal
PortalLogic endPortal()The default vanillaBlockTypes.END_PORTAL.- Returns:
- the portal type
-
endGateway
PortalLogic endGateway()The default vanillaBlockTypes.END_GATEWAY.- Returns:
- the portal type
-
netherPortal
PortalLogic netherPortal()The default vanillaBlockTypes.NETHER_PORTAL.- Returns:
- the portal type
-
netherPortalExitCalculator
Creates a nether portal exit calculator using the default scaling between the given worlds.- Parameters:
origin- the origin worldtarget- 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 worldtarget- the target worldscale- 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 worldtarget- the target worldtargetPos- the target position- Returns:
- the portal exit calculator
-
spawnCalculator
Creates a portal exit calculator using the default world spawn- Parameters:
origin- the origin worldtarget- the target world- Returns:
- the portal exit calculator
-
noOpFinder
PortalLogic.PortalFinder noOpFinder()Finds the given input location- Returns:
- the no op portal finder
-
portalOf
Creates a portal with the given properties- Parameters:
logic- the portal logicposition- the portal position- Returns:
- the portal
-
portalOf
Creates a portal with the given properties- Parameters:
logic- the portal logicposition- the portal positionaabb- the portals bounding box- Returns:
- the portal
-