From 9e2ddeb55321b09086a5a27254197d783847e6e3 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Mon, 25 Apr 2022 18:50:36 +0200 Subject: Initial commit --- src/main/java/com/encrox/zombie/Mob.java | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 src/main/java/com/encrox/zombie/Mob.java (limited to 'src/main/java/com/encrox/zombie/Mob.java') diff --git a/src/main/java/com/encrox/zombie/Mob.java b/src/main/java/com/encrox/zombie/Mob.java new file mode 100755 index 0000000..82958a3 --- /dev/null +++ b/src/main/java/com/encrox/zombie/Mob.java @@ -0,0 +1,41 @@ +package com.encrox.zombie; + +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import javax.script.ScriptException; + +import org.bukkit.entity.EntityType; +import org.bukkit.util.BlockVector; + +import com.encrox.zombie.interactable.Lever; + +public class Mob { + + public EntityType type; + public BlockVector bv; + public String rounds; + public Lever[] levers; + + public Mob(EntityType type, BlockVector bv, String rounds, Lever[] levers) { + this.type = type; + this.bv = bv; + this.rounds = rounds; + this.levers = levers; + } + + public boolean spawn(int round) { + for(int i = 0; i