Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ChaoticSoul.MoreArmor.entity;
- import com.ChaoticSoul.MoreArmor.util.handler.SoundsHandler;
- import net.minecraft.entity.EntityLiving;
- import net.minecraft.entity.SharedMonsterAttributes;
- import net.minecraft.entity.monster.EntitySkeleton;
- import net.minecraft.init.Items;
- import net.minecraft.inventory.EntityEquipmentSlot;
- import net.minecraft.item.ItemStack;
- import net.minecraft.util.DamageSource;
- import net.minecraft.util.SoundEvent;
- import net.minecraft.world.DifficultyInstance;
- import net.minecraft.world.World;
- public class EntityCentaur2 extends EntitySkeleton
- {
- public EntityCentaur2(World worldIn) {
- super(worldIn);
- }
- @Override
- protected SoundEvent getAmbientSound() {
- return SoundsHandler.ENTITY_CENTAUR2_AMBIENT;
- }
- @Override
- protected SoundEvent getHurtSound(DamageSource damageSourceIn) {
- return SoundsHandler.ENTITY_CENTAUR2_HURT;
- }
- @Override
- protected SoundEvent getDeathSound() {
- return SoundsHandler.ENTITY_CENTAUR2_DEATH;
- }
- @Override
- protected void applyEntityAttributes()
- {
- super.applyEntityAttributes();
- this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(30.0);
- this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.35D);
- this.getEntityAttribute(SharedMonsterAttributes.ARMOR).setBaseValue(3.0D);
- }
- }
Add Comment
Please, Sign In to add comment