Package appeng.util

Examples of appeng.util.InWorldToolOperationResult


  static private Hashtable<Combo, InWorldToolOperationResult> heatUp;
  static private Hashtable<Combo, InWorldToolOperationResult> coolDown;

  static public void heat(Block BlockID, int Metadata, World w, int x, int y, int z)
  {
    InWorldToolOperationResult r = heatUp.get( new Combo( BlockID, Metadata ) );

    if ( r == null )
    {
      r = heatUp.get( new Combo( BlockID, OreDictionary.WILDCARD_VALUE ) );
    }
View Full Code Here


    }
  }

  static public boolean canHeat(Block BlockID, int Metadata)
  {
    InWorldToolOperationResult r = heatUp.get( new Combo( BlockID, Metadata ) );

    if ( r == null )
    {
      r = heatUp.get( new Combo( BlockID, OreDictionary.WILDCARD_VALUE ) );
    }
View Full Code Here

    return r != null;
  }

  static public void cool(Block BlockID, int Metadata, World w, int x, int y, int z)
  {
    InWorldToolOperationResult r = coolDown.get( new Combo( BlockID, Metadata ) );

    if ( r == null )
    {
      r = coolDown.get( new Combo( BlockID, OreDictionary.WILDCARD_VALUE ) );
    }
View Full Code Here

    }
  }

  static public boolean canCool(Block BlockID, int Metadata)
  {
    InWorldToolOperationResult r = coolDown.get( new Combo( BlockID, Metadata ) );

    if ( r == null )
    {
      r = coolDown.get( new Combo( BlockID, OreDictionary.WILDCARD_VALUE ) );
    }
View Full Code Here

    super( ToolEntropyManipulator.class, null );
    setFeature( EnumSet.of( AEFeature.EntropyManipulator, AEFeature.PoweredTools ) );
    maxStoredPower = AEConfig.instance.entropyManipulatorBattery;

    coolDown = new Hashtable<Combo, InWorldToolOperationResult>();
    coolDown.put( new Combo( Blocks.stone, 0 ), new InWorldToolOperationResult( new ItemStack( Blocks.cobblestone ) ) );
    coolDown.put( new Combo( Blocks.stonebrick, 0 ), new InWorldToolOperationResult( new ItemStack( Blocks.stonebrick, 1, 2 ) ) );
    coolDown.put( new Combo( Blocks.lava, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.obsidian ) ) );
    coolDown.put( new Combo( Blocks.flowing_lava, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.obsidian ) ) );
    coolDown.put( new Combo( Blocks.grass, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.dirt ) ) );

    List<ItemStack> snowBalls = new ArrayList<ItemStack>();
    snowBalls.add( new ItemStack( Items.snowball ) );
    coolDown.put( new Combo( Blocks.flowing_water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( null, snowBalls ) );
    coolDown.put( new Combo( Blocks.water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.ice ) ) );

    heatUp = new Hashtable<Combo, InWorldToolOperationResult>();
    heatUp.put( new Combo( Blocks.ice, 0 ), new InWorldToolOperationResult( new ItemStack( Blocks.water ) ) );
    heatUp.put( new Combo( Blocks.flowing_water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult() );
    heatUp.put( new Combo( Blocks.water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult() );
    heatUp.put( new Combo( Blocks.snow, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.flowing_water ) ) );
  }
View Full Code Here

        }

        if ( hasFurnaceable && canFurnaceable )
        {
          extractAEPower( item, 1600 );
          InWorldToolOperationResult or = InWorldToolOperationResult.getBlockOperationResult( out.toArray( new ItemStack[out.size()] ) );
          w.playSoundEffect( x + 0.5D, y + 0.5D, z + 0.5D, "fire.ignite", 1.0F, itemRand.nextFloat() * 0.4F + 0.8F );

          if ( or.BlockItem == null )
          {
            w.setBlock( x, y, z, Platform.air, 0, 3 );
View Full Code Here

TOP

Related Classes of appeng.util.InWorldToolOperationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.