mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-28 15:39:09 +02:00
73ebec3930
Bump API version to 10
31 lines
1.2 KiB
Java
31 lines
1.2 KiB
Java
package de.ellpeck.actuallyadditions.api.recipe;
|
|
|
|
import de.ellpeck.actuallyadditions.api.internal.IAtomicReconstructor;
|
|
import net.minecraft.block.state.IBlockState;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
/**
|
|
* Used for the Atomic Reconstructor's Color Lens changing algorythm.
|
|
* When registering a new item to be changed, it needs an IColorLensChanger which
|
|
* is the method with which the item will be changed.
|
|
* <p>
|
|
* See ColorLensChangerByDyeMeta for reference.
|
|
*/
|
|
public interface IColorLensChanger{
|
|
|
|
/**
|
|
* Modifies the given item.
|
|
* Will only be called with stacks containing items that are registered with
|
|
* this IColorLensChanger.
|
|
*
|
|
* @param stack the stack to modify
|
|
* @param hitBlockState The state of the block that was hit
|
|
* @param hitBlock the block that was hit (usually air, or the block that is also in the stack)
|
|
* @param tile the Reconstructor doing the color conversion
|
|
* @return the modified stack. Please make sure to return a modified COPY of the input stack.
|
|
*/
|
|
ItemStack modifyItem(ItemStack stack, IBlockState hitBlockState, BlockPos hitBlock, IAtomicReconstructor tile);
|
|
|
|
}
|