Renamed Inscriber Recipe Type to Inscribe.
Missing Icon now supports Items. Fixed Missing Icons for debug Items. SkyStone Chests can now be disabled. More work on Website Recipes. Removed Unused method in Network Handler.
This commit is contained in:
@@ -196,14 +196,38 @@ public class RecipeHandler implements IRecipeHandler
|
||||
UniqueIdentifier id = GameRegistry.findUniqueIdentifierFor( is.getItem() );
|
||||
String realName = id.modId + ":" + id.name;
|
||||
|
||||
AELog.info( realName );
|
||||
|
||||
if ( is.getItem() instanceof ItemMaterial )
|
||||
realName += ":" + ((ItemMaterial) is.getItem()).getTypeByStack( is ).name();
|
||||
if ( is.getItem() == AEApi.instance().blocks().blockSkyStone.item() )
|
||||
{
|
||||
switch (is.getItemDamage())
|
||||
{
|
||||
case 1:
|
||||
realName += ".Block";
|
||||
break;
|
||||
case 2:
|
||||
realName += ".Brick";
|
||||
break;
|
||||
case 3:
|
||||
realName += ".SmallBrick";
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
else if ( is.getItem() == AEApi.instance().blocks().blockSkyChest.item() )
|
||||
{
|
||||
switch (is.getItemDamage())
|
||||
{
|
||||
case 1:
|
||||
realName += ".Block";
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
else if ( is.getItem() instanceof ItemMaterial )
|
||||
realName += "." + ((ItemMaterial) is.getItem()).getTypeByStack( is ).name();
|
||||
else if ( is.getItem() instanceof ItemPart )
|
||||
realName += ":" + ((ItemPart) is.getItem()).getTypeByStack( is ).name();
|
||||
realName += "." + ((ItemPart) is.getItem()).getTypeByStack( is ).name();
|
||||
else if ( is.getItemDamage() > 0 )
|
||||
realName += ":" + is.getItemDamage();
|
||||
realName += "." + is.getItemDamage();
|
||||
|
||||
return realName;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import appeng.api.recipes.IIngredient;
|
||||
import appeng.recipes.RecipeHandler;
|
||||
import appeng.util.Platform;
|
||||
|
||||
public class Inscriber implements ICraftHandler, IWebsiteSeralizer
|
||||
public class Inscribe implements ICraftHandler, IWebsiteSeralizer
|
||||
{
|
||||
|
||||
public static HashSet<ItemStack> plates = new HashSet();
|
||||
@@ -91,27 +91,29 @@ public class Shaped implements ICraftHandler, IWebsiteSeralizer
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCraft(ItemStack reqOutput) throws RegistrationError, MissingIngredientError {
|
||||
return Platform.isSameItemPrecise( output.getItemStack(),reqOutput );
|
||||
public boolean canCraft(ItemStack reqOutput) throws RegistrationError, MissingIngredientError
|
||||
{
|
||||
return Platform.isSameItemPrecise( output.getItemStack(), reqOutput );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPattern( RecipeHandler h ) {
|
||||
String o = "shaped "+output.getQty()+"\n";
|
||||
public String getPattern(RecipeHandler h)
|
||||
{
|
||||
String o = "shaped " + output.getQty() + " " + cols + "x" + rows + "\n";
|
||||
|
||||
o += h.getName( output ) + "\n";
|
||||
|
||||
for (int y = 0; y < rows; y++)
|
||||
for (int x = 0; x < cols; x++)
|
||||
{
|
||||
IIngredient i = inputs.get( y ).get( x );
|
||||
|
||||
if ( i.isAir() )
|
||||
o += "air" + (x + 1 == cols ? "\n" : " ");
|
||||
else
|
||||
o += h.getName( i ) + (x + 1 == cols ? "\n" : " ");
|
||||
}
|
||||
|
||||
o += h.getName(output)+"\n";
|
||||
|
||||
for ( int y = 0; y < rows; y++ )
|
||||
for ( int x= 0; x< cols; x++ )
|
||||
{
|
||||
IIngredient i = inputs.get(y).get(x);
|
||||
if ( i.isAir() )
|
||||
o += "air"+( x +1 == cols ? "\n" : " " );
|
||||
else
|
||||
o += h.getName(i)+( x +1 == cols ? "\n" : " " );
|
||||
}
|
||||
|
||||
return o.trim();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public class Smelt implements ICraftHandler, IWebsiteSeralizer
|
||||
@Override
|
||||
public String getPattern( RecipeHandler h ) {
|
||||
return "smelt "+out.getQty()+"\n"+
|
||||
h.getName(in)+"\n"+
|
||||
h.getName(out);
|
||||
h.getName(out)+"\n"+
|
||||
h.getName(in);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user