2013-12-27 23:59:59 +01:00
|
|
|
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;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.api.features.IP2PTunnelRegistry;
|
2014-01-27 05:00:36 +01:00
|
|
|
import appeng.api.features.IPlayerRegistry;
|
2014-02-20 00:33:36 +01:00
|
|
|
import appeng.api.features.IRecipeHandlerRegistry;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.api.features.IRegistryContainer;
|
|
|
|
import appeng.api.features.ISpecialComparisonRegistry;
|
2014-09-20 22:25:14 +02:00
|
|
|
import appeng.api.features.IWirelessTermRegistry;
|
2014-08-06 04:03:30 +02:00
|
|
|
import appeng.api.features.IWorldGen;
|
2013-12-27 23:59:59 +01:00
|
|
|
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();
|
|
|
|
private LocateableRegistry LocateableRegistry = new LocateableRegistry();
|
|
|
|
private SpecialComparisonRegistry SpecialComparsonRegistry = new SpecialComparisonRegistry();
|
|
|
|
private WirelessRegistry WirelessRegistery = new WirelessRegistry();
|
|
|
|
private GridCacheRegistry GridCacheRegistry = new GridCacheRegistry();
|
|
|
|
private P2PTunnelRegistry P2PRegistry = new P2PTunnelRegistry();
|
|
|
|
private MovableTileRegistry MoveableReg = new MovableTileRegistry();
|
2014-01-20 17:41:37 +01:00
|
|
|
private MatterCannonAmmoRegistry matterCannonReg = new MatterCannonAmmoRegistry();
|
2014-01-27 05:00:36 +01:00
|
|
|
private PlayerRegistry playerreg = new PlayerRegistry();
|
2014-08-06 04:03:30 +02:00
|
|
|
private IRecipeHandlerRegistry recipeReg = new RecipeHandlerRegistry();
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
@Override
|
2014-09-20 22:25:14 +02:00
|
|
|
public IWirelessTermRegistry wireless()
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
return WirelessRegistery;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ICellRegistry cell()
|
|
|
|
{
|
|
|
|
return CellRegistry;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IGrinderRegistry grinder()
|
|
|
|
{
|
|
|
|
return GrinderRecipes;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-09-20 22:41:19 +02:00
|
|
|
public ISpecialComparisonRegistry specialComparison()
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
return SpecialComparsonRegistry;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IExternalStorageRegistry externalStorage()
|
|
|
|
{
|
|
|
|
return ExternalStorageHandlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-09-20 22:40:57 +02:00
|
|
|
public ILocatableRegistry locatable()
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
return LocateableRegistry;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IGridCacheRegistry gridCache()
|
|
|
|
{
|
|
|
|
return GridCacheRegistry;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-09-20 22:37:58 +02:00
|
|
|
public IMovableRegistry movable()
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
return MoveableReg;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IP2PTunnelRegistry p2pTunnel()
|
|
|
|
{
|
|
|
|
return P2PRegistry;
|
|
|
|
}
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
@Override
|
|
|
|
public IMatterCannonAmmoRegistry matterCannon()
|
|
|
|
{
|
|
|
|
return matterCannonReg;
|
|
|
|
}
|
|
|
|
|
2014-01-27 05:00:36 +01:00
|
|
|
@Override
|
|
|
|
public IPlayerRegistry players()
|
|
|
|
{
|
|
|
|
return playerreg;
|
|
|
|
}
|
|
|
|
|
2014-02-20 00:33:36 +01:00
|
|
|
@Override
|
2014-08-06 04:03:30 +02:00
|
|
|
public IRecipeHandlerRegistry recipes()
|
|
|
|
{
|
2014-02-20 00:33:36 +01:00
|
|
|
return recipeReg;
|
|
|
|
}
|
|
|
|
|
2014-08-06 04:03:30 +02:00
|
|
|
@Override
|
|
|
|
public IWorldGen worldgen()
|
|
|
|
{
|
|
|
|
return WorldGenRegistry.instance;
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|