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:
SquidDev
2017-07-25 21:10:47 +01:00
parent bee41e7f97
commit 08099f08f2
76 changed files with 1046 additions and 673 deletions
@@ -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