Implemented several more events for players, including a click event, key event, fall event, and the basic entity living hurt, killed, and kills events, among others.

This commit is contained in:
luisc committed 2021-10-12 02:57:32 -05:00
1 parent 6c8c7671b8
commit 6752f8baec
38 files changed
+763 -249

No files matched your search

@@ -27,11 +27,11 @@ import noppes.npcs.controllers.ScriptController;
import noppes.npcs.entity.EntityNPCInterface;
import noppes.npcs.scripted.constants.EntityType;
public class ScriptEntity implements IEntity{
protected Entity entity;
public class ScriptEntity<T extends Entity> implements IEntity{
protected T entity;
private Map<String,Object> tempData = new HashMap<String,Object>();
public ScriptEntity(Entity entity){
public ScriptEntity(T entity){
this.entity = entity;
}
@@ -483,7 +483,7 @@ public class ScriptEntity implements IEntity{
* Expert users only
* @return Returns minecrafts entity
*/
public Entity getMCEntity(){
public T getMCEntity(){
return entity;
}
}