From f72da929e1313ff565a2078b074f21195daab0f6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 28 Dec 2010 11:03:10 +0800 Subject: [PATCH] Removed eventFactory, it's useless By: durron597 --- paper-api/src/org/bukkit/event/Event.java | 29 ----------------------- 1 file changed, 29 deletions(-) diff --git a/paper-api/src/org/bukkit/event/Event.java b/paper-api/src/org/bukkit/event/Event.java index 03957646f8..91ac0df20c 100644 --- a/paper-api/src/org/bukkit/event/Event.java +++ b/paper-api/src/org/bukkit/event/Event.java @@ -154,33 +154,4 @@ public abstract class Event { return category; } } - - public static Event eventFactory(Server server, Event.Type type, Object[] data) throws EventException { - switch (type.getCategory()) { - case PLAYER: - if (data.length < 1 || !(data[0] instanceof Player)) { - throw new EventException("Data is not a Player!"); - } - return new PlayerEvent(server, type, (Player) data[0]); -// TODO: IMPLEMENT ME - case BLOCK: - return null; - case ITEM: - return null; - case ENVIRONMENT: - return null; - case ENTITY: - return null; - case VEHICLE: - return null; - case INVENTORY: - return null; - case SIGN: - return null; - case CUSTOM: - return null; - default: - return null; - } - } }