@Override public TagCompound writeExtendedInfo() { TagCompound info = super.writeExtendedInfo(); info.getCompoundData().put("Variant", new TagByte(variant.getId())); info.getCompoundData().put("Baby", new TagByte(isBaby())); return info; }
public void setVariant(RabbitType variant) { this.variant = variant; if (status == PetState.Here) { ((EntityMyRabbit) getCraftPet().getHandle()).setVariant(variant.getId()); } }