Interface PortalLogic.PortalExitCalculator
- Enclosing interface:
PortalLogic
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptioncalculatePortalExit
(ServerWorld from, Vector3i fromPos, Entity entity) Calculates a desired portal exit location to find an existing portal usingPortalLogic.PortalFinder
or generate a new one usingPortalLogic.PortalGenerator
inPortalLogic
-
Method Details
-
calculatePortalExit
Calculates a desired portal exit location to find an existing portal usingPortalLogic.PortalFinder
or generate a new one usingPortalLogic.PortalGenerator
inPortalLogic
- Parameters:
from
- the original worldfromPos
- the original positionentity
- the entity- Returns:
- the exit location if available
-