2016-09-17 19:05:56 +01:00
|
|
|
/*
|
2017-05-21 09:47:08 +01:00
|
|
|
* This file is part of LuckPerms, licensed under the MIT License.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) lucko (Luck) <luck@lucko.me>
|
|
|
|
|
* Copyright (c) contributors
|
2016-09-17 19:05:56 +01:00
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
|
*
|
|
|
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
|
|
|
* copies or substantial portions of the Software.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
|
* SOFTWARE.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-10-05 21:40:54 +01:00
|
|
|
package me.lucko.luckperms.api;
|
2016-09-17 19:05:56 +01:00
|
|
|
|
2016-10-05 21:40:54 +01:00
|
|
|
/**
|
2017-01-16 20:01:41 +00:00
|
|
|
* A node with a traceable origin
|
2016-12-02 20:20:24 +00:00
|
|
|
*
|
2016-10-05 21:40:54 +01:00
|
|
|
* @since 2.11
|
|
|
|
|
*/
|
|
|
|
|
public interface LocalizedNode extends Node {
|
2016-09-17 19:05:56 +01:00
|
|
|
|
2016-10-05 21:40:54 +01:00
|
|
|
/**
|
2017-01-16 20:01:41 +00:00
|
|
|
* Gets the delegate node
|
2016-12-02 20:20:24 +00:00
|
|
|
*
|
2016-10-05 21:40:54 +01:00
|
|
|
* @return the node this instance is representing
|
|
|
|
|
*/
|
|
|
|
|
Node getNode();
|
2016-09-17 19:05:56 +01:00
|
|
|
|
2016-10-05 21:40:54 +01:00
|
|
|
/**
|
|
|
|
|
* Gets the location where the {@link Node} is inherited from
|
2016-12-02 20:20:24 +00:00
|
|
|
*
|
2016-10-05 21:40:54 +01:00
|
|
|
* @return where the node was inherited from. Will not return null.
|
|
|
|
|
* @see PermissionHolder#getObjectName()
|
|
|
|
|
*/
|
|
|
|
|
String getLocation();
|
2016-09-17 19:05:56 +01:00
|
|
|
|
|
|
|
|
}
|