mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-10-14 11:41:44 +00:00
Initial update to 1.12
- Convert most recipes to JSON - Add JSON factories for impostor and turtle recipes. - Several mappings changes - Migrate to Forge's new registry system
This commit is contained in:
@@ -9,10 +9,11 @@ import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.NonNullList;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeHooks;
|
||||
import net.minecraftforge.registries.IForgeRegistryEntry;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class ColourableRecipe implements IRecipe
|
||||
public class ColourableRecipe extends IForgeRegistryEntry.Impl<IRecipe> implements IRecipe
|
||||
{
|
||||
@Override
|
||||
public boolean matches( @Nonnull InventoryCrafting inv, @Nonnull World worldIn )
|
||||
@@ -79,9 +80,15 @@ public class ColourableRecipe implements IRecipe
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRecipeSize()
|
||||
public boolean canFit( int x, int y )
|
||||
{
|
||||
return 2;
|
||||
return x >= 2 && y >= 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHidden()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
Reference in New Issue
Block a user