This commit is contained in:
Daniel Mills 2020-10-22 11:16:28 -04:00
parent 986250543e
commit 43562580d6
3 changed files with 31 additions and 29 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>bytecode.ninja</groupId> <groupId>bytecode.ninja</groupId>
<artifactId>Iris</artifactId> <artifactId>Iris</artifactId>
<version>1.0.22</version> <version>1.0.23</version>
<name>Iris</name> <name>Iris</name>
<properties> <properties>
<skip.copy>false</skip.copy> <skip.copy>false</skip.copy>

View File

@ -20,14 +20,14 @@ public class CitizensLink
return getCitizens() != null; return getCitizens() != null;
} }
public Entity spawn(EntityType name, Location a) public Entity spawn(EntityType type, String npcType, Location a)
{ {
if(!supported()) if(!supported())
{ {
return null; return null;
} }
NPC npc = CitizensAPI.getNPCRegistry().createNPC(name, ""); NPC npc = CitizensAPI.getNPCRegistry().createNPC(type, "");
npc.spawn(a); npc.spawn(a);
return npc.getEntity(); return npc.getEntity();
} }

View File

@ -295,7 +295,7 @@ public class IrisEntity extends IrisRegistrant
if(isCitizens()) if(isCitizens())
{ {
return Iris.linkCitizens.spawn(getType(), at); // TODO: return Iris.linkCitizens.spawn(getType(), at); SPAWN SOME TYPE TOO
} }
return at.getWorld().spawnEntity(at, getType()); return at.getWorld().spawnEntity(at, getType());
@ -308,6 +308,8 @@ public class IrisEntity extends IrisRegistrant
public boolean isCitizens() public boolean isCitizens()
{ {
return Iris.linkCitizens.supported(); // TODO Need to determine how to tell if entity needs to be Citizen NPC (eg. getCitizensType()) return false;
// TODO: return Iris.linkCitizens.supported() && someType is not empty;
} }
} }