Typo IWebsiteSeralizer
This commit is contained in:
@@ -11,6 +11,7 @@ import java.util.Map.Entry;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipOutputStream;
|
||||
|
||||
import appeng.recipes.handlers.IWebsiteSerializer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.AEApi;
|
||||
import appeng.api.exceptions.MissingIngredientError;
|
||||
@@ -28,7 +29,6 @@ import appeng.core.features.AEFeature;
|
||||
import appeng.items.materials.ItemMultiMaterial;
|
||||
import appeng.items.misc.ItemCrystalSeed;
|
||||
import appeng.items.parts.ItemMultiPart;
|
||||
import appeng.recipes.handlers.IWebsiteSeralizer;
|
||||
import appeng.recipes.handlers.OreRegistration;
|
||||
|
||||
import com.google.common.collect.HashMultimap;
|
||||
@@ -56,17 +56,17 @@ public class RecipeHandler implements IRecipeHandler
|
||||
data.Handlers.add( ch );
|
||||
}
|
||||
|
||||
public List<IWebsiteSeralizer> findRecipe(ItemStack output)
|
||||
public List<IWebsiteSerializer> findRecipe(ItemStack output)
|
||||
{
|
||||
List<IWebsiteSeralizer> out = new LinkedList<IWebsiteSeralizer>();
|
||||
List<IWebsiteSerializer> out = new LinkedList<IWebsiteSerializer>();
|
||||
|
||||
for (ICraftHandler ch : data.Handlers)
|
||||
{
|
||||
try
|
||||
{
|
||||
if ( ch instanceof IWebsiteSeralizer && ((IWebsiteSeralizer) ch).canCraft( output ) )
|
||||
if ( ch instanceof IWebsiteSerializer && ((IWebsiteSerializer) ch).canCraft( output ) )
|
||||
{
|
||||
out.add( (IWebsiteSeralizer) ch );
|
||||
out.add( (IWebsiteSerializer) ch );
|
||||
}
|
||||
}
|
||||
catch (Throwable t)
|
||||
@@ -140,7 +140,7 @@ public class RecipeHandler implements IRecipeHandler
|
||||
{
|
||||
ZipOutputStream out = new ZipOutputStream( new FileOutputStream( "recipes.zip" ) );
|
||||
|
||||
HashMultimap<String, IWebsiteSeralizer> combined = HashMultimap.create();
|
||||
HashMultimap<String, IWebsiteSerializer> combined = HashMultimap.create();
|
||||
|
||||
for (String s : data.knownItem)
|
||||
{
|
||||
@@ -152,7 +152,7 @@ public class RecipeHandler implements IRecipeHandler
|
||||
for (ItemStack is : i.getItemStackSet())
|
||||
{
|
||||
String realName = getName( is );
|
||||
List<IWebsiteSeralizer> recipes = findRecipe( is );
|
||||
List<IWebsiteSerializer> recipes = findRecipe( is );
|
||||
if ( !recipes.isEmpty() )
|
||||
combined.putAll( realName, recipes );
|
||||
}
|
||||
@@ -180,7 +180,7 @@ public class RecipeHandler implements IRecipeHandler
|
||||
{
|
||||
int offset = 0;
|
||||
|
||||
for (IWebsiteSeralizer ws : combined.get( realName ))
|
||||
for (IWebsiteSerializer ws : combined.get( realName ))
|
||||
{
|
||||
String rew = ws.getPattern( this );
|
||||
if ( rew != null && rew.length() > 0 )
|
||||
|
||||
@@ -15,7 +15,7 @@ import appeng.integration.abstraction.IRC;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class Crusher implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Crusher implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
@@ -12,7 +12,7 @@ import appeng.api.recipes.IIngredient;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class Grind implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Grind implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
@@ -15,7 +15,7 @@ import appeng.integration.abstraction.IFZ;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class GrindFZ implements ICraftHandler, IWebsiteSeralizer
|
||||
public class GrindFZ implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
@@ -14,7 +14,7 @@ import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
|
||||
public class HCCrusher implements ICraftHandler, IWebsiteSeralizer
|
||||
public class HCCrusher implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
+15
-15
@@ -1,15 +1,15 @@
|
||||
package appeng.recipes.handlers;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.exceptions.MissingIngredientError;
|
||||
import appeng.api.exceptions.RegistrationError;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
|
||||
public interface IWebsiteSeralizer
|
||||
{
|
||||
|
||||
String getPattern(RecipeHandler han);
|
||||
|
||||
boolean canCraft(ItemStack output) throws RegistrationError, MissingIngredientError;
|
||||
|
||||
}
|
||||
package appeng.recipes.handlers;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import appeng.api.exceptions.MissingIngredientError;
|
||||
import appeng.api.exceptions.RegistrationError;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
|
||||
public interface IWebsiteSerializer
|
||||
{
|
||||
|
||||
String getPattern(RecipeHandler han);
|
||||
|
||||
boolean canCraft(ItemStack output) throws RegistrationError, MissingIngredientError;
|
||||
|
||||
}
|
||||
@@ -13,7 +13,7 @@ import appeng.api.recipes.IIngredient;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class Inscribe implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Inscribe implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
public static class InscriberRecipe
|
||||
|
||||
@@ -15,7 +15,7 @@ import appeng.integration.abstraction.IIC2;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class Macerator implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Macerator implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
@@ -15,7 +15,7 @@ import appeng.integration.abstraction.IMekanism;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class MekCrusher implements ICraftHandler, IWebsiteSeralizer
|
||||
public class MekCrusher implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
@@ -15,7 +15,7 @@ import appeng.integration.abstraction.IMekanism;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class MekEnrichment implements ICraftHandler, IWebsiteSeralizer
|
||||
public class MekEnrichment implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
@@ -13,7 +13,7 @@ import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
|
||||
public class Pulverizer implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Pulverizer implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient pro_input;
|
||||
|
||||
@@ -15,7 +15,7 @@ import appeng.recipes.game.ShapedRecipe;
|
||||
import appeng.util.Platform;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class Shaped implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Shaped implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
private int rows;
|
||||
|
||||
@@ -15,7 +15,7 @@ import appeng.recipes.game.ShapelessRecipe;
|
||||
import appeng.util.Platform;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class Shapeless implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Shapeless implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
List<IIngredient> inputs;
|
||||
|
||||
@@ -12,7 +12,7 @@ import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class Smelt implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Smelt implements ICraftHandler, IWebsiteSerializer
|
||||
{
|
||||
|
||||
IIngredient in;
|
||||
|
||||
Reference in New Issue
Block a user