mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-26 06:31:43 +02:00
25 lines
741 B
Java
25 lines
741 B
Java
|
package de.ellpeck.actuallyadditions.api.recipe;
|
||
|
|
||
|
import net.minecraft.item.ItemStack;
|
||
|
|
||
|
/**
|
||
|
* 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.
|
||
|
*
|
||
|
* 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
|
||
|
* @return the modified stack. Please make sure to return a modified COPY of the input stack.
|
||
|
*/
|
||
|
ItemStack modifyItem(ItemStack stack);
|
||
|
|
||
|
}
|