Files
Coalgov/CoalGov/src/main/java/com/librewiki/coalgov/model/CoalNpc.java
2026-07-11 02:06:53 +00:00

47 lines
1.0 KiB
Java

package com.librewiki.coalgov.model;
import java.util.UUID;
public record CoalNpc(
long id,
int citizensId,
UUID accountUuid,
String npcType,
String name,
long zoneId,
String world,
double x,
double y,
double z,
String role,
String workWorld,
Double workX,
Double workY,
Double workZ,
int hunger,
long lastFoodAt
) {
public CoalNpc(
long id,
int citizensId,
UUID accountUuid,
String npcType,
String name,
long zoneId,
String world,
double x,
double y,
double z
) {
this(id, citizensId, accountUuid, npcType, name, zoneId, world, x, y, z, "", null, null, null, null, 20, 0L);
}
public boolean trader() {
return npcType.equalsIgnoreCase("TRADER");
}
public boolean worker() {
return npcType.equalsIgnoreCase("WORKER");
}
}