2021-07-22 12:07:12 +08:00
|
|
|
package com.gtnewhorizon.structurelib.structure;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* a function to extract tier info from a block.
|
2022-07-08 17:14:18 +08:00
|
|
|
*
|
2021-07-22 12:07:12 +08:00
|
|
|
* @param <TIER>
|
|
|
|
|
*/
|
|
|
|
|
@FunctionalInterface
|
|
|
|
|
public interface ITierConverter<TIER> {
|
2023-01-30 12:52:27 +00:00
|
|
|
|
2021-07-22 12:07:12 +08:00
|
|
|
TIER convert(Block block, int meta);
|
|
|
|
|
}
|