GenuineSounds

Axe effects

Jun 17th, 2012
194
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.45 KB | None | 0 0
  1. package ltd.genuine.effect;
  2.  
  3. import ltd.genuine.damage.Damage;
  4. import ltd.genuine.element.EnumElement;
  5. import net.minecraft.src.*;
  6.  
  7. public class AxeEffect implements IEffect {
  8.  
  9.     @Override
  10.     public void processBlock(ItemStack itemstack, int blockID, int x, int y, int z, EntityLiving entityliving) {
  11.         Block block = Block.blocksList[blockID];
  12.         if (block != null && itemstack != null && itemstack.stackTagCompound != null &&
  13.         (
  14.             block instanceof BlockVine || block instanceof BlockFlower || block instanceof BlockLog || block instanceof BlockLeavesBase || block instanceof BlockWood
  15.         )) {
  16.             for (EnumElement type : EnumElement.values()) {
  17.                 float value = itemstack.stackTagCompound.getFloat(type.getName());
  18.                 if (value == 0)
  19.                     continue;
  20.                 switch (type) {
  21.                     case NORMAL:
  22.                         break;
  23.                     case FIRE:
  24.                         break;
  25.                     case WIND:
  26.                         break;
  27.                     case HEAVEN:
  28.                         break;
  29.                     case WATER:
  30.                         break;
  31.                     case EARTH:
  32.                         break;
  33.                     case HELL:
  34.                         break;
  35.                 }
  36.             }
  37.         }
  38.     }
  39.  
  40.     @Override
  41.     public void processCreated(ItemStack itemstack, World world, EntityPlayer entityplayer) {
  42.         // TODO Auto-generated method stub
  43.     }
  44.  
  45.     @Override
  46.     public void processHit(ItemStack itemstack, EntityLiving target, EntityLiving source) {
  47.         // TODO Auto-generated method stub
  48.     }
  49.  
  50.     @Override
  51.     public void processUpdate(ItemStack itemstack, World world, Entity entity, int i, boolean flag) {
  52.         // TODO Auto-generated method stub
  53.     }
  54. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment