Interface EndGateway

    • Method Detail

      • getExitLocation

        Location getExitLocation()
        Gets the location that entities are teleported to when entering the gateway portal.

        If this block state is not placed the location's world will be null.

        Returns:
        the gateway exit location
      • setExitLocation

        void setExitLocation​(Location location)
        Sets the exit location that entities are teleported to when they enter the gateway portal.

        If this block state is not placed the location's world has to be null.

        Parameters:
        location - the new exit location
        Throws:
        IllegalArgumentException - for differing worlds
      • isExactTeleport

        boolean isExactTeleport()
        Gets whether this gateway will teleport entities directly to the exit location instead of finding a nearby location.
        Returns:
        true if the gateway is teleporting to the exact location
      • setExactTeleport

        void setExactTeleport​(boolean exact)
        Sets whether this gateway will teleport entities directly to the exit location instead of finding a nearby location.
        Parameters:
        exact - whether to teleport to the exact location