@Override
public void onAttached() {
super.onAttached();
Float nextEgg = (float) (GenericMath.getRandom().nextInt(MINIMUM_EGG_BREEDING_TIME) + MINIMUM_EGG_BREEDING_TIME);
getOwner().getData().put(VanillaData.TIME_TILL_EGG, nextEgg);
setEntityProtocol(new CreatureProtocol(CreatureType.CHICKEN));
DeathDrops dropComponent = getOwner().add(DeathDrops.class);
dropComponent.addDrop(new ItemStack(VanillaMaterials.FEATHER, getRandom().nextInt(2)));
dropComponent.addDrop(new ItemStack(VanillaMaterials.RAW_CHICKEN, 1));
dropComponent.addXpDrop((short) (getRandom().nextInt(3) + 1));