Removed that a lens knows about its item because it doesn't need to

This commit is contained in:
Ellpeck 2016-09-11 20:24:10 +02:00
parent 9007ccadee
commit b475d15c9f
3 changed files with 1 additions and 15 deletions

View file

@ -31,7 +31,7 @@ public final class ActuallyAdditionsAPI{
public static final String MOD_ID = "actuallyadditions";
public static final String API_ID = MOD_ID+"api";
public static final String API_VERSION = "22";
public static final String API_VERSION = "23";
public static final List<CrusherRecipe> CRUSHER_RECIPES = new ArrayList<CrusherRecipe>();
public static final List<BallOfFurReturn> BALL_OF_FUR_RETURN_ITEMS = new ArrayList<BallOfFurReturn>();

View file

@ -12,7 +12,6 @@ package de.ellpeck.actuallyadditions.api.lens;
import de.ellpeck.actuallyadditions.api.internal.IAtomicReconstructor;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
@ -21,11 +20,6 @@ import net.minecraft.util.math.BlockPos;
*/
public abstract class Lens{
/**
* The item that belongs to this lens type
*/
protected Item lensItem;
/**
* Invokes the lens type's behavior on a block
*
@ -45,13 +39,6 @@ public abstract class Lens{
*/
public abstract int getDistance();
/**
* Sets the item corresponding to the lens
*/
public void setLensItem(Item item){
this.lensItem = item;
}
/**
* @return If the lens can be invoked at the current time
*/

View file

@ -23,7 +23,6 @@ public class ItemLens extends ItemBase implements ILensItem{
public ItemLens(String name, Lens type){
super(name);
this.type = type;
this.type.setLensItem(this);
this.setMaxStackSize(1);
}