package ns;

import rescuecore2.standard.entities.StandardEntity;
import rescuecore2.standard.entities.StandardEntityURN;
import rescuecore2.standard.entities.StandardWorldModel;

public class WorldTool {

    private StandardWorldModel world;

    public WorldTool(StandardWorldModel standardWorldModel) {
        this.world = standardWorldModel;
    }

    @SuppressWarnings("unchecked")
    public <E extends StandardEntity> void getEntity(WorldEvent<E> event) {
        for(StandardEntity entity : this.world.getEntitiesOfType(event.getType())) {
            try {
                event.event((E)entity);
            }
            catch(Exception e) {
                e.printStackTrace();
            }
        }
    }
}

@@ -108,251 +108,45 @@
 dard
-EntityURN;%0Aimport rescuecore2.standard.entities.StandardWorldModel;%0A%0Apublic class WorldTool %7B%0A%0A    private StandardWorldModel world;%0A%0A    public WorldTool(StandardWorldModel standardWorldModel) %7B%0A        this.world = standardWorldModel;%0A    %7D%0A
+WorldModel;%0A%0Apublic class WorldTool %7B
 %0A   
@@ -188,16 +188,23 @@
  public 
+static 
 %3CE exten
@@ -237,16 +237,42 @@
 tEntity(
+StandardWorldModel world, 
 WorldEve
@@ -326,13 +326,8 @@
 y : 
-this.
 worl

test system