Interface Portal
- All Known Subinterfaces:
TwoDimensionalPortal
Represents a portal, such as a
nether portal
.-
Method Summary
Modifier and TypeMethodDescriptionThelocation
this portal goes to.origin()
Thelocation
this portal is at.type()
ThePortalType
.
-
Method Details
-
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
-