move util.Text from client to api and make sure () works (#1460)

This commit is contained in:
Lucwousin
2019-08-27 14:15:34 +02:00
committed by Kyle
parent 6590304f2e
commit 0f347f3b91
80 changed files with 336 additions and 308 deletions

View File

@@ -26,7 +26,6 @@ package net.runelite.api;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.runelite.api.util.Text;
@@ -84,6 +83,7 @@ public class MenuEntry
this.param0 = param0;
this.param1 = param1;
this.forceLeftClick = forceLeftClick;
this.standardizedTarget = Text.standardize(target, true);
}
public static MenuEntry copy(MenuEntry src)
@@ -102,19 +102,8 @@ public class MenuEntry
public void setTarget(String target)
{
this.target = target;
this.standardizedTarget = null;
this.standardizedTarget = Text.standardize(target, true);
}
@Getter(AccessLevel.NONE)
private String standardizedTarget;
public String getStandardizedTarget()
{
if (standardizedTarget == null)
{
standardizedTarget = Text.standardize(target, true);
}
return standardizedTarget;
}
}