mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 02:39:05 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -5,24 +5,25 @@ import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class GameProfileAlt extends GameProfile{
|
||||
private static final UUID id = UUID.randomUUID();
|
||||
public EntityNPCInterface npc;
|
||||
public GameProfileAlt() {
|
||||
super(null, "customnpc");
|
||||
}
|
||||
public class GameProfileAlt extends GameProfile {
|
||||
private static final UUID id = UUID.randomUUID();
|
||||
public EntityNPCInterface npc;
|
||||
|
||||
@Override
|
||||
public GameProfileAlt() {
|
||||
super(null, "customnpc");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
if(npc == null)
|
||||
return super.getName();
|
||||
if (npc == null)
|
||||
return super.getName();
|
||||
return npc.getCommandSenderName();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public UUID getId(){
|
||||
if(npc == null)
|
||||
return id;
|
||||
return npc.getPersistentID();
|
||||
public UUID getId() {
|
||||
if (npc == null)
|
||||
return id;
|
||||
return npc.getPersistentID();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user