2014-11-18 16:47:30 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Applied Energistics 2.
|
2015-01-03 02:53:14 +01:00
|
|
|
* Copyright (c) 2013 - 2015, AlgorithmX2, All rights reserved.
|
2014-11-18 16:47:30 +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>.
|
|
|
|
*/
|
|
|
|
|
2015-01-03 02:53:14 +01:00
|
|
|
package appeng.core;
|
2014-11-18 16:47:30 +01:00
|
|
|
|
|
|
|
|
2017-04-12 16:10:13 +02:00
|
|
|
import appeng.core.features.IAEFeature;
|
|
|
|
|
2015-04-07 12:27:01 +02:00
|
|
|
import java.util.LinkedHashSet;
|
2015-01-03 02:53:14 +01:00
|
|
|
import java.util.Set;
|
2014-11-18 16:47:30 +01:00
|
|
|
|
|
|
|
|
2015-01-03 02:53:14 +01:00
|
|
|
public final class FeatureRegistry
|
2014-11-18 16:47:30 +01:00
|
|
|
{
|
2015-04-07 12:27:01 +02:00
|
|
|
private final Set<IAEFeature> registry = new LinkedHashSet<IAEFeature>();
|
2014-11-18 16:47:30 +01:00
|
|
|
|
2015-09-25 23:10:56 +02:00
|
|
|
public void addFeature( final IAEFeature feature )
|
2014-11-18 16:47:30 +01:00
|
|
|
{
|
2015-01-03 02:53:14 +01:00
|
|
|
this.registry.add( feature );
|
2014-11-18 16:47:30 +01:00
|
|
|
}
|
|
|
|
|
2015-10-08 15:42:42 +02:00
|
|
|
Set<IAEFeature> getRegisteredFeatures()
|
2014-11-18 16:47:30 +01:00
|
|
|
{
|
2015-01-03 02:53:14 +01:00
|
|
|
return this.registry;
|
2014-11-18 16:47:30 +01:00
|
|
|
}
|
|
|
|
}
|