Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uk.co.haxyshideout.chococraft2.entities;
- import net.minecraft.entity.EntityAgeable;
- import net.minecraft.entity.passive.EntityAnimal;
- import net.minecraft.world.World;
- import uk.co.haxyshideout.chococraft2.entities.EntityChocobo.ChocoboColor;
- public class EntityBabyChocobo extends EntityAnimal
- {
- private ChocoboColor color;
- public EntityBabyChocobo(World worldIn, ChocoboColor color)
- {
- super(worldIn);
- this.color = color;
- }
- @Override
- public EntityAgeable createChild(EntityAgeable ageable)
- {
- return null;
- }
- @Override
- protected void entityInit()
- {
- super.entityInit();
- }
- public boolean isTamed()
- {
- return false;
- }
- public boolean isMale()
- {
- return true;
- }
- public ChocoboColor getChocoboColor()
- {
- return this.color;
- }
- @Override
- protected String getDeathSound()
- {
- return "chococraft2:choco_kweh";
- }
- @Override
- protected String getHurtSound()
- {
- return "chococraft2:choco_kweh";
- }
- @Override
- protected String getLivingSound()
- {
- if (rand.nextInt(4) == 0)
- return "chococraft2:choco_kweh";
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement