From d6937757d772fa6c30b00d957d7dcb5e3873f831 Mon Sep 17 00:00:00 2001 From: durron597 Date: Tue, 28 Dec 2010 11:03:10 +0800 Subject: [PATCH] Removed eventFactory, it's useless --- src/org/bukkit/event/Event.java | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/org/bukkit/event/Event.java b/src/org/bukkit/event/Event.java index 03957646..91ac0df2 100644 --- a/src/org/bukkit/event/Event.java +++ b/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; - } - } }