Add Citizens support to IrisEntity.java

This commit is contained in:
Andrew 2020-10-18 11:44:30 -07:00
parent e8629fab66
commit 16d746fb8d

View File

@ -272,6 +272,11 @@ public class IrisEntity extends IrisRegistrant
return Iris.linkMythicMobs.spawn(getMythicalType(), at);
}
if(isCitizens())
{
return Iris.linkCitizens.spawn(getType(), at);
}
return at.getWorld().spawnEntity(at, getType());
}
@ -279,4 +284,9 @@ public class IrisEntity extends IrisRegistrant
{
return Iris.linkMythicMobs.supported() && !getMythicalType().trim().isEmpty();
}
public boolean isCitizens()
{
return Iris.linkCitizens.supported(); // TODO Need to determine how to tell if entity needs to be Citizen NPC (eg. getCitizensType())
}
}