Files
Botania/MODSRC/vazkii/botania/common/entity/EntityDoppleganger.java
T

36 lines
1.3 KiB
Java

/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
*
* File Created @ [Jul 12, 2014, 3:47:45 PM (GMT)]
*/
package vazkii.botania.common.entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.boss.IBossDisplayData;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeModContainer;
public class EntityDoppleganger extends EntityLiving implements IBossDisplayData {
public EntityDoppleganger(World par1World) {
super(par1World);
setSize(0.6F, 1.8F);
}
@Override
protected void applyEntityAttributes() {
super.applyEntityAttributes();
getAttributeMap().registerAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(8.0D);
getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.4);
getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(250.0);
getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(1.0);
}
}