Search in sources :

Example 1 with Keyed

use of com.sk89q.worldedit.registry.Keyed in project WorldGuard by EngineHub.

the class FlagHelperBox method appendRegistryFlagValue.

private void appendRegistryFlagValue(TextComponent.Builder builder, RegistryFlag<?> flag) {
    final Registry<?> registry = flag.getRegistry();
    String regName = registry.getName();
    Keyed currVal = region.getFlag(flag);
    if (currVal == null) {
        currVal = getInheritedValue(region, flag);
    }
    String display = currVal == null ? regName : currVal.getId();
    appendValueText(builder, flag, display, null);
}
Also used : Keyed(com.sk89q.worldedit.registry.Keyed)

Aggregations

Keyed (com.sk89q.worldedit.registry.Keyed)1