use of com.lothrazar.cyclic.block.crafter.ContainerCrafter in project Polymorph by TheIllusiveC4.
the class CyclicModule method setup.
@Override
public void setup() {
IPolymorphCommon commonApi = PolymorphApi.common();
commonApi.registerTileEntity2RecipeData(tileEntity -> {
if (tileEntity instanceof TileCrafter) {
return new TileCrafterRecipeData((TileCrafter) tileEntity);
}
return null;
});
commonApi.registerContainer2TileEntity(container -> {
if (container instanceof ContainerCrafter) {
return ((AccessorContainerCrafter) container).getTile();
}
return null;
});
}
Aggregations