mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
Add Citizens support to IrisEntity.java
This commit is contained in:
parent
e8629fab66
commit
16d746fb8d
@ -272,6 +272,11 @@ public class IrisEntity extends IrisRegistrant
|
|||||||
return Iris.linkMythicMobs.spawn(getMythicalType(), at);
|
return Iris.linkMythicMobs.spawn(getMythicalType(), at);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isCitizens())
|
||||||
|
{
|
||||||
|
return Iris.linkCitizens.spawn(getType(), at);
|
||||||
|
}
|
||||||
|
|
||||||
return at.getWorld().spawnEntity(at, getType());
|
return at.getWorld().spawnEntity(at, getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,4 +284,9 @@ public class IrisEntity extends IrisRegistrant
|
|||||||
{
|
{
|
||||||
return Iris.linkMythicMobs.supported() && !getMythicalType().trim().isEmpty();
|
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())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user