Guest User

f$y98HFnn287290

a guest
Jun 11th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.40 KB | None | 0 0
  1. package com.sear.tutorial.magic;
  2.  
  3. import com.sear.tutorial.Tutorial;
  4. import com.sear.tutorial.entity.EntityRubyArrow;
  5. import com.sear.tutorial.util.StringColors;
  6.  
  7. import cpw.mods.fml.relauncher.Side;
  8. import cpw.mods.fml.relauncher.SideOnly;
  9.  
  10. import net.minecraft.client.Minecraft;
  11. import net.minecraft.enchantment.Enchantment;
  12. import net.minecraft.enchantment.EnchantmentHelper;
  13. import net.minecraft.entity.player.EntityPlayer;
  14. import net.minecraft.entity.projectile.EntityFireball;
  15. import net.minecraft.server.MinecraftServer;
  16. import net.minecraft.world.World;
  17.  
  18. public class spells {
  19.     /** Sets the currently active spell on startup. */
  20.     public static int activeSpell = 0;
  21.     /** Sets the active spell on an input. */
  22.     public static void setActiveSpell(int spell) {
  23.         activeSpell = spell;
  24.        
  25.        
  26.     }
  27.     /** Activates the spell with the specified value (e.g. 2 is ice blast)
  28.      * and then determines what spell it is, and casts the spell.
  29.      * */
  30.     public static void activateSpell(int spell){
  31.         switch(spell){
  32.             case 0: ;
  33.             case 1: fireFireball();
  34.             case 2:
  35.             case 3:
  36.             default:
  37.        
  38.        
  39.         }
  40.        
  41.     }
  42.     public static void fireFireball(){
  43.         float f = 2.0F;
  44.         World world;
  45.         EntityPlayer player;
  46.         EntityFireball fireball = new EntityFireball(world, player,  4.0F);
  47.  
  48.  
  49.      
  50.  
  51.         if (!world.isRemote)
  52.         {
  53.            world.spawnEntityInWorld(fireball);
  54.         }
  55.        
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment