Lots of compile fixes
This commit is contained in:
@@ -25,17 +25,16 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Items;
|
||||
|
||||
import appeng.api.features.IMatterCannonAmmoRegistry;
|
||||
import appeng.recipes.ores.IOreListener;
|
||||
|
||||
|
||||
public class MatterCannonAmmoRegistry implements IOreListener, IMatterCannonAmmoRegistry
|
||||
public class MatterCannonAmmoRegistry implements /* FIXME IOreListener, */ IMatterCannonAmmoRegistry
|
||||
{
|
||||
|
||||
private final HashMap<ItemStack, Double> DamageModifiers = new HashMap<>();
|
||||
|
||||
public MatterCannonAmmoRegistry()
|
||||
{
|
||||
OreDictionaryHandler.INSTANCE.observe( this );
|
||||
// FIXME OreDictionaryHandler.INSTANCE.observe( this );
|
||||
this.registerAmmo( new ItemStack( Items.GOLD_NUGGET ), 196.96655 );
|
||||
}
|
||||
|
||||
@@ -58,86 +57,86 @@ public class MatterCannonAmmoRegistry implements IOreListener, IMatterCannonAmmo
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void oreRegistered( final String name, final ItemStack item )
|
||||
{
|
||||
if( !( name.startsWith( "berry" ) || name.startsWith( "nugget" ) ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// addNugget( "Cobble", 18 ); // ?
|
||||
this.considerItem( name, item, "MeatRaw", 32 );
|
||||
this.considerItem( name, item, "MeatCooked", 32 );
|
||||
this.considerItem( name, item, "Meat", 32 );
|
||||
this.considerItem( name, item, "Chicken", 32 );
|
||||
this.considerItem( name, item, "Beef", 32 );
|
||||
this.considerItem( name, item, "Sheep", 32 );
|
||||
this.considerItem( name, item, "Fish", 32 );
|
||||
|
||||
// real world...
|
||||
this.considerItem( name, item, "Lithium", 6.941 );
|
||||
this.considerItem( name, item, "Beryllium", 9.0122 );
|
||||
this.considerItem( name, item, "Boron", 10.811 );
|
||||
this.considerItem( name, item, "Carbon", 12.0107 );
|
||||
this.considerItem( name, item, "Coal", 12.0107 );
|
||||
this.considerItem( name, item, "Charcoal", 12.0107 );
|
||||
this.considerItem( name, item, "Sodium", 22.9897 );
|
||||
this.considerItem( name, item, "Magnesium", 24.305 );
|
||||
this.considerItem( name, item, "Aluminum", 26.9815 );
|
||||
this.considerItem( name, item, "SILICON", 28.0855 );
|
||||
this.considerItem( name, item, "Phosphorus", 30.9738 );
|
||||
this.considerItem( name, item, "Sulfur", 32.065 );
|
||||
this.considerItem( name, item, "Potassium", 39.0983 );
|
||||
this.considerItem( name, item, "Calcium", 40.078 );
|
||||
this.considerItem( name, item, "Scandium", 44.9559 );
|
||||
this.considerItem( name, item, "Titanium", 47.867 );
|
||||
this.considerItem( name, item, "Vanadium", 50.9415 );
|
||||
this.considerItem( name, item, "Manganese", 54.938 );
|
||||
this.considerItem( name, item, "Iron", 55.845 );
|
||||
this.considerItem( name, item, "Nickel", 58.6934 );
|
||||
this.considerItem( name, item, "Cobalt", 58.9332 );
|
||||
this.considerItem( name, item, "Copper", 63.546 );
|
||||
this.considerItem( name, item, "Zinc", 65.39 );
|
||||
this.considerItem( name, item, "Gallium", 69.723 );
|
||||
this.considerItem( name, item, "Germanium", 72.64 );
|
||||
this.considerItem( name, item, "Bromine", 79.904 );
|
||||
this.considerItem( name, item, "Krypton", 83.8 );
|
||||
this.considerItem( name, item, "Rubidium", 85.4678 );
|
||||
this.considerItem( name, item, "Strontium", 87.62 );
|
||||
this.considerItem( name, item, "Yttrium", 88.9059 );
|
||||
this.considerItem( name, item, "Zirconiumm", 91.224 );
|
||||
this.considerItem( name, item, "Niobiumm", 92.9064 );
|
||||
this.considerItem( name, item, "Technetium", 98 );
|
||||
this.considerItem( name, item, "Ruthenium", 101.07 );
|
||||
this.considerItem( name, item, "Rhodium", 102.9055 );
|
||||
this.considerItem( name, item, "Palladium", 106.42 );
|
||||
this.considerItem( name, item, "Silver", 107.8682 );
|
||||
this.considerItem( name, item, "Cadmium", 112.411 );
|
||||
this.considerItem( name, item, "Indium", 114.818 );
|
||||
this.considerItem( name, item, "Tin", 118.71 );
|
||||
this.considerItem( name, item, "Antimony", 121.76 );
|
||||
this.considerItem( name, item, "Iodine", 126.9045 );
|
||||
this.considerItem( name, item, "Tellurium", 127.6 );
|
||||
this.considerItem( name, item, "Xenon", 131.293 );
|
||||
this.considerItem( name, item, "Cesium", 132.9055 );
|
||||
this.considerItem( name, item, "Barium", 137.327 );
|
||||
this.considerItem( name, item, "Lanthanum", 138.9055 );
|
||||
this.considerItem( name, item, "Cerium", 140.116 );
|
||||
this.considerItem( name, item, "Tantalum", 180.9479 );
|
||||
this.considerItem( name, item, "Tungsten", 183.84 );
|
||||
this.considerItem( name, item, "Osmium", 190.23 );
|
||||
this.considerItem( name, item, "Iridium", 192.217 );
|
||||
this.considerItem( name, item, "Platinum", 195.078 );
|
||||
this.considerItem( name, item, "Lead", 207.2 );
|
||||
this.considerItem( name, item, "Bismuth", 208.9804 );
|
||||
this.considerItem( name, item, "Uranium", 238.0289 );
|
||||
this.considerItem( name, item, "Plutonium", 244 );
|
||||
|
||||
// TE stuff...
|
||||
this.considerItem( name, item, "Invar", ( 58.6934 + 55.845 + 55.845 ) / 3.0 );
|
||||
this.considerItem( name, item, "Electrum", ( 107.8682 + 196.96655 ) / 2.0 );
|
||||
}
|
||||
// FIXME @Override
|
||||
// FIXME public void oreRegistered( final String name, final ItemStack item )
|
||||
// FIXME {
|
||||
// FIXME if( !( name.startsWith( "berry" ) || name.startsWith( "nugget" ) ) )
|
||||
// FIXME {
|
||||
// FIXME return;
|
||||
// FIXME }
|
||||
// FIXME
|
||||
// FIXME // addNugget( "Cobble", 18 ); // ?
|
||||
// FIXME this.considerItem( name, item, "MeatRaw", 32 );
|
||||
// FIXME this.considerItem( name, item, "MeatCooked", 32 );
|
||||
// FIXME this.considerItem( name, item, "Meat", 32 );
|
||||
// FIXME this.considerItem( name, item, "Chicken", 32 );
|
||||
// FIXME this.considerItem( name, item, "Beef", 32 );
|
||||
// FIXME this.considerItem( name, item, "Sheep", 32 );
|
||||
// FIXME this.considerItem( name, item, "Fish", 32 );
|
||||
// FIXME
|
||||
// FIXME // real world...
|
||||
// FIXME this.considerItem( name, item, "Lithium", 6.941 );
|
||||
// FIXME this.considerItem( name, item, "Beryllium", 9.0122 );
|
||||
// FIXME this.considerItem( name, item, "Boron", 10.811 );
|
||||
// FIXME this.considerItem( name, item, "Carbon", 12.0107 );
|
||||
// FIXME this.considerItem( name, item, "Coal", 12.0107 );
|
||||
// FIXME this.considerItem( name, item, "Charcoal", 12.0107 );
|
||||
// FIXME this.considerItem( name, item, "Sodium", 22.9897 );
|
||||
// FIXME this.considerItem( name, item, "Magnesium", 24.305 );
|
||||
// FIXME this.considerItem( name, item, "Aluminum", 26.9815 );
|
||||
// FIXME this.considerItem( name, item, "SILICON", 28.0855 );
|
||||
// FIXME this.considerItem( name, item, "Phosphorus", 30.9738 );
|
||||
// FIXME this.considerItem( name, item, "Sulfur", 32.065 );
|
||||
// FIXME this.considerItem( name, item, "Potassium", 39.0983 );
|
||||
// FIXME this.considerItem( name, item, "Calcium", 40.078 );
|
||||
// FIXME this.considerItem( name, item, "Scandium", 44.9559 );
|
||||
// FIXME this.considerItem( name, item, "Titanium", 47.867 );
|
||||
// FIXME this.considerItem( name, item, "Vanadium", 50.9415 );
|
||||
// FIXME this.considerItem( name, item, "Manganese", 54.938 );
|
||||
// FIXME this.considerItem( name, item, "Iron", 55.845 );
|
||||
// FIXME this.considerItem( name, item, "Nickel", 58.6934 );
|
||||
// FIXME this.considerItem( name, item, "Cobalt", 58.9332 );
|
||||
// FIXME this.considerItem( name, item, "Copper", 63.546 );
|
||||
// FIXME this.considerItem( name, item, "Zinc", 65.39 );
|
||||
// FIXME this.considerItem( name, item, "Gallium", 69.723 );
|
||||
// FIXME this.considerItem( name, item, "Germanium", 72.64 );
|
||||
// FIXME this.considerItem( name, item, "Bromine", 79.904 );
|
||||
// FIXME this.considerItem( name, item, "Krypton", 83.8 );
|
||||
// FIXME this.considerItem( name, item, "Rubidium", 85.4678 );
|
||||
// FIXME this.considerItem( name, item, "Strontium", 87.62 );
|
||||
// FIXME this.considerItem( name, item, "Yttrium", 88.9059 );
|
||||
// FIXME this.considerItem( name, item, "Zirconiumm", 91.224 );
|
||||
// FIXME this.considerItem( name, item, "Niobiumm", 92.9064 );
|
||||
// FIXME this.considerItem( name, item, "Technetium", 98 );
|
||||
// FIXME this.considerItem( name, item, "Ruthenium", 101.07 );
|
||||
// FIXME this.considerItem( name, item, "Rhodium", 102.9055 );
|
||||
// FIXME this.considerItem( name, item, "Palladium", 106.42 );
|
||||
// FIXME this.considerItem( name, item, "Silver", 107.8682 );
|
||||
// FIXME this.considerItem( name, item, "Cadmium", 112.411 );
|
||||
// FIXME this.considerItem( name, item, "Indium", 114.818 );
|
||||
// FIXME this.considerItem( name, item, "Tin", 118.71 );
|
||||
// FIXME this.considerItem( name, item, "Antimony", 121.76 );
|
||||
// FIXME this.considerItem( name, item, "Iodine", 126.9045 );
|
||||
// FIXME this.considerItem( name, item, "Tellurium", 127.6 );
|
||||
// FIXME this.considerItem( name, item, "Xenon", 131.293 );
|
||||
// FIXME this.considerItem( name, item, "Cesium", 132.9055 );
|
||||
// FIXME this.considerItem( name, item, "Barium", 137.327 );
|
||||
// FIXME this.considerItem( name, item, "Lanthanum", 138.9055 );
|
||||
// FIXME this.considerItem( name, item, "Cerium", 140.116 );
|
||||
// FIXME this.considerItem( name, item, "Tantalum", 180.9479 );
|
||||
// FIXME this.considerItem( name, item, "Tungsten", 183.84 );
|
||||
// FIXME this.considerItem( name, item, "Osmium", 190.23 );
|
||||
// FIXME this.considerItem( name, item, "Iridium", 192.217 );
|
||||
// FIXME this.considerItem( name, item, "Platinum", 195.078 );
|
||||
// FIXME this.considerItem( name, item, "Lead", 207.2 );
|
||||
// FIXME this.considerItem( name, item, "Bismuth", 208.9804 );
|
||||
// FIXME this.considerItem( name, item, "Uranium", 238.0289 );
|
||||
// FIXME this.considerItem( name, item, "Plutonium", 244 );
|
||||
// FIXME
|
||||
// FIXME // TE stuff...
|
||||
// FIXME this.considerItem( name, item, "Invar", ( 58.6934 + 55.845 + 55.845 ) / 3.0 );
|
||||
// FIXME this.considerItem( name, item, "Electrum", ( 107.8682 + 196.96655 ) / 2.0 );
|
||||
// FIXME }
|
||||
|
||||
private void considerItem( final String ore, final ItemStack item, final String name, final double weight )
|
||||
{
|
||||
|
||||
@@ -77,22 +77,22 @@ public final class P2PTunnelRegistry implements IP2PTunnelRegistry
|
||||
this.addNewAttunement( blocks.energyCell(), TunnelType.FE_POWER );
|
||||
this.addNewAttunement( blocks.energyCellCreative(), TunnelType.FE_POWER );
|
||||
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 0 ), TunnelType.FE_POWER );
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 1 ), TunnelType.FE_POWER );
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 2 ), TunnelType.FE_POWER );
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 3 ), TunnelType.FE_POWER );
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 4 ), TunnelType.FE_POWER );
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 5 ), TunnelType.FE_POWER );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 0 ), TunnelType.FE_POWER );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 1 ), TunnelType.FE_POWER );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 2 ), TunnelType.FE_POWER );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 3 ), TunnelType.FE_POWER );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 4 ), TunnelType.FE_POWER );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_0", 5 ), TunnelType.FE_POWER );
|
||||
|
||||
/**
|
||||
* EU tunnel items
|
||||
*/
|
||||
|
||||
this.addNewAttunement( this.getModItem( "ic2", "cable", 0 ), TunnelType.IC2_POWER ); // Copper cable
|
||||
this.addNewAttunement( this.getModItem( "ic2", "cable", 1 ), TunnelType.IC2_POWER ); // Glass fibre cable
|
||||
this.addNewAttunement( this.getModItem( "ic2", "cable", 2 ), TunnelType.IC2_POWER ); // Gold cable
|
||||
this.addNewAttunement( this.getModItem( "ic2", "cable", 3 ), TunnelType.IC2_POWER ); // HV cable
|
||||
this.addNewAttunement( this.getModItem( "ic2", "cable", 4 ), TunnelType.IC2_POWER ); // Tin cable
|
||||
// FIXME this.addNewAttunement( this.getModItem( "ic2", "cable", 0 ), TunnelType.IC2_POWER ); // Copper cable
|
||||
// FIXME this.addNewAttunement( this.getModItem( "ic2", "cable", 1 ), TunnelType.IC2_POWER ); // Glass fibre cable
|
||||
// FIXME this.addNewAttunement( this.getModItem( "ic2", "cable", 2 ), TunnelType.IC2_POWER ); // Gold cable
|
||||
// FIXME this.addNewAttunement( this.getModItem( "ic2", "cable", 3 ), TunnelType.IC2_POWER ); // HV cable
|
||||
// FIXME this.addNewAttunement( this.getModItem( "ic2", "cable", 4 ), TunnelType.IC2_POWER ); // Tin cable
|
||||
|
||||
/**
|
||||
* attune based on most redstone base items.
|
||||
@@ -119,15 +119,15 @@ public final class P2PTunnelRegistry implements IP2PTunnelRegistry
|
||||
this.addNewAttunement( new ItemStack( Blocks.HOPPER ), TunnelType.ITEM );
|
||||
this.addNewAttunement( new ItemStack( Blocks.CHEST ), TunnelType.ITEM );
|
||||
this.addNewAttunement( new ItemStack( Blocks.TRAPPED_CHEST ), TunnelType.ITEM );
|
||||
this.addNewAttunement( this.getModItem( "extrautilities", "extractor_base", 0 ), TunnelType.ITEM );
|
||||
this.addNewAttunement( this.getModItem( "mekanism", "parttransmitter", 9 ), TunnelType.ITEM );
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 0 ), TunnelType.ITEM ); // itemduct
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 1 ), TunnelType.ITEM ); // itemduct
|
||||
// (opaque)
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 2 ), TunnelType.ITEM ); // impulse
|
||||
// itemduct
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 3 ), TunnelType.ITEM ); // impulse
|
||||
// itemduct
|
||||
// FIXME this.addNewAttunement( this.getModItem( "extrautilities", "extractor_base", 0 ), TunnelType.ITEM );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "mekanism", "parttransmitter", 9 ), TunnelType.ITEM );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 0 ), TunnelType.ITEM ); // itemduct
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 1 ), TunnelType.ITEM ); // itemduct
|
||||
// FIXME // (opaque)
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 2 ), TunnelType.ITEM ); // impulse
|
||||
// FIXME // itemduct
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_32", 3 ), TunnelType.ITEM ); // impulse
|
||||
// FIXME // itemduct
|
||||
// (opaque)
|
||||
|
||||
/**
|
||||
@@ -137,18 +137,18 @@ public final class P2PTunnelRegistry implements IP2PTunnelRegistry
|
||||
this.addNewAttunement( new ItemStack( Items.LAVA_BUCKET ), TunnelType.FLUID );
|
||||
this.addNewAttunement( new ItemStack( Items.MILK_BUCKET ), TunnelType.FLUID );
|
||||
this.addNewAttunement( new ItemStack( Items.WATER_BUCKET ), TunnelType.FLUID );
|
||||
this.addNewAttunement( this.getModItem( "mekanism", "machineblock2", 11 ), TunnelType.FLUID );
|
||||
this.addNewAttunement( this.getModItem( "mekanism", "parttransmitter", 4 ), TunnelType.FLUID );
|
||||
this.addNewAttunement( this.getModItem( "extrautilities", "extractor_base", 6 ), TunnelType.FLUID );
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 0 ), TunnelType.FLUID ); // fluiduct
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 1 ), TunnelType.FLUID ); // fluiduct
|
||||
// (opaque)
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 2 ), TunnelType.FLUID ); // fluiduct
|
||||
// hardened
|
||||
this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 3 ), TunnelType.FLUID ); // fluiduct
|
||||
// hardened
|
||||
// (opaque)
|
||||
|
||||
// FIXME this.addNewAttunement( this.getModItem( "mekanism", "machineblock2", 11 ), TunnelType.FLUID );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "mekanism", "parttransmitter", 4 ), TunnelType.FLUID );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "extrautilities", "extractor_base", 6 ), TunnelType.FLUID );
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 0 ), TunnelType.FLUID ); // fluiduct
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 1 ), TunnelType.FLUID ); // fluiduct
|
||||
// FIXME // (opaque)
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 2 ), TunnelType.FLUID ); // fluiduct
|
||||
// FIXME // hardened
|
||||
// FIXME this.addNewAttunement( this.getModItem( "thermaldynamics", "duct_16", 3 ), TunnelType.FLUID ); // fluiduct
|
||||
// FIXME // hardened
|
||||
// FIXME // (opaque)
|
||||
// FIXME
|
||||
for( final AEColor c : AEColor.values() )
|
||||
{
|
||||
this.addNewAttunement( parts.cableGlass().stack( c, 1 ), TunnelType.ME );
|
||||
|
||||
@@ -32,7 +32,7 @@ import appeng.api.features.IWirelessTermHandler;
|
||||
import appeng.api.features.IWirelessTermRegistry;
|
||||
import appeng.core.Api;
|
||||
import appeng.core.localization.PlayerMessages;
|
||||
import appeng.core.sync.GuiBridge;
|
||||
|
||||
import appeng.util.Platform;
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ public final class WirelessRegistry implements IWirelessTermRegistry
|
||||
|
||||
if( handler.hasPower( player, 0.5, item ) )
|
||||
{
|
||||
Platform.openGUI( player, null, null, GuiBridge.GUI_WIRELESS_TERM );
|
||||
// FIXME Platform.openGUI( player, null, null, GuiBridge.GUI_WIRELESS_TERM );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ import appeng.api.storage.channels.IItemStorageChannel;
|
||||
import appeng.api.storage.data.IAEStack;
|
||||
import appeng.api.util.AEPartLocation;
|
||||
import appeng.core.Api;
|
||||
import appeng.core.sync.GuiBridge;
|
||||
|
||||
import appeng.util.Platform;
|
||||
|
||||
|
||||
@@ -31,6 +31,6 @@ public class BasicItemCellGuiHandler implements ICellGuiHandler
|
||||
@Override
|
||||
public void openChestGui( final PlayerEntity player, final IChestOrDrive chest, final ICellHandler cellHandler, final IMEInventoryHandler inv, final ItemStack is, final IStorageChannel chan )
|
||||
{
|
||||
Platform.openGUI( player, (TileEntity) chest, AEPartLocation.fromFacing( chest.getUp() ), GuiBridge.GUI_ME );
|
||||
// FIXME Platform.openGUI( player, (TileEntity) chest, AEPartLocation.fromFacing( chest.getUp() ), GuiBridge.GUI_ME );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,11 +41,10 @@ import appeng.api.features.IInscriberRecipe;
|
||||
import appeng.api.features.IInscriberRecipeBuilder;
|
||||
import appeng.core.AEConfig;
|
||||
import appeng.core.AELog;
|
||||
import appeng.recipes.ores.IOreListener;
|
||||
import appeng.util.Platform;
|
||||
|
||||
|
||||
public final class GrinderRecipeManager implements IGrinderRegistry, IOreListener
|
||||
public final class GrinderRecipeManager implements IGrinderRegistry // FIXME, IOreListener
|
||||
{
|
||||
private final Map<CacheKey, IGrinderRecipe> recipes;
|
||||
private final Map<ItemStack, String> ores;
|
||||
@@ -84,7 +83,7 @@ public final class GrinderRecipeManager implements IGrinderRegistry, IOreListene
|
||||
|
||||
this.addIngot( "Wheat", new ItemStack( Items.WHEAT ) );
|
||||
|
||||
OreDictionaryHandler.INSTANCE.observe( this );
|
||||
// FIXME OreDictionaryHandler.INSTANCE.observe( this );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -162,29 +161,29 @@ public final class GrinderRecipeManager implements IGrinderRegistry, IOreListene
|
||||
return this.dustToOreRatio.remove( oredictName ) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void oreRegistered( final String name, final ItemStack item )
|
||||
{
|
||||
if( !AEConfig.instance().getGrinderBlackList().contains( name ) && ( name.startsWith( "ore" ) || name.startsWith( "crystal" ) || name
|
||||
.startsWith( "gem" ) || name.startsWith( "ingot" ) || name.startsWith( "dust" ) ) )
|
||||
{
|
||||
for( final String ore : AEConfig.instance().getGrinderOres() )
|
||||
{
|
||||
if( name.equals( "ore" + ore ) )
|
||||
{
|
||||
this.addOre( ore, item );
|
||||
}
|
||||
else if( name.equals( "crystal" + ore ) || name.equals( "ingot" + ore ) || name.equals( "gem" + ore ) )
|
||||
{
|
||||
this.addIngot( ore, item );
|
||||
}
|
||||
else if( name.equals( "dust" + ore ) )
|
||||
{
|
||||
this.addDust( ore, item );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// FIXME @Override
|
||||
// FIXME public void oreRegistered( final String name, final ItemStack item )
|
||||
// FIXME {
|
||||
// FIXME if( !AEConfig.instance().getGrinderBlackList().contains( name ) && ( name.startsWith( "ore" ) || name.startsWith( "crystal" ) || name
|
||||
// FIXME .startsWith( "gem" ) || name.startsWith( "ingot" ) || name.startsWith( "dust" ) ) )
|
||||
// FIXME {
|
||||
// FIXME for( final String ore : AEConfig.instance().getGrinderOres() )
|
||||
// FIXME {
|
||||
// FIXME if( name.equals( "ore" + ore ) )
|
||||
// FIXME {
|
||||
// FIXME this.addOre( ore, item );
|
||||
// FIXME }
|
||||
// FIXME else if( name.equals( "crystal" + ore ) || name.equals( "ingot" + ore ) || name.equals( "gem" + ore ) )
|
||||
// FIXME {
|
||||
// FIXME this.addIngot( ore, item );
|
||||
// FIXME }
|
||||
// FIXME else if( name.equals( "dust" + ore ) )
|
||||
// FIXME {
|
||||
// FIXME this.addDust( ore, item );
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
|
||||
private boolean injectRecipe( final IGrinderRecipe grinderRecipe )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user