Search in sources :

Example 1 with AccessorTileEntityCraftingTerminal

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;
}
Also used : AccessorTileEntityCraftingTerminal(top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorTileEntityCraftingTerminal) TileEntityCraftingTerminal(com.tom.storagemod.tile.TileEntityCraftingTerminal) CraftingRecipe(net.minecraft.world.item.crafting.CraftingRecipe) AccessorTileEntityCraftingTerminal(top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorTileEntityCraftingTerminal)

Aggregations

TileEntityCraftingTerminal (com.tom.storagemod.tile.TileEntityCraftingTerminal)1 CraftingRecipe (net.minecraft.world.item.crafting.CraftingRecipe)1 AccessorTileEntityCraftingTerminal (top.theillusivec4.polymorph.mixin.integration.toms_storage.AccessorTileEntityCraftingTerminal)1