Admiral_Damage

Le EntityBus

Mar 14th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.42 KB | None | 0 0
  1. package eu.tetrabyte.contentmod.entity;
  2.  
  3. import net.minecraft.entity.Entity;
  4. import net.minecraft.nbt.NBTTagCompound;
  5. import net.minecraft.util.BlockPos;
  6. import net.minecraft.world.World;
  7. import net.minecraftforge.fml.relauncher.Side;
  8. import net.minecraftforge.fml.relauncher.SideOnly;
  9.  
  10. public class EntityBus extends Entity {
  11.    
  12.     private double motionX;
  13.     private double motionY;
  14.     private double motionZ;
  15.    
  16.     private double busX;
  17.     private double busY;
  18.     private double busZ;
  19.     private double busYaw;
  20.     private double busPitch;
  21.     @SideOnly(Side.CLIENT)
  22.     private double velocityX;
  23.     @SideOnly(Side.CLIENT)
  24.     private double velocityY;
  25.     @SideOnly(Side.CLIENT)
  26.     private double velocityZ;
  27.    
  28.     public EntityBus(World worldIn, BlockPos pos, float yaw) {
  29.         super(worldIn);
  30.        
  31.         this.setPosition(pos.getX(), pos.getY() +1.0D, pos.getZ());
  32.         //this.setPosition(pos.getX(), pos.getY(), pos.getZ());
  33.     }
  34.  
  35.     @Override
  36.     protected void entityInit() {
  37.         // TODO Auto-generated method stub
  38.  
  39.     }
  40.  
  41.     @Override
  42.     protected void readEntityFromNBT(NBTTagCompound tagCompund) {
  43.         // TODO Auto-generated method stub
  44.  
  45.     }
  46.  
  47.     @Override
  48.     protected void writeEntityToNBT(NBTTagCompound tagCompound) {
  49.         // TODO Auto-generated method stub
  50.  
  51.     }
  52.    
  53.     @Override
  54.     public void onUpdate() {
  55.         // TODO Auto-generated method stub
  56.         //this.kill();
  57.         this.setAlwaysRenderNameTag(true);
  58.         super.onUpdate();
  59.     }
  60.    
  61. }
Advertisement
Add Comment
Please, Sign In to add comment