Interface PortalLogic
public interface PortalLogic
A type of portal, used to move
entities
one place to another.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic PortalLogic.Builder
builder()
static PortalLogic.Factory
factory()
finder()
boolean
teleport
(Entity entity, ServerLocation destination, boolean generateDestinationPortal)
-
Method Details
-
builder
-
factory
-
exitCalculator
Optional<PortalLogic.PortalExitCalculator> exitCalculator() -
finder
Optional<PortalLogic.PortalFinder> finder() -
generator
Optional<PortalLogic.PortalGenerator> generator() -
teleport
Teleports anEntity
through thisportal
.The location is meant to be a hint and no expectation should be made that the portal will be exactly at the location.
No assumption should be made that the generation of the destination portal will match the original portal, this is left up to the plugin dev to decide.
- Parameters:
entity
- The entitydestination
- The destinationgenerateDestinationPortal
- True if the portal should generate a destination one- Returns:
- True if teleport successful, false if not
-