use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class MyFox method writeExtendedInfo.
@Override
public TagCompound writeExtendedInfo() {
TagCompound info = super.writeExtendedInfo();
info.getCompoundData().put("FoxType", new TagInt(getType().ordinal()));
info.getCompoundData().put("Baby", new TagByte(isBaby()));
if (getEquipment(EquipmentSlot.MainHand) != null && getEquipment(EquipmentSlot.MainHand).getType() != Material.AIR) {
TagCompound item = MyPetApi.getPlatformHelper().itemStackToCompund(getEquipment(EquipmentSlot.MainHand));
info.getCompoundData().put("MouthItem", item);
}
return info;
}
use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class MyHoglin method writeExtendedInfo.
@Override
public TagCompound writeExtendedInfo() {
TagCompound info = super.writeExtendedInfo();
info.getCompoundData().put("Baby", new TagByte(isBaby()));
return info;
}
use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class MyCat method writeExtendedInfo.
@Override
public TagCompound writeExtendedInfo() {
TagCompound info = super.writeExtendedInfo();
info.getCompoundData().put("CatType", new TagInt(getCatType().ordinal()));
info.getCompoundData().put("CollarColor", new TagByte(getCollarColor().ordinal()));
info.getCompoundData().put("Tamed", new TagByte(isTamed()));
info.getCompoundData().put("Baby", new TagByte(isBaby()));
return info;
}
use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class MyBlaze method writeExtendedInfo.
@Override
public TagCompound writeExtendedInfo() {
TagCompound info = super.writeExtendedInfo();
info.getCompoundData().put("Fire", new TagByte(isOnFire()));
return info;
}
use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class MyDonkey method writeExtendedInfo.
@Override
public TagCompound writeExtendedInfo() {
TagCompound info = super.writeExtendedInfo();
info.getCompoundData().put("Baby", new TagByte(isBaby()));
if (hasChest()) {
info.getCompoundData().put("Chest", MyPetApi.getPlatformHelper().itemStackToCompund(getChest()));
}
if (hasSaddle()) {
info.getCompoundData().put("Saddle", MyPetApi.getPlatformHelper().itemStackToCompund(getSaddle()));
}
return info;
}
Aggregations