Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EntityDataSwordman extends EntityDataGeneric {
- public EntityDataSwordman(World world) {
- super(world);
- Minecraft.getMinecraft().thePlayer.sendChatMessage("Constructing swordman at World#isRemote:" + world.isRemote);
- this.tasks.addTask(0, new EntityAISwimming(this));
- this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityMob.class, 1.0D, false));
- this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
- this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
- this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityMob.class, 8.0F));
- this.tasks.addTask(8, new EntityAILookIdle(this));
- this.setCurrentItemOrArmor(0, new ItemStack(Items.iron_sword));
- this.setCustomNameTag("Data Swordsman");
- this.setAlwaysRenderNameTag(true);
- this.setVelocity(0, 2, 0);
- // this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(5);
- this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(20);
- this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1);
- }
- @Override
- public void applyEntityAttributes() {
- super.applyEntityAttributes();
- }
- @Override
- public void entityInit() {
- super.entityInit();
- }
- @Override
- public void readEntityFromNBT(NBTTagCompound p_70037_1_) {
- // TODO Auto-generated method stub
- super.readEntityFromNBT(p_70037_1_);
- }
- @Override
- public void writeEntityToNBT(NBTTagCompound p_70014_1_) {
- // TODO Auto-generated method stub
- super.writeEntityToNBT(p_70014_1_);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment