Advertisement
Guest User

Untitled

a guest
Oct 14th, 2015
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.12 KB | None | 0 0
  1. package uk.co.haxyshideout.chococraft2.entities;
  2.  
  3. import net.minecraft.entity.EntityAgeable;
  4. import net.minecraft.entity.passive.EntityAnimal;
  5. import net.minecraft.world.World;
  6. import uk.co.haxyshideout.chococraft2.entities.EntityChocobo.ChocoboColor;
  7.  
  8. public class EntityBabyChocobo extends EntityAnimal
  9. {
  10.     private ChocoboColor color;
  11.  
  12.     public EntityBabyChocobo(World worldIn, ChocoboColor color)
  13.     {
  14.         super(worldIn);
  15.  
  16.         this.color = color;
  17.     }
  18.  
  19.     @Override
  20.     public EntityAgeable createChild(EntityAgeable ageable)
  21.     {
  22.         return null;
  23.     }
  24.  
  25.     @Override
  26.     protected void entityInit()
  27.     {
  28.         super.entityInit();
  29.     }
  30.    
  31.     public boolean isTamed()
  32.     {
  33.         return false;
  34.     }
  35.  
  36.     public boolean isMale()
  37.     {
  38.         return true;
  39.     }
  40.  
  41.     public ChocoboColor getChocoboColor()
  42.     {
  43.         return this.color;
  44.     }
  45.  
  46.     @Override
  47.     protected String getDeathSound()
  48.     {
  49.         return "chococraft2:choco_kweh";
  50.     }
  51.  
  52.     @Override
  53.     protected String getHurtSound()
  54.     {
  55.         return "chococraft2:choco_kweh";
  56.     }
  57.  
  58.     @Override
  59.     protected String getLivingSound()
  60.     {
  61.         if (rand.nextInt(4) == 0)
  62.             return "chococraft2:choco_kweh";
  63.  
  64.         return null;
  65.     }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement