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:
Luis C.M committed 2022-05-11 16:31:14 -05:00
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