Advertisement
Corosus

Untitled

Oct 9th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 22.14 KB | None | 0 0
  1. package net.weather.blocks.structure;
  2.  
  3. import java.util.List;
  4. import java.lang.reflect.Field;
  5.  
  6. import CoroAI.PFQueue;
  7. import CoroAI.PathEntityEx;
  8. import CoroAI.c_IEnhAI;
  9. import CoroAI.c_IEnhPF;
  10.  
  11. import com.google.common.io.ByteArrayDataInput;
  12. import com.google.common.io.ByteArrayDataOutput;
  13.  
  14. import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
  15.  
  16. import net.minecraft.src.AxisAlignedBB;
  17. import net.minecraft.src.Block;
  18. import net.minecraft.src.BlockContainer;
  19. import net.minecraft.src.DamageSource;
  20. import net.minecraft.src.Entity;
  21. import net.minecraft.src.Material;
  22. import net.minecraft.src.MathHelper;
  23. import net.minecraft.src.MovingObjectPosition;
  24. import net.minecraft.src.NBTTagCompound;
  25. import net.minecraft.src.PathEntity;
  26. import net.minecraft.src.TileEntity;
  27. import net.minecraft.src.Vec3;
  28. import net.minecraft.src.World;
  29. import net.weather.WeatherMod;
  30. import net.weather.wind.WindHandler;
  31.  
  32. public class PhantomBlock extends Entity implements IEntityAdditionalSpawnData, c_IEnhPF, WindHandler
  33. {
  34.     public int tile;
  35.     public final int falling = 0;
  36.     public final int grabbed = 1;
  37.     public int mode;
  38.     public final float slowdown = 0.98F;
  39.     public final float curvature = 0.05F;
  40.     public int metadata;
  41.     public TileEntity tileentity;
  42.     public Material material;
  43.     public int age;
  44.     public int type;
  45.     public boolean noCollision;
  46.     public boolean collideFalling = false;
  47.     public double vecX;
  48.     public double vecY;
  49.     public double vecZ;
  50.     public double lastPosX;
  51.     public double lastPosZ;
  52.     public Entity controller;
  53.     public int gravityDelay;
  54.    
  55.     public PathEntityEx path;
  56.     public Entity target;
  57.     public int noMoveTicks;
  58.     public boolean active;
  59.    
  60.     public int destX;
  61.     public int destY;
  62.     public int destZ;
  63.    
  64.     public boolean waitingForPath;
  65.  
  66.     public PhantomBlock(World var1)
  67.     {
  68.         super(var1);
  69.         this.mode = 1;
  70.         this.age = 0;
  71.         this.tile = 0;
  72.         this.noCollision = true;
  73.         this.gravityDelay = 60;
  74.     }
  75.  
  76.     public PhantomBlock(World var1, int var2, int var3, int var4, int var5)
  77.     {
  78.         super(var1);
  79.         this.mode = 1;
  80.         this.age = 0;
  81.         this.type = 0;
  82.         active = true;
  83.         this.noCollision = false;
  84.         this.gravityDelay = 1000;
  85.         this.noCollision = true;
  86.         this.tile = var5;
  87.         this.setSize(0.9F, 0.9F);
  88.         this.yOffset = this.height / 2.0F;
  89.         this.setPosition((double)var2 + 0.5D, (double)var3 + 0.5D, (double)var4 + 0.5D);
  90.         this.motionX = 0.0D;
  91.         this.motionY = 0.0D;
  92.         this.motionZ = 0.0D;
  93.         this.prevPosX = (double)((float)var2 + 0.5F);
  94.         this.prevPosY = (double)((float)var3 + 0.5F);
  95.         this.prevPosZ = (double)((float)var4 + 0.5F);
  96.         this.material = Block.blocksList[this.tile].blockMaterial;
  97.         this.tileentity = var1.getBlockTileEntity(var2, var3, var4);
  98.         this.metadata = var1.getBlockMetadata(var2, var3, var4);
  99.        
  100.         waitingForPath = true;
  101.  
  102.         if (this.tileentity != null)
  103.         {
  104.             var1.setBlockTileEntity(var2, var3, var4, ((BlockContainer)Block.blocksList[this.tile]).createNewTileEntity(var1));
  105.             var1.setBlockAndMetadataWithNotify(var2, var3, var4, 0, 0);
  106.         }
  107.     }
  108.  
  109.     public boolean isInRangeToRenderDist(double var1)
  110.     {
  111.         return true;
  112.     }
  113.  
  114.     public boolean canTriggerWalking()
  115.     {
  116.         return false;
  117.     }
  118.  
  119.     public boolean canBePushed()
  120.     {
  121.         return !this.isDead;
  122.     }
  123.  
  124.     public boolean canBeCollidedWith()
  125.     {
  126.         return !this.isDead && !this.noCollision;
  127.     }
  128.    
  129.     public void clientUpdate() {
  130.        
  131.     }
  132.  
  133.     public void onUpdate()
  134.     {
  135.        
  136.         //setDead();
  137.        
  138.         if (worldObj.isRemote) {
  139.             clientUpdate();
  140.             return;
  141.         }
  142.        
  143.         if (this.tile == 0)
  144.         {
  145.             this.setEntityDead();
  146.         }
  147.         else
  148.         {
  149.            
  150.             if (notMoving(this, 0.05F)) {
  151.                 noMoveTicks++;
  152.             } else {
  153.                 noMoveTicks = 0;
  154.             }
  155.  
  156.             /*if (noMoveTicks > 20) {
  157.                 active = false;
  158.                 mode = 0;
  159.             }*/
  160.  
  161.             if (target != null) {
  162.                 if (getDistanceToEntity(target) < 1) {
  163.                     active = false;
  164.                     mode = 0;
  165.                 }
  166.             } else {
  167.             }
  168.  
  169.             //path = null;
  170.            
  171.             if (!waitingForPath && !pathFollow()) {
  172.                 //System.out.println("D:");
  173.                 if (active) {
  174.                     motionX = motionY = motionZ = 0F;
  175.                 }
  176.  
  177.                 active = false;
  178.                 mode = 0;
  179.                
  180.                 blockify(0,0,0,0);
  181.             }
  182.  
  183.             if (age > 40) { //if still waiting, pf failed
  184.                 waitingForPath = false;
  185.             }
  186.            
  187.            
  188.             ++this.age;
  189.  
  190.             if (this.age > this.gravityDelay && this.type == 0)
  191.             {
  192.                 this.mode = 0;
  193.  
  194.                 if (this.tileentity == null && WeatherMod.Storm_Tornado_rarityOfDisintegrate != -1 && this.rand.nextInt((WeatherMod.Storm_Tornado_rarityOfDisintegrate + 1) * 20) == 0)
  195.                 {
  196.                     //this.setEntityDead();
  197.                 }
  198.  
  199.                 if (this.tileentity == null && WeatherMod.Storm_Tornado_rarityOfFirenado != -1 && this.rand.nextInt((WeatherMod.Storm_Tornado_rarityOfFirenado + 1) * 20) == 0)
  200.                 {
  201.                     this.tile = Block.fire.blockID;
  202.                 }
  203.             }
  204.  
  205.             if (this.type == 0 && this.controller != null)
  206.             {
  207.                 this.vecX = this.controller.posX - this.posX;
  208.                 this.vecY = this.controller.boundingBox.minY + (double)(this.controller.height / 2.0F) - (this.posY + (double)(this.height / 2.0F));
  209.                 this.vecZ = this.controller.posZ - this.posZ;
  210.             }
  211.  
  212.             if (this.mode == 1)
  213.             {
  214.                 this.fallDistance = 0.0F;
  215.                 this.isCollidedHorizontally = false;
  216.             }
  217.  
  218.             /*Field fire = null;
  219.             int fireInt = 0;
  220.             try {
  221.              fire = Entity.class.getDeclaredField("c");
  222.              fire.setAccessible(true);
  223.              fireInt = (int)fire.get(ent);
  224.             } catch (Exception ex) {
  225.              try {
  226.               fire = Entity.class.getDeclaredField("fire");
  227.                  fire.setAccessible(true);
  228.                  fireInt = (int)fire.get(ent);
  229.              } catch (Exception ex2) {
  230.              }
  231.             }*/
  232.             /*if(this.fire > 0) {
  233.                --this.fire;
  234.             }*/
  235.             Vec3 var1 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
  236.             Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX * 1.3D, this.posY + this.motionY * 1.3D, this.posZ + this.motionZ * 1.3D);
  237.             MovingObjectPosition var3 = this.worldObj.rayTraceBlocks(var1, var2);
  238.             var2 = Vec3.createVectorHelper(this.posX + this.motionX * 1.3D, this.posY + this.motionY * 1.3D, this.posZ + this.motionZ * 1.3D);
  239.  
  240.             if (var3 != null)
  241.             {
  242.                 var2 = Vec3.createVectorHelper(var3.hitVec.xCoord, var3.hitVec.yCoord, var3.hitVec.zCoord);
  243.             }
  244.  
  245.             Entity var4 = null;
  246.             List var5 = null;
  247.  
  248.             if (!active)
  249.             {
  250.                 var5 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ));
  251.             }
  252.  
  253.             double var6 = 0.0D;
  254.             int var8;
  255.             int var9;
  256.             int var11;
  257.  
  258.             for (var8 = 0; var5 != null && var8 < var5.size() && var8 < 5; ++var8)
  259.             {
  260.                 Entity var10 = (Entity)var5.get(var8);
  261.  
  262.                 if (!(var10 instanceof PhantomBlock) && var10.canBeCollidedWith())
  263.                 {
  264.                     var10.motionX = this.motionX / 2.0D;
  265.                     var10.motionY = this.motionY / 2.0D;
  266.                     var10.motionZ = this.motionZ / 2.0D;
  267.                 }
  268.  
  269.                 if (var10.canBeCollidedWith() && !this.noCollision)
  270.                 {
  271.                     if (var10.canBePushed())
  272.                     {
  273.                         var10.getDistanceSqToEntity(this);
  274.  
  275.                         if (this.isBurning())
  276.                         {
  277.                             var10.setFire(15);
  278.                         }
  279.  
  280.                         if (this.tile == 81)
  281.                         {
  282.                             var10.attackEntityFrom(DamageSource.causeThrownDamage(this, this), 1);
  283.                         }
  284.                         else if (this.tile != 88 && this.tile != 70 && this.tile != 72)
  285.                         {
  286.                             if (this.material == Material.lava)
  287.                             {
  288.                                 var10.setFire(15);
  289.                             }
  290.                         }
  291.                         else
  292.                         {
  293.                             var9 = MathHelper.floor_double(this.posX);
  294.                             var11 = MathHelper.floor_double(this.posY);
  295.                             int var12 = MathHelper.floor_double(this.posZ);
  296.                             Block.blocksList[this.tile].onEntityCollidedWithBlock(this.worldObj, var9, var11, var12, var10);
  297.                         }
  298.                     }
  299.  
  300.                     float var16 = 0.3F;
  301.                     AxisAlignedBB var19 = var10.boundingBox.expand((double)var16, (double)var16, (double)var16);
  302.                     MovingObjectPosition var13 = var19.calculateIntercept(var1, var2);
  303.  
  304.                     if (var13 != null)
  305.                     {
  306.                         double var14 = var1.distanceTo(var13.hitVec);
  307.  
  308.                         if (var14 < var6 || var6 == 0.0D)
  309.                         {
  310.                             var4 = var10;
  311.                             var6 = var14;
  312.                         }
  313.                     }
  314.                 }
  315.             }
  316.  
  317.             if (var4 != null)
  318.             {
  319.                 var3 = new MovingObjectPosition(var4);
  320.             }
  321.  
  322.             if (var3 != null && var3.entityHit == null && this.mode == 0)
  323.             {
  324.                 var8 = var3.blockX;
  325.                 int var17 = var3.blockY;
  326.                 var9 = var3.blockZ;
  327.  
  328.                 if (var3.sideHit == 0)
  329.                 {
  330.                     --var17;
  331.                 }
  332.  
  333.                 if (var3.sideHit == 1)
  334.                 {
  335.                     ++var17;
  336.                 }
  337.  
  338.                 if (var3.sideHit == 2)
  339.                 {
  340.                     --var9;
  341.                 }
  342.  
  343.                 if (var3.sideHit == 3)
  344.                 {
  345.                     ++var9;
  346.                 }
  347.  
  348.                 if (var3.sideHit == 4)
  349.                 {
  350.                     --var8;
  351.                 }
  352.  
  353.                 if (var3.sideHit == 5)
  354.                 {
  355.                     ++var8;
  356.                 }
  357.  
  358.                 if (this.type == 0)
  359.                 {
  360.                     if (var3.sideHit != 0 && !this.collideFalling)
  361.                     {
  362.                         if (!this.collideFalling)
  363.                         {
  364.                             this.collideFalling = true;
  365.                             this.posX = (double)((int)(this.posX + 0.0D));
  366.                             this.posZ = (double)((int)(this.posZ + 0.0D));
  367.                             this.setPosition(this.posX, this.posY, this.posZ);
  368.                             this.motionX = 0.0D;
  369.                             this.motionZ = 0.0D;
  370.                         }
  371.                     }
  372.                     else
  373.                     {
  374.                         this.blockify(var8, var17, var9, var3.sideHit);
  375.                     }
  376.  
  377.                     this.lastPosX = this.posX;
  378.                     this.lastPosZ = this.posZ;
  379.                 }
  380.                 else
  381.                 {
  382.                     this.blockify(var8, var17, var9, var3.sideHit);
  383.                 }
  384.  
  385.                 return;
  386.             }
  387.  
  388.             float var18 = 0.93F;
  389.  
  390.             if (this.type == 1)
  391.             {
  392.                 var18 = (float)((double)var18 * 0.92D);
  393.  
  394.                 if (this.mode == 0)
  395.                 {
  396.                     this.motionY -= 0.05000000074505806D;
  397.                 }
  398.             }
  399.             else
  400.             {
  401.                 //this.motionY -= 0.05000000074505806D;
  402.             }
  403.            
  404.             if (!active) {
  405.                 this.motionY -= 0.05000000074505806D;
  406.             }
  407.  
  408.             this.motionX *= (double)var18;
  409.             this.motionY *= (double)var18;
  410.             this.motionZ *= (double)var18;
  411.             var11 = (int)(this.posX + this.motionX * 5.0D);
  412.             byte var20 = 50;
  413.             int var21 = (int)(this.posZ + this.motionZ * 5.0D);
  414.  
  415.             if (!this.worldObj.checkChunksExist(var11, var20, var21, var11, var20, var21))
  416.             {
  417.                 this.setEntityDead();
  418.             }
  419.  
  420.             this.prevPosX = this.posX;
  421.             this.prevPosY = this.posY;
  422.             this.prevPosZ = this.posZ;
  423.  
  424.             if (this.mode == 1)
  425.             {
  426.                 //this.moveEntity(this.motionX, this.motionY, this.motionZ);
  427.                 this.posX += this.motionX;
  428.                 this.posY += this.motionY;
  429.                 this.posZ += this.motionZ;
  430.             }
  431.             else if (this.mode == 0)
  432.             {
  433.                 this.posX += this.motionX;
  434.                 this.posY += this.motionY;
  435.                 this.posZ += this.motionZ;
  436.             }
  437.  
  438.             this.setPosition(this.posX, this.posY, this.posZ);
  439.         }
  440.     }
  441.  
  442.     private void blockify(int var1, int var2, int var3, int var4)
  443.     {
  444.         this.setEntityDead();
  445.        
  446.         var1 = destX;
  447.         var2 = destY;
  448.         var3 = destZ;
  449.        
  450.         //System.out.println("trying place");
  451.        
  452.         if (this.worldObj.setBlockAndMetadataWithNotify(destX, destY, destZ, this.tile, this.metadata)) {
  453.            
  454.         }
  455.  
  456.         /*if (this.tileentity != null || this.type != 0)
  457.         {
  458.             if (!WeatherMod.shouldRemoveBlock(var5) && !WeatherMod.isOceanBlock(var5) && var2 < 255)
  459.             {
  460.                 this.worldObj.setBlockAndMetadataWithNotify(var1, var2 + 1, var3, this.tile, this.metadata);
  461.             }
  462.  
  463.             boolean var6 = false;
  464.  
  465.             if (!WeatherMod.isOceanBlock(var5))
  466.             {
  467.                 if (this.worldObj.setBlockAndMetadataWithNotify(var1, var2, var3, this.tile, this.metadata))
  468.                 {
  469.                     var6 = true;
  470.                 }
  471.             }
  472.             else
  473.             {
  474.                 this.worldObj.setBlockAndMetadataWithNotify(var1, var2, var3, WeatherMod.finiteWaterId, this.metadata);
  475.  
  476.                 if (var2 < 255)
  477.                 {
  478.                     this.worldObj.setBlockAndMetadataWithNotify(var1, var2 + 1, var3, WeatherMod.finiteWaterId, this.metadata);
  479.                 }
  480.             }
  481.  
  482.             if (var6)
  483.             {
  484.                 //Block.blocksList[this.tile].onBlockPlacedBy(this.worldObj, var1, var2, var3, var4, this);
  485.                 if (this.tileentity != null)
  486.                 {
  487.                     this.worldObj.setBlockTileEntity(var1, var2, var3, this.tileentity);
  488.                 }
  489.             }
  490.         }*/
  491.     }
  492.  
  493.     public boolean attackEntityFrom(Entity var1, int var2)
  494.     {
  495.         return false;
  496.     }
  497.  
  498.     protected void writeEntityToNBT(NBTTagCompound var1)
  499.     {
  500.         var1.setByte("Tile", (byte)this.tile);
  501.         var1.setByte("Metadata", (byte)this.metadata);
  502.         NBTTagCompound var2 = new NBTTagCompound();
  503.  
  504.         if (this.tileentity != null)
  505.         {
  506.             this.tileentity.writeToNBT(var2);
  507.         }
  508.  
  509.         var1.setCompoundTag("TileEntity", var2);
  510.     }
  511.  
  512.     protected void readEntityFromNBT(NBTTagCompound var1)
  513.     {
  514.         this.tile = var1.getByte("Tile") & 255;
  515.         this.metadata = var1.getByte("Metadata") & 15;
  516.         this.tileentity = null;
  517.  
  518.         if (Block.blocksList[this.tile] instanceof BlockContainer)
  519.         {
  520.             this.tileentity = ((BlockContainer)Block.blocksList[this.tile]).createNewTileEntity(this.worldObj);
  521.             NBTTagCompound var2 = var1.getCompoundTag("TileEntity");
  522.             this.tileentity.readFromNBT(var2);
  523.         }
  524.     }
  525.  
  526.     public float getShadowSize()
  527.     {
  528.         return 0.0F;
  529.     }
  530.  
  531.     public boolean isInRangeToRenderVec3D(Vec3 asd)
  532.     {
  533.         return true;
  534.     }
  535.  
  536.     public World func_22685_k()
  537.     {
  538.         return this.worldObj;
  539.     }
  540.  
  541.     public void setEntityDead()
  542.     {
  543.         --WeatherMod.blockCount;
  544.  
  545.         if (WeatherMod.blockCount < 0)
  546.         {
  547.             WeatherMod.blockCount = 0;
  548.         }
  549.  
  550.         super.setDead();
  551.     }
  552.  
  553.     @Override
  554.     public void writeSpawnData(ByteArrayDataOutput data)
  555.     {
  556.         data.writeInt(tile);
  557.         data.writeInt(metadata);
  558.     }
  559.  
  560.     @Override
  561.     public void readSpawnData(ByteArrayDataInput data)
  562.     {
  563.         tile = data.readInt();
  564.         metadata = data.readInt();
  565.     }
  566.    
  567.     public void pathfind(Entity targ) {
  568.        
  569.         //path = worldObj.getPathEntityToEntity(this, targ, 30F, false, false, false, false);    
  570.         int what = 0;
  571.     }
  572.    
  573.     public void pathfind(int x, int y, int z) {
  574.         PFQueue.getPath(this, x, y, z, 128);
  575.         waitingForPath = true;
  576.         //path = worldObj.getEntityPathToXYZ(this, x, y, z, 96F, false, false, false, false);
  577.         destX = x;
  578.         destY = y;
  579.         destZ = z;
  580.         //path = worldObj.getPathEntityToEntity(this, targ, 30F, false, false, false, false);
  581.     }
  582.  
  583.     public boolean pathFollow() {
  584.        
  585.         boolean var3 = this.isInWater();
  586.         boolean var4 = this.handleLavaMovement();
  587.         this.rotationPitch = 0.0F;
  588.  
  589.         Vec3 moveTo = null;
  590.        
  591.         if(this.path != null/* && this.rand.nextInt(100) != 0*/) {
  592.            
  593.             /*if (this.getDistance(destX, destY, destZ) < 20F) {
  594.                 path = null;
  595.                 return true;
  596.             }*/
  597.            
  598.             //System.out.println("uhh");
  599.             moveTo = this.path.getPosition(this);
  600.             double var6 = (double)(this.width * 1.2); //override on path track distance
  601.  
  602.             while(moveTo != null && moveTo.squareDistanceTo(this.posX, moveTo.yCoord, this.posZ) < var6 * var6) {
  603.                 this.path.incrementPathIndex();
  604.  
  605.                 if(this.path.isFinished()) {
  606.                     moveTo = null;
  607.                     this.path = null;
  608.                     //System.out.println("path done");
  609.                     //remove pf delay!
  610.                     //this.pathfindDelay = 50;
  611.                 } else {
  612.                     moveTo = this.path.getPosition(this);
  613.                 }
  614.             }
  615.  
  616.             double oldSpeed = 0.2F;//motionX + motionY + motionZ + 0.01D;
  617.  
  618.             //System.out.println(oldSpeed);
  619.             /*if (oldSpeed > 0.3F) {
  620.              return;
  621.             }*/
  622.             if (Math.abs(motionX) > oldSpeed || Math.abs(motionY) > oldSpeed || Math.abs(motionZ) > oldSpeed) {
  623.                 return true;
  624.             }
  625.  
  626.            
  627.         } else if (this.getDistance(destX, destY, destZ) > 1.5F) {
  628.             moveTo = Vec3.createVectorHelper(destX, destY, destZ);
  629.         } else {
  630.             return false;
  631.         }
  632.        
  633.         //this.isJumping = false;
  634.         if(moveTo != null) {
  635.             int var21 = MathHelper.floor_double(this.boundingBox.minY + 0.5D);
  636.             double vecX = moveTo.xCoord - this.posX;//tNode.nextNode.bodyPiece.posX - tNode.bodyPiece.posX;
  637.             double vecY = moveTo.yCoord - (double)var21;//tNode.nextNode.bodyPiece.boundingBox.minY + (double)(tNode.nextNode.bodyPiece.height / 2.0F) - (tNode.bodyPiece.posY + (double)(tNode.bodyPiece.height / 2.0F));
  638.             double vecZ = moveTo.zCoord - this.posZ;//tNode.nextNode.bodyPiece.posZ - tNode.bodyPiece.posZ;
  639.            
  640.             if (path == null) {
  641.                
  642.                 /*float adj = 1000 - this.age;//this.getDistance(moveTo.xCoord, moveTo.yCoord, moveTo.zCoord)
  643.                 if (adj < 0) adj = 0;
  644.                 vecX += (0.03F * adj);
  645.                 vecZ += (0.03F * adj);
  646.                 vecY += (0.03F * adj);*/
  647.             }
  648.            
  649.             double var9 = (double)MathHelper.sqrt_double(vecX * vecX + vecY * vecY + vecZ * vecZ);
  650.             double dist = 6.0F;
  651.             double speed = 0.10D * (dist/6.0F);
  652.             motionX += vecX / var9 * speed;
  653.             motionY += vecY / var9 * speed;
  654.             motionZ += vecZ / var9 * speed;
  655.             /*double var8 = var5.xCoord - this.posX;
  656.             double var10 = var5.zCoord - this.posZ;
  657.             double var12 = var5.yCoord - (double)var21;
  658.             float var14 = (float)(Math.atan2(var10, var8) * 180.0D / 3.1415927410125732D) - 90.0F;
  659.             float var15 = var14 - this.rotationYaw;*/
  660.         }
  661.        
  662.         return true;
  663.     }
  664.  
  665.     public static boolean notMoving(Entity var0, float var1) {
  666.         double var2 = var0.prevPosX - var0.posX;
  667.         double var4 = var0.prevPosZ - var0.posZ;
  668.         float var6 = (float)Math.sqrt(var2 * var2 + var4 * var4);
  669.         return var6 < var1;
  670.     }
  671.  
  672.     @Override
  673.     public void setPathExToEntity(PathEntityEx pathentity) {
  674.         // TODO Auto-generated method stub
  675.         this.path = pathentity;
  676.         waitingForPath = false;
  677.        
  678.     }
  679.  
  680.     @Override
  681.     public void setPathToEntity(PathEntityEx pathentity) {
  682.         // TODO Auto-generated method stub
  683.        
  684.     }
  685.  
  686.     @Override
  687.     public PathEntityEx getPath() {
  688.         // TODO Auto-generated method stub
  689.         return null;
  690.     }
  691.  
  692.     @Override
  693.     public boolean hasPath() {
  694.         // TODO Auto-generated method stub
  695.         return false;
  696.     }
  697.  
  698.     @Override
  699.     public void faceCoord(int x, int y, int z, float f, float f1) {
  700.         // TODO Auto-generated method stub
  701.        
  702.     }
  703.  
  704.     @Override
  705.     public void noMoveTriggerCallback() {
  706.         // TODO Auto-generated method stub
  707.        
  708.     }
  709.  
  710.     @Override
  711.     protected void entityInit() {
  712.         // TODO Auto-generated method stub
  713.        
  714.     }
  715.  
  716.     @Override
  717.     public float getWindWeight() {
  718.         // TODO Auto-generated method stub
  719.         return 9999;
  720.     }
  721. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement