Advertisement
Arctic_Wolfy

EntityRocket.class

Mar 1st, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. package com.arctic.paperArmor.entities;
  2.  
  3. import net.minecraft.entity.Entity;
  4. import net.minecraft.entity.IProjectile;
  5. import net.minecraft.nbt.NBTTagCompound;
  6. import net.minecraft.world.World;
  7.  
  8. public class EntityRocket extends Entity implements IProjectile{
  9.     public EntityRocket(World world) {super(world);}
  10.     public EntityRocket(World world, double x, double y, double z){
  11.         super(world);
  12.         this.setPosition(x,y,z);
  13.     }
  14.  
  15.     @Override protected void entityInit() {}
  16.     @Override protected void readEntityFromNBT(NBTTagCompound tag) {}
  17.     @Override protected void writeEntityToNBT(NBTTagCompound tag) {}
  18.  
  19.     @Override
  20.     public void setThrowableHeading(double x, double y, double z, float f1, float f2) {
  21.         this.motionX = x;
  22.         this.motionY = y;
  23.         this.motionZ = z;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement