use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class EntityConverterService method convertSheep.
public void convertSheep(Sheep sheep, TagCompound properties) {
properties.getCompoundData().put("Color", new TagInt(sheep.getColor().getDyeData()));
properties.getCompoundData().put("Sheared", new TagByte(sheep.isSheared()));
}
use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class CustomInventory method save.
public TagCompound save(TagCompound compound) {
List<TagCompound> itemList = new ArrayList<>();
for (int i = 0; i < this.items.size(); i++) {
ItemStack itemStack = this.items.get(i);
if (itemStack != null) {
TagCompound item = ItemStackNBTConverter.itemStackToCompund(itemStack);
item.getCompoundData().put("Slot", new TagByte((byte) i));
itemList.add(item);
}
}
compound.getCompoundData().put("Items", new TagList(itemList));
return compound;
}
use of de.keyle.knbt.TagByte in project MyPet by xXKeyleXx.
the class MyChicken 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 MyCow 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 MyCreeper method writeExtendedInfo.
@Override
public TagCompound writeExtendedInfo() {
TagCompound info = super.writeExtendedInfo();
info.getCompoundData().put("Powered", new TagByte(isPowered()));
return info;
}
Aggregations