Replaced all instances of Guava's Optional type with Java 8's Optional type, as discussed in #81. (#90)
This commit is contained in:
committed by
Sebastian Hartte
parent
c2a239a12f
commit
e276aa682f
@@ -293,10 +293,10 @@ public class ToolMassCannon extends AEBasePoweredItem implements IStorageCell
|
||||
final Block whatsThere = w.getBlockState( hitPos ).getBlock();
|
||||
if( whatsThere.isReplaceable( w, hitPos ) && w.isAirBlock( hitPos ) )
|
||||
{
|
||||
for( final Block paintBlock : AEApi.instance().definitions().blocks().paint().maybeBlock().asSet() )
|
||||
AEApi.instance().definitions().blocks().paint().maybeBlock().ifPresent( paintBlock ->
|
||||
{
|
||||
w.setBlockState( hitPos, paintBlock.getDefaultState(), 3 );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
final TileEntity te = w.getTileEntity( hitPos );
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
package appeng.items.tools.powered.powersink;
|
||||
|
||||
|
||||
//import com.google.common.base.Optional;
|
||||
//import java.util.Optional;
|
||||
//
|
||||
//import net.minecraft.entity.EntityLivingBase;
|
||||
//import net.minecraft.item.Item;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
package appeng.items.tools.powered.powersink;
|
||||
|
||||
|
||||
//import com.google.common.base.Optional;
|
||||
//import java.util.Optional;
|
||||
//
|
||||
//import net.minecraft.item.ItemStack;
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user