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

156 lines
4 KiB
Java
Raw Normal View History

2014-11-14 12:02:52 +01:00
/*
* This file is part of Applied Energistics 2.
2015-05-18 00:33:39 +02:00
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
2014-11-14 12:02:52 +01:00
*
* Applied Energistics 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Applied Energistics 2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
*/
2014-09-24 02:26:27 +02:00
package appeng.core.features.registries;
2014-09-24 02:26:27 +02:00
import appeng.api.features.IGrinderRegistry;
import appeng.api.features.IInscriberRegistry;
2014-09-24 02:26:27 +02:00
import appeng.api.features.ILocatableRegistry;
import appeng.api.features.IMatterCannonAmmoRegistry;
import appeng.api.features.IP2PTunnelRegistry;
import appeng.api.features.IPlayerRegistry;
import appeng.api.features.IRecipeHandlerRegistry;
import appeng.api.features.IRegistryContainer;
import appeng.api.features.ISpecialComparisonRegistry;
import appeng.api.features.IWirelessTermRegistry;
import appeng.api.features.IWorldGen;
import appeng.api.movable.IMovableRegistry;
import appeng.api.networking.IGridCacheRegistry;
import appeng.api.parts.IPartModels;
2014-09-24 02:26:27 +02:00
import appeng.api.storage.ICellRegistry;
import appeng.api.storage.IExternalStorageRegistry;
/**
* represents all registries
*
* @author AlgorithmX2
* @author thatsIch
* @version rv2
* @since rv0
*/
2014-09-24 02:26:27 +02:00
public class RegistryContainer implements IRegistryContainer
{
private final IGrinderRegistry grinder = new GrinderRecipeManager();
private final IInscriberRegistry inscriber = new InscriberRegistry();
private final IExternalStorageRegistry storage = new ExternalStorageRegistry();
private final ICellRegistry cell = new CellRegistry();
private final ILocatableRegistry locatable = new LocatableRegistry();
private final ISpecialComparisonRegistry comparison = new SpecialComparisonRegistry();
private final IWirelessTermRegistry wireless = new WirelessRegistry();
private final IGridCacheRegistry gridCache = new GridCacheRegistry();
2015-05-18 00:33:39 +02:00
private final IP2PTunnelRegistry p2pTunnel = new P2PTunnelRegistry();
private final IMovableRegistry movable = new MovableTileRegistry();
private final IMatterCannonAmmoRegistry matterCannonReg = new MatterCannonAmmoRegistry();
private final IPlayerRegistry playerRegistry = new PlayerRegistry();
private final IRecipeHandlerRegistry recipeReg = new RecipeHandlerRegistry();
private final IPartModels partModels = new PartModels();
2014-09-24 02:26:27 +02:00
@Override
public IMovableRegistry movable()
2014-09-24 02:26:27 +02:00
{
return this.movable;
2014-09-24 02:26:27 +02:00
}
@Override
public IGridCacheRegistry gridCache()
2014-09-24 02:26:27 +02:00
{
return this.gridCache;
2014-09-24 02:26:27 +02:00
}
@Override
public IExternalStorageRegistry externalStorage()
2014-09-24 02:26:27 +02:00
{
return this.storage;
2014-09-24 02:26:27 +02:00
}
@Override
public ISpecialComparisonRegistry specialComparison()
{
return this.comparison;
2014-09-24 02:26:27 +02:00
}
@Override
public IWirelessTermRegistry wireless()
2014-09-24 02:26:27 +02:00
{
return this.wireless;
2014-09-24 02:26:27 +02:00
}
@Override
public ICellRegistry cell()
2014-09-24 02:26:27 +02:00
{
return this.cell;
2014-09-24 02:26:27 +02:00
}
@Override
public IGrinderRegistry grinder()
2014-09-24 02:26:27 +02:00
{
return this.grinder;
}
@Override
public IInscriberRegistry inscriber()
{
return this.inscriber;
2014-09-24 02:26:27 +02:00
}
@Override
public ILocatableRegistry locatable()
2014-09-24 02:26:27 +02:00
{
return this.locatable;
2014-09-24 02:26:27 +02:00
}
@Override
public IP2PTunnelRegistry p2pTunnel()
{
2015-05-18 00:33:39 +02:00
return this.p2pTunnel;
2014-09-24 02:26:27 +02:00
}
@Override
public IMatterCannonAmmoRegistry matterCannon()
{
2014-12-29 15:13:47 +01:00
return this.matterCannonReg;
2014-09-24 02:26:27 +02:00
}
@Override
public IPlayerRegistry players()
{
2014-12-29 15:13:47 +01:00
return this.playerRegistry;
2014-09-24 02:26:27 +02:00
}
@Override
public IRecipeHandlerRegistry recipes()
{
2014-12-29 15:13:47 +01:00
return this.recipeReg;
2014-09-24 02:26:27 +02:00
}
@Override
public IWorldGen worldgen()
{
2015-01-01 22:13:10 +01:00
return WorldGenRegistry.INSTANCE;
2014-09-24 02:26:27 +02:00
}
@Override
public IPartModels partModels()
{
return partModels;
}
2014-09-24 02:26:27 +02:00
}