mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 10:44:46 +00:00
Updated interfaces to have the proper functions. Documentation will focus around them, so they'll be better organized from now on.
This commit is contained in:
1 parent
aab550cdca
commit
c2546c3f82
22 files changed
+801
-355
No files matched your search
@@ -200,6 +200,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
entityID, entity.dimension
|
||||
);
|
||||
}
|
||||
|
||||
public void spawnParticle(ScriptParticle entityParticle) { entityParticle.spawnOnEntity(this); }
|
||||
|
||||
public int getEntityId(){
|
||||
@@ -357,6 +358,10 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
this.entity.setPosition((double)((float)pos.getX() + 0.5F), (double)pos.getY(), (double)((float)pos.getZ() + 0.5F));
|
||||
}
|
||||
|
||||
public int getDimension(){
|
||||
return entity.dimension;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param range The search range for entities around this entity
|
||||
* @return Array of entities within range
|
||||
|
||||
Reference in new issue
Block a user