Interface Portal
-
- All Known Subinterfaces:
TwoDimensionalPortal
@DoNotStore public interface Portal
Represents a portal, such as anether portal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<ServerLocation>destination()Thelocationthis portal goes to.ServerLocationorigin()Thelocationthis portal is at.PortalTypetype()ThePortalType.
-
-
-
Method Detail
-
type
PortalType type()
ThePortalType.- Returns:
- The type
-
origin
ServerLocation origin()
Thelocationthis portal is at.- Returns:
- The origin
-
destination
Optional<ServerLocation> destination()
Thelocationthis portal goes to.- Returns:
- The destination or
Optional.empty()if unknown
-
-