Class LensConversion
java.lang.Object
de.ellpeck.actuallyadditions.api.lens.Lens
de.ellpeck.actuallyadditions.api.lens.LensConversion
This is the base class for a Reconstructor Lens Type that converts two items
via the ActuallyAdditionsAPI.RECONSTRUCTOR_LENS_CONVERSION_RECIPES list.
If you want to make a new type of conversion, just use your type in the recipe If you want to use the default type of conversion, use ActuallyAdditionsAPI.lensDefaultConversion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColor()Returns the color in an array of 3 float values that are r, g, bintGets the maximum distance the beam goes with this lensbooleaninvoke(net.minecraft.world.level.block.state.BlockState hitState, net.minecraft.core.BlockPos hitBlock, IAtomicReconstructor tile) Invokes the lens type's behavior on a block
-
Constructor Details
-
LensConversion
public LensConversion()
-
-
Method Details
-
invoke
public boolean invoke(net.minecraft.world.level.block.state.BlockState hitState, net.minecraft.core.BlockPos hitBlock, IAtomicReconstructor tile) Description copied from class:LensInvokes the lens type's behavior on a block -
getColor
public int getColor()Description copied from class:LensReturns the color in an array of 3 float values that are r, g, b -
getDistance
public int getDistance()Description copied from class:LensGets the maximum distance the beam goes with this lens- Specified by:
getDistancein classLens
-