Interface PortalLogic.Builder
- All Superinterfaces:
ResettableBuilder<PortalLogic,
PortalLogic.Builder>
- Enclosing interface:
PortalLogic
public static interface PortalLogic.Builder
extends ResettableBuilder<PortalLogic,PortalLogic.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionaddPortal
(PortalLogic.PortalExitCalculator calulator, PortalLogic.PortalFinder finder, PortalLogic.PortalGenerator generator) Adds a portal to the builder.<T extends PortalLogic.PortalExitCalculator & PortalLogic.PortalFinder & PortalLogic.PortalGenerator>
PortalLogic.BuilderaddPortal
(T logic) default PortalLogic.Builder
addPortalWithFinder
(PortalLogic.PortalExitCalculator calulator, PortalLogic.PortalFinder finder) default PortalLogic.Builder
addPortalWithGenerator
(PortalLogic.PortalExitCalculator calulator, PortalLogic.PortalGenerator generator) default PortalLogic.Builder
addSimplePortal
(PortalLogic.PortalExitCalculator calulator) build()
Methods inherited from interface org.spongepowered.api.util.ResettableBuilder
reset
-
Method Details
-
addSimplePortal
-
addPortalWithFinder
default PortalLogic.Builder addPortalWithFinder(PortalLogic.PortalExitCalculator calulator, PortalLogic.PortalFinder finder) -
addPortalWithGenerator
default PortalLogic.Builder addPortalWithGenerator(PortalLogic.PortalExitCalculator calulator, PortalLogic.PortalGenerator generator) -
addPortal
PortalLogic.Builder addPortal(PortalLogic.PortalExitCalculator calulator, PortalLogic.PortalFinder finder, PortalLogic.PortalGenerator generator) Adds a portal to the builder.For a portal to work it needs to calculate a valid exit location then find an existing or generate a new portal
- Parameters:
calulator
- the portal exit calculatorfinder
- the portal findergenerator
- the portal generator- Returns:
- this builder for chaining
-
addPortal
<T extends PortalLogic.PortalExitCalculator & PortalLogic.PortalFinder & PortalLogic.PortalGenerator> PortalLogic.Builder addPortal(T logic) -
build
PortalLogic build()
-