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);
}
Aggregations