mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Removed that a lens knows about its item because it doesn't need to
This commit is contained in:
parent
9007ccadee
commit
b475d15c9f
3 changed files with 1 additions and 15 deletions
|
@ -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>();
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue