Implemented new Tranquility value API

For quick compat, mods can now register a static state-based tranquility
value for their blocks. More
This commit is contained in:
Nicholas Ignoffo 2018-02-06 21:24:40 -08:00
parent d67ed054ff
commit f8c734bc96
14 changed files with 125 additions and 143 deletions

View file

@ -0,0 +1,14 @@
package WayofTime.bloodmagic.incense;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public interface IIncensePath {
/**
* Goes from 0 to however far this path block can be from the altar while
* still functioning. 0 represents a block that can work when it is two
* blocks horizontally away from the altar.
*/
int getLevelOfPath(World world, BlockPos pos, IBlockState state);
}