Full Imports and Code Format Optimization

This commit is contained in:
Kam committed 2025-03-12 20:12:01 -04:00
1 parent 250edf099c
commit 6815f579a7
1192 files changed
+60344 -62167

No files matched your search

@@ -8,66 +8,67 @@ import noppes.npcs.api.handler.data.ILine;
public class Line implements ILine {
public Line(){
}
public Line(String text){
this.text = text;
}
public Line() {
public String text = "";
public String sound = "";
public boolean hideText = false;
public ILine copy() {
Line line = new Line(text);
line.sound = sound;
line.hideText = hideText;
return line;
}
public ILine formatTarget(EntityLivingBase entity) {
if(entity == null)
return this;
Line line = (Line) copy();
if(entity instanceof EntityPlayer)
line.text = line.text.replace("@target", ((EntityPlayer) entity).getDisplayName());
else
line.text = line.text.replace("@target", entity.getCommandSenderName());
return line;
}
}
public ILine formatTarget(IEntityLivingBase entityLivingBase) {
return this.formatTarget(entityLivingBase.getMCEntity());
}
public Line(String text) {
this.text = text;
}
@Override
public String getText() {
return this.text;
}
public String text = "";
public String sound = "";
public boolean hideText = false;
@Override
public void setText(String text) {
this.text = text;
}
public ILine copy() {
Line line = new Line(text);
line.sound = sound;
line.hideText = hideText;
return line;
}
@Override
public String getSound() {
return this.sound;
}
public ILine formatTarget(EntityLivingBase entity) {
if (entity == null)
return this;
Line line = (Line) copy();
if (entity instanceof EntityPlayer)
line.text = line.text.replace("@target", ((EntityPlayer) entity).getDisplayName());
else
line.text = line.text.replace("@target", entity.getCommandSenderName());
return line;
}
@Override
public void setSound(String sound) {
this.sound = sound;
}
public ILine formatTarget(IEntityLivingBase entityLivingBase) {
return this.formatTarget(entityLivingBase.getMCEntity());
}
@Override
public void hideText(boolean hide) {
this.hideText = hide;
}
@Override
public String getText() {
return this.text;
}
@Override
public boolean hideText() {
return this.hideText;
}
@Override
public void setText(String text) {
this.text = text;
}
@Override
public String getSound() {
return this.sound;
}
@Override
public void setSound(String sound) {
this.sound = sound;
}
@Override
public void hideText(boolean hide) {
this.hideText = hide;
}
@Override
public boolean hideText() {
return this.hideText;
}
}