Guest User

EntityCentaur2.java

a guest
Jun 30th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. package com.ChaoticSoul.MoreArmor.entity;
  2.  
  3. import com.ChaoticSoul.MoreArmor.util.handler.SoundsHandler;
  4.  
  5. import net.minecraft.entity.EntityLiving;
  6. import net.minecraft.entity.SharedMonsterAttributes;
  7. import net.minecraft.entity.monster.EntitySkeleton;
  8. import net.minecraft.init.Items;
  9. import net.minecraft.inventory.EntityEquipmentSlot;
  10. import net.minecraft.item.ItemStack;
  11. import net.minecraft.util.DamageSource;
  12. import net.minecraft.util.SoundEvent;
  13. import net.minecraft.world.DifficultyInstance;
  14. import net.minecraft.world.World;
  15.  
  16. public class EntityCentaur2 extends EntitySkeleton
  17. {
  18.  
  19. public EntityCentaur2(World worldIn) {
  20. super(worldIn);
  21.  
  22. }
  23. @Override
  24. protected SoundEvent getAmbientSound() {
  25. return SoundsHandler.ENTITY_CENTAUR2_AMBIENT;
  26. }
  27.  
  28. @Override
  29. protected SoundEvent getHurtSound(DamageSource damageSourceIn) {
  30. return SoundsHandler.ENTITY_CENTAUR2_HURT;
  31. }
  32.  
  33. @Override
  34. protected SoundEvent getDeathSound() {
  35. return SoundsHandler.ENTITY_CENTAUR2_DEATH;
  36. }
  37.  
  38.  
  39. @Override
  40. protected void applyEntityAttributes()
  41. {
  42. super.applyEntityAttributes();
  43. this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(30.0);
  44. this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.35D);
  45. this.getEntityAttribute(SharedMonsterAttributes.ARMOR).setBaseValue(3.0D);
  46. }
  47.  
  48.  
  49.  
  50.  
  51.  
  52. }
Add Comment
Please, Sign In to add comment