use of top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorTileEntityCraftingTerminal in project Polymorph by TheIllusiveC4.
the class TomsStorageModule method selectRecipe.
@Override
public boolean selectRecipe(BlockEntity tileEntity, Recipe<?> recipe) {
if (recipe instanceof CraftingRecipe && tileEntity instanceof TileEntityCraftingTerminal) {
AccessorTileEntityCraftingTerminal te = (AccessorTileEntityCraftingTerminal) tileEntity;
te.setCurrentRecipe((CraftingRecipe) recipe);
te.callOnCraftingMatrixChanged();
return true;
}
return false;
}
Aggregations