Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public String getName()
- {
- String ret = this.name;
- if (MConf.get().factionNameForceUpperCase)
- {
- ret = ret.toUpperCase();
- }
- return ret;
- }
- public void setName(String name)
- {
- // Clean input
- String target = name;
- // Detect Nochange
- if (MUtil.equals(this.name, target)) return;
- // Apply
- this.name = target;
- // Mark as changed
- this.changed();
- }
- // FINER
- public String getComparisonName()
- {
- return MiscUtil.getComparisonString(this.getName());
- }
- public String getName(String prefix)
- {
- return prefix + this.getName();
- }
- public String getName(RelationParticipator observer)
- {
- if (observer == null) return getName();
- return this.getName(this.getColorTo(observer).toString());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement