Search in sources :

Example 1 with Forging

use of net.dries007.tfc.common.capabilities.forge.Forging in project TerraFirmaCraft by TerraFirmaCraft.

the class AnvilPlanButton method getRecipe.

@Nullable
private AnvilRecipe getRecipe() {
    final Level level = anvil.getLevel();
    final Forging forging = anvil.getMainInputForging();
    if (level != null && forging != null) {
        return forging.getRecipe(level);
    }
    return null;
}
Also used : Forging(net.dries007.tfc.common.capabilities.forge.Forging) Level(net.minecraft.world.level.Level) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

Forging (net.dries007.tfc.common.capabilities.forge.Forging)1 Level (net.minecraft.world.level.Level)1 Nullable (org.jetbrains.annotations.Nullable)1