Files
CustomNPC-Plus/src/main/java/noppes/npcs/util/GameProfileAlt.java
T

28 lines
594 B
Java
Raw Normal View History

2018-09-13 12:03:28 -04:00
package noppes.npcs.util;
2023-01-12 21:33:06 -05:00
import com.mojang.authlib.GameProfile;
2018-09-13 12:03:28 -04:00
import noppes.npcs.entity.EntityNPCInterface;
2023-01-12 21:33:06 -05:00
import java.util.UUID;
2018-09-13 12:03:28 -04:00
public class GameProfileAlt extends GameProfile{
private static final UUID id = UUID.randomUUID();
public EntityNPCInterface npc;
public GameProfileAlt() {
super(null, "customnpc");
}
@Override
public String getName() {
if(npc == null)
return super.getName();
return npc.getCommandSenderName();
}
@Override
public UUID getId(){
if(npc == null)
return id;
return npc.getPersistentID();
}
}