mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 23:09:05 +00:00
Added several more functions to pre-existing classes:
-Spawner, Transport, Healer, Guard, Bard jobs received more functions. -Added more functions to the transporter role. -IRole: Added getNpc() function. -IAnimal, IEntityLiving, and IEntityLivingBase received more functions from their MC counterparts. -Nearly every function with that takes position/vector parameters now has an equivalent with IPos as a parameter instead.
This commit is contained in:
1 parent
112e82a09d
commit
e9a8f8cebc
51 files changed
+1025
-227
No files matched your search
@@ -250,7 +250,7 @@ public class JobSpawner extends JobInterface{
|
||||
return null;
|
||||
}
|
||||
|
||||
private boolean isEmpty(){
|
||||
public boolean isEmpty(){
|
||||
if(compound1 != null && compound1.hasKey("id"))
|
||||
return false;
|
||||
if(compound2 != null && compound2.hasKey("id"))
|
||||
@@ -365,7 +365,7 @@ public class JobSpawner extends JobInterface{
|
||||
return living;
|
||||
}
|
||||
|
||||
private NBTTagCompound getCompound(int i) {
|
||||
public NBTTagCompound getCompound(int i) {
|
||||
if(i <= 1 && compound1 != null && compound1.hasKey("id")){
|
||||
number = 1;
|
||||
return compound1;
|
||||
@@ -394,7 +394,7 @@ public class JobSpawner extends JobInterface{
|
||||
}
|
||||
|
||||
|
||||
private List<EntityLivingBase> getNearbySpawned(){
|
||||
public List<EntityLivingBase> getNearbySpawned(){
|
||||
List<EntityLivingBase> spawnList = new ArrayList<EntityLivingBase>();
|
||||
List<EntityLivingBase> list = npc.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, npc.boundingBox.expand(40, 40, 40));
|
||||
for(EntityLivingBase entity : list){
|
||||
|
||||
Reference in new issue
Block a user