package org.mcphoton;

import java.io.File;
import org.mcphoton.block.BlockRegistry;
import org.mcphoton.command.CommandsRegistry;
import org.mcphoton.entity.EntityRegistry;
import org.mcphoton.event.EventsManager;
import org.mcphoton.item.ItemRegistry;
import org.mcphoton.network.PacketsManager;
import org.mcphoton.plugin.PluginsManager;
import org.mcphoton.world.BiomeRegistry;

/**
 * Implementation of the Photon's class, which is the centralized API core.
 *
 * @author TheElectronWill
 */
public final class Photon {

	private static final File MAIN_DIR = new File(System.getProperty("user.dir")), PLUGINS_DIR = new File(MAIN_DIR, "plugins");

	private Photon() {
	}

	public static PacketsManager getPacketsManager() {
		return null;
	}

	public static PluginsManager getPluginsManager() {
		return null;
	}

	public static EventsManager getEventsManager() {
		return null;
	}

	public static EntityRegistry getEntityRegistry() {
		return null;
	}

	public static CommandsRegistry getCommandsRegistry() {
		return null;
	}

	public static BlockRegistry getBlockRegistry() {
		return null;
	}

	public static ItemRegistry getItemRegistry() {
		return null;
	}

	public static BiomeRegistry getBiomeRegistry() {
		return null;
	}

	public static boolean isClient() {
		return false;
	}

	public static boolean isServer() {
		return true;
	}

	public static String getVersion() {
		return "0.3.0-alpha";
	}

	public static String getMinecraftVersion() {
		return "1.9";
	}

	public static File getMainDirectory() {
		return MAIN_DIR;
	}

	public static File getPluginsDirectory() {
		return PLUGINS_DIR;
	}

}

@@ -200,32 +200,434 @@
 .EventsManager;%0A
+import org.mcphoton.impl.Main;%0Aimport org.mcphoton.impl.block.PhotonBlockRegistry;%0Aimport org.mcphoton.impl.command.PhotonCommandsRegistry;%0Aimport org.mcphoton.impl.entity.PhotonEntityRegistry;%0Aimport org.mcphoton.impl.event.PhotonEventsManager;%0Aimport org.mcphoton.impl.item.PhotonItemRegistry;%0Aimport org.mcphoton.impl.plugin.PhotonPluginsManager;%0Aimport org.mcphoton.impl.world.PhotonBiomeRegistry;%0A
 import org.mcpho
@@ -1045,16 +1045,583 @@
 ugins%22);
+%0A%09private static final BlockRegistry BLOCK_REGISTRY = new PhotonBlockRegistry();%0A%09private static final ItemRegistry ITEM_REGISTRY = new PhotonItemRegistry();%0A%09private static final EntityRegistry ENTITY_REGISTRY = new PhotonEntityRegistry();%0A%09private static final BiomeRegistry BIOME_REGISTRY = new PhotonBiomeRegistry();%0A%09private static final CommandsRegistry CMD_REGISTRY = new PhotonCommandsRegistry();%0A%09private static final EventsManager EVENTS_MANAGER = new PhotonEventsManager();%0A%09private static final PluginsManager PLUGINS_MANAGER = new PhotonPluginsManager();
 %0A%0A%09priva
@@ -1691,36 +1691,66 @@
 er() %7B%0A%09%09return 
-null
+Main.serverInstance.packetsManager
 ;%0A%09%7D%0A%0A%09public st
@@ -1792,36 +1792,47 @@
 er() %7B%0A%09%09return 
-null
+PLUGINS_MANAGER
 ;%0A%09%7D%0A%0A%09public st
@@ -1872,36 +1872,46 @@
 er() %7B%0A%09%09return 
-null
+EVENTS_MANAGER
 ;%0A%09%7D%0A%0A%09public st
@@ -1953,36 +1953,47 @@
 ry() %7B%0A%09%09return 
-null
+ENTITY_REGISTRY
 ;%0A%09%7D%0A%0A%09public st
@@ -2039,36 +2039,44 @@
 ry() %7B%0A%09%09return 
-null
+CMD_REGISTRY
 ;%0A%09%7D%0A%0A%09public st
@@ -2116,36 +2116,46 @@
 ry() %7B%0A%09%09return 
-null
+BLOCK_REGISTRY
 ;%0A%09%7D%0A%0A%09public st
@@ -2193,36 +2193,45 @@
 ry() %7B%0A%09%09return 
-null
+ITEM_REGISTRY
 ;%0A%09%7D%0A%0A%09public st
@@ -2283,12 +2283,22 @@
 urn 
-null
+BIOME_REGISTRY
 ;%0A%09%7D

Return the registries instance