2013-09-09 23:23:00 -07:00
|
|
|
package magicbees.api.bees;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
|
|
|
|
|
|
|
|
|
/**
|
2023-01-29 10:24:49 -08:00
|
|
|
* Class to control plugin logic for the Transmutation bee effect. Turns blocks into other blocks based on biome, time
|
|
|
|
|
* of day, or whatever is deemed appropriate at the time.
|
2022-10-12 21:09:45 +02:00
|
|
|
*
|
2013-09-09 23:23:00 -07:00
|
|
|
* @author MysteriousAges
|
|
|
|
|
*
|
|
|
|
|
*/
|
2022-10-12 21:09:45 +02:00
|
|
|
public interface ITransmutationEffectLogic {
|
2023-01-29 10:24:49 -08:00
|
|
|
|
2022-10-12 21:09:45 +02:00
|
|
|
/**
|
2023-01-29 10:24:49 -08:00
|
|
|
* Allows an external mod to add transmutation logic to the Transmuting bee effect. Called from a list of
|
|
|
|
|
* ITransmutationEffectLogic until one returns true. You can implement more than one transmutation effect in a
|
|
|
|
|
* single implementation of the interface. Function checks for a series of conditions based on block ID/meta, or
|
2022-10-12 21:09:45 +02:00
|
|
|
* biome information, or world information.
|
|
|
|
|
*
|
2023-01-29 10:24:49 -08:00
|
|
|
* @param world World object
|
|
|
|
|
* @param biome Biome information for current coordinates
|
2022-10-12 21:09:45 +02:00
|
|
|
* @param sourceBlock ItemStack representing the block at current coordinates
|
2023-01-29 10:24:49 -08:00
|
|
|
* @param x Current X coordinate to attempt a transmute
|
|
|
|
|
* @param y Current Y coordinate to attempt a transmute
|
|
|
|
|
* @param z Current Z coordinate to attempt a transmute
|
2022-10-12 21:09:45 +02:00
|
|
|
* @return true if a block was changed.
|
|
|
|
|
*/
|
|
|
|
|
public boolean tryTransmutation(World world, BiomeGenBase biome, ItemStack sourceBlock, int x, int y, int z);
|
2013-09-09 23:23:00 -07:00
|
|
|
}
|