Class RandomPortalDestinationInstance

java.lang.Object
org.mvplugins.multiverse.core.destination.DestinationInstance<RandomPortalDestinationInstance,RandomPortalDestination>
org.mvplugins.multiverse.portals.destination.RandomPortalDestinationInstance

public class RandomPortalDestinationInstance extends org.mvplugins.multiverse.core.destination.DestinationInstance<RandomPortalDestinationInstance,RandomPortalDestination>
  • Field Summary

    Fields inherited from class org.mvplugins.multiverse.core.destination.DestinationInstance

    destination
  • Constructor Summary

    Constructors
    Constructor
    Description
    RandomPortalDestinationInstance(@NotNull RandomPortalDestination destination, @NotNull PortalManager portalManager, @NotNull List<String> portalNames)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @NotNull org.mvplugins.multiverse.external.vavr.control.Option<String>
     
    @NotNull org.mvplugins.multiverse.external.vavr.control.Option<org.bukkit.Location>
    getLocation(@NotNull org.bukkit.entity.Entity teleportee)
     
    @NotNull org.mvplugins.multiverse.external.vavr.control.Option<org.bukkit.util.Vector>
    getVelocity(@NotNull org.bukkit.entity.Entity teleportee)
     
    protected @NotNull String
     

    Methods inherited from class org.mvplugins.multiverse.core.destination.DestinationInstance

    getDestination, getIdentifier, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getLocation

      @NotNull public @NotNull org.mvplugins.multiverse.external.vavr.control.Option<org.bukkit.Location> getLocation(@NotNull @NotNull org.bukkit.entity.Entity teleportee)
      Specified by:
      getLocation in class org.mvplugins.multiverse.core.destination.DestinationInstance<RandomPortalDestinationInstance,RandomPortalDestination>
    • getVelocity

      @NotNull public @NotNull org.mvplugins.multiverse.external.vavr.control.Option<org.bukkit.util.Vector> getVelocity(@NotNull @NotNull org.bukkit.entity.Entity teleportee)
      Specified by:
      getVelocity in class org.mvplugins.multiverse.core.destination.DestinationInstance<RandomPortalDestinationInstance,RandomPortalDestination>
    • checkTeleportSafety

      public boolean checkTeleportSafety()
      Specified by:
      checkTeleportSafety in class org.mvplugins.multiverse.core.destination.DestinationInstance<RandomPortalDestinationInstance,RandomPortalDestination>
    • getFinerPermissionSuffix

      @NotNull public @NotNull org.mvplugins.multiverse.external.vavr.control.Option<String> getFinerPermissionSuffix()
      Specified by:
      getFinerPermissionSuffix in class org.mvplugins.multiverse.core.destination.DestinationInstance<RandomPortalDestinationInstance,RandomPortalDestination>
    • serialise

      @NotNull protected @NotNull String serialise()
      Specified by:
      serialise in class org.mvplugins.multiverse.core.destination.DestinationInstance<RandomPortalDestinationInstance,RandomPortalDestination>