use of top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorContainerStorageTerminal in project Polymorph by TheIllusiveC4.
the class TomsStorageModule method setup.
@Override
public void setup() {
IPolymorphCommon commonApi = PolymorphApi.common();
commonApi.registerTileEntity2RecipeData(pTileEntity -> {
if (pTileEntity instanceof TileEntityCraftingTerminal) {
return new CraftingTerminalRecipeData((TileEntityCraftingTerminal) pTileEntity);
}
return null;
});
commonApi.registerContainer2TileEntity(pContainer -> {
if (pContainer instanceof ContainerCraftingTerminal) {
return ((AccessorContainerStorageTerminal) pContainer).getTe();
}
return null;
});
}
Aggregations