Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.lavapower.animemod.entities;
- import net.minecraft.entity.EntityCreature;
- import net.minecraft.entity.ai.EntityAISwimming;
- import net.minecraft.entity.ai.EntityAIWander;
- import net.minecraft.entity.ai.EntityAIWatchClosest;
- import net.minecraft.entity.passive.IAnimals;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.world.World;
- public class EntityKirito extends EntityCreature implements IAnimals
- {
- public EntityKirito(World worldIn)
- {
- super(worldIn);
- }
- @Override
- protected void initEntityAI()
- {
- this.tasks.addTask(0, new EntityAISwimming(this));
- this.tasks.addTask(2, new EntityAIWander(this, 0.5D));
- this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 5.0F));
- }
- @Override
- public boolean isAIDisabled()
- {
- return false;
- }
- }
Add Comment
Please, Sign In to add comment