Guest User

EntityKirito

a guest
Feb 19th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package fr.lavapower.animemod.entities;
  2.  
  3. import net.minecraft.entity.EntityCreature;
  4. import net.minecraft.entity.ai.EntityAISwimming;
  5. import net.minecraft.entity.ai.EntityAIWander;
  6. import net.minecraft.entity.ai.EntityAIWatchClosest;
  7. import net.minecraft.entity.passive.IAnimals;
  8. import net.minecraft.entity.player.EntityPlayer;
  9. import net.minecraft.world.World;
  10.  
  11. public class EntityKirito extends EntityCreature implements IAnimals
  12. {
  13.  
  14. public EntityKirito(World worldIn)
  15. {
  16. super(worldIn);
  17. }
  18.  
  19. @Override
  20. protected void initEntityAI()
  21. {
  22. this.tasks.addTask(0, new EntityAISwimming(this));
  23. this.tasks.addTask(2, new EntityAIWander(this, 0.5D));
  24. this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 5.0F));
  25. }
  26.  
  27. @Override
  28. public boolean isAIDisabled()
  29. {
  30. return false;
  31. }
  32.  
  33. }
Add Comment
Please, Sign In to add comment