Interface PortalLogic
public interface PortalLogic
A type of portal, used to move 
entities one place to another.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interface
- 
Method SummaryModifier and TypeMethodDescriptionstatic PortalLogic.Builderbuilder()static PortalLogic.Factoryfactory()finder()booleanteleport(Entity entity, ServerLocation destination, boolean generateDestinationPortal) 
- 
Method Details- 
builder
- 
factory
- 
exitCalculatorOptional<PortalLogic.PortalExitCalculator> exitCalculator()
- 
finderOptional<PortalLogic.PortalFinder> finder()
- 
generatorOptional<PortalLogic.PortalGenerator> generator()
- 
teleportTeleports anEntitythrough 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 entity
- destination- The destination
- generateDestinationPortal- True if the portal should generate a destination one
- Returns:
- True if teleport successful, false if not
 
 
-