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()
Thelocation
this portal goes to.ServerLocation
origin()
Thelocation
this portal is at.PortalType
type()
ThePortalType
.
-
-
-
Method Detail
-
type
PortalType type()
ThePortalType
.- Returns:
- The type
-
origin
ServerLocation origin()
Thelocation
this portal is at.- Returns:
- The origin
-
destination
Optional<ServerLocation> destination()
Thelocation
this portal goes to.- Returns:
- The destination or
Optional.empty()
if unknown
-
-