diff --git a/src/gibstick/bukkit/discosheep/DiscoSheep.java b/src/gibstick/bukkit/discosheep/DiscoSheep.java index 37a838c..632fc8d 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheep.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheep.java @@ -3,10 +3,13 @@ package gibstick.bukkit.DiscoSheep; import java.util.ArrayList; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.entity.Sheep; +import org.bukkit.Location; +import org.bukkit.entity.EntityType; +import org.bukkit.World; public final class DiscoSheep extends JavaPlugin { - private ArrayList SheepArray = new ArrayList<>(); + private ArrayList sheepArray = new ArrayList<>(); @Override public void onEnable(){ @@ -18,5 +21,9 @@ public final class DiscoSheep extends JavaPlugin { } + public void spawnSheep(World world, Location loc) { + sheepArray.add((Sheep)world.spawnEntity(loc, EntityType.SHEEP)); + } + }