Removed Lens registry.

It wasn't needed.
This commit is contained in:
Ellpeck 2016-02-03 23:43:44 +01:00
parent 2007732fdc
commit 2856c01cce
3 changed files with 4 additions and 15 deletions

View file

@ -12,7 +12,6 @@ package de.ellpeck.actuallyadditions.api;
import de.ellpeck.actuallyadditions.api.booklet.BookletPage;
import de.ellpeck.actuallyadditions.api.booklet.IBookletEntry;
import de.ellpeck.actuallyadditions.api.lens.Lens;
import de.ellpeck.actuallyadditions.api.recipe.BallOfFurReturn;
import de.ellpeck.actuallyadditions.api.recipe.CrusherRecipe;
import de.ellpeck.actuallyadditions.api.recipe.LensNoneRecipe;
@ -33,7 +32,6 @@ public class ActuallyAdditionsAPI{
public static List<CrusherRecipe> crusherRecipes = new ArrayList<CrusherRecipe>();
public static List<BallOfFurReturn> ballOfFurReturnItems = new ArrayList<BallOfFurReturn>();
public static List<TreasureChestLoot> treasureChestLoot = new ArrayList<TreasureChestLoot>();
public static List<Lens> reconstructorLenses = new ArrayList<Lens>();
public static List<LensNoneRecipe> reconstructorLensNoneRecipes = new ArrayList<LensNoneRecipe>();
public static List<CoffeeIngredient> coffeeMachineIngredients = new ArrayList<CoffeeIngredient>();

View file

@ -10,7 +10,6 @@
package de.ellpeck.actuallyadditions.api.lens;
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
import de.ellpeck.actuallyadditions.api.internal.IAtomicReconstructor;
import net.minecraft.item.Item;
import net.minecraft.util.BlockPos;
@ -45,14 +44,6 @@ public abstract class Lens{
*/
public abstract int getDistance();
/**
* Registers the lense type
*/
public Lens register(){
ActuallyAdditionsAPI.reconstructorLenses.add(this);
return this;
}
/**
* Sets the item corresponding to the lense
*/

View file

@ -14,8 +14,8 @@ import de.ellpeck.actuallyadditions.api.lens.Lens;
public class Lenses{
public static final Lens LENS_NONE = new LensNone().register();
public static final Lens LENS_DETONATION = new LensDetonation().register();
public static final Lens LENS_DEATH = new LensDeath().register();
public static final Lens LENS_COLOR = new LensColor().register();
public static final Lens LENS_NONE = new LensNone();
public static final Lens LENS_DETONATION = new LensDetonation();
public static final Lens LENS_DEATH = new LensDeath();
public static final Lens LENS_COLOR = new LensColor();
}