Applied-Energistics-2-tiler.../core/features/registries/RegistryContainer.java

113 lines
2.8 KiB
Java
Raw Normal View History

package appeng.core.features.registries;
import appeng.api.features.IGrinderRegistry;
2014-03-24 05:00:12 +01:00
import appeng.api.features.ILocatableRegistry;
2014-01-20 17:41:37 +01:00
import appeng.api.features.IMatterCannonAmmoRegistry;
import appeng.api.features.IP2PTunnelRegistry;
import appeng.api.features.IPlayerRegistry;
2014-02-20 00:33:36 +01:00
import appeng.api.features.IRecipeHandlerRegistry;
import appeng.api.features.IRegistryContainer;
import appeng.api.features.ISpecialComparisonRegistry;
2014-09-20 22:25:14 +02:00
import appeng.api.features.IWirelessTermRegistry;
import appeng.api.features.IWorldGen;
import appeng.api.movable.IMovableRegistry;
import appeng.api.networking.IGridCacheRegistry;
import appeng.api.storage.ICellRegistry;
import appeng.api.storage.IExternalStorageRegistry;
public class RegistryContainer implements IRegistryContainer
{
private GrinderRecipeManager GrinderRecipes = new GrinderRecipeManager();
private ExternalStorageRegistry ExternalStorageHandlers = new ExternalStorageRegistry();
private CellRegistry CellRegistry = new CellRegistry();
2014-09-21 00:50:46 +02:00
private LocatableRegistry LocatableRegistry = new LocatableRegistry();
2014-09-21 02:27:54 +02:00
private SpecialComparisonRegistry SpecialComparisonRegistry = new SpecialComparisonRegistry();
2014-09-21 01:42:47 +02:00
private WirelessRegistry WirelessRegistry = new WirelessRegistry();
private GridCacheRegistry GridCacheRegistry = new GridCacheRegistry();
private P2PTunnelRegistry P2PRegistry = new P2PTunnelRegistry();
2014-09-21 02:28:14 +02:00
private MovableTileRegistry MovableReg = new MovableTileRegistry();
2014-01-20 17:41:37 +01:00
private MatterCannonAmmoRegistry matterCannonReg = new MatterCannonAmmoRegistry();
private PlayerRegistry playerreg = new PlayerRegistry();
private IRecipeHandlerRegistry recipeReg = new RecipeHandlerRegistry();
@Override
2014-09-20 22:25:14 +02:00
public IWirelessTermRegistry wireless()
{
2014-09-21 01:42:47 +02:00
return WirelessRegistry;
}
@Override
public ICellRegistry cell()
{
return CellRegistry;
}
@Override
public IGrinderRegistry grinder()
{
return GrinderRecipes;
}
@Override
2014-09-20 22:41:19 +02:00
public ISpecialComparisonRegistry specialComparison()
{
2014-09-21 02:27:54 +02:00
return SpecialComparisonRegistry;
}
@Override
public IExternalStorageRegistry externalStorage()
{
return ExternalStorageHandlers;
}
@Override
2014-09-20 22:40:57 +02:00
public ILocatableRegistry locatable()
{
2014-09-21 00:50:46 +02:00
return LocatableRegistry;
}
@Override
public IGridCacheRegistry gridCache()
{
return GridCacheRegistry;
}
@Override
2014-09-20 22:37:58 +02:00
public IMovableRegistry movable()
{
2014-09-21 02:28:14 +02:00
return MovableReg;
}
@Override
public IP2PTunnelRegistry p2pTunnel()
{
return P2PRegistry;
}
2014-01-20 17:41:37 +01:00
@Override
public IMatterCannonAmmoRegistry matterCannon()
{
return matterCannonReg;
}
@Override
public IPlayerRegistry players()
{
return playerreg;
}
2014-02-20 00:33:36 +01:00
@Override
public IRecipeHandlerRegistry recipes()
{
2014-02-20 00:33:36 +01:00
return recipeReg;
}
@Override
public IWorldGen worldgen()
{
return WorldGenRegistry.instance;
}
}