public abstract class Lens
extends java.lang.Object
| 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
|
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 boolean canInvoke(IAtomicReconstructor tile, net.minecraft.util.EnumFacing sideToShootTo, int energyUsePerShot)