public abstract class Lens
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.item.Item |
lensItem
The item that belongs to this lens type
|
| Constructor and Description |
|---|
Lens() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInvoke(IAtomicReconstructor tile,
net.minecraft.util.EnumFacing sideToShootTo,
int energyUsePerShot) |
abstract float[] |
getColor()
Returns the color in an array of 3 float values that are r, g, b
|
abstract int |
getDistance()
Gets the maximum distance the beam goes with this lens
|
abstract boolean |
invoke(net.minecraft.block.state.IBlockState hitState,
net.minecraft.util.math.BlockPos hitBlock,
IAtomicReconstructor tile)
Invokes the lens type's behavior on a block
|
void |
setLensItem(net.minecraft.item.Item item)
Sets the item corresponding to the lens
|
protected net.minecraft.item.Item lensItem
public abstract boolean invoke(net.minecraft.block.state.IBlockState hitState,
net.minecraft.util.math.BlockPos hitBlock,
IAtomicReconstructor tile)
hitBlock - The block that was hittile - The tile the lens was invoked frompublic abstract float[] getColor()
public abstract int getDistance()
public void setLensItem(net.minecraft.item.Item item)
public boolean canInvoke(IAtomicReconstructor tile, net.minecraft.util.EnumFacing sideToShootTo, int energyUsePerShot)