mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-28 16:16:47 +01:00
Progress???
This commit is contained in:
parent
8febe2d0bd
commit
ec1fdea40d
@ -37,22 +37,20 @@ public class NBTManager {
|
|||||||
NBTTagCompound nbtTagCompound = getNBTCopy(itemStack);
|
NBTTagCompound nbtTagCompound = getNBTCopy(itemStack);
|
||||||
|
|
||||||
player.sendMessage("Total NBT Entries: "+nbtTagCompound.getKeys().size());
|
player.sendMessage("Total NBT Entries: "+nbtTagCompound.getKeys().size());
|
||||||
printNBT(nbtTagCompound, player);
|
printNBT(itemStack, player);
|
||||||
player.sendMessage("-- END OF NBT REPORT --");
|
player.sendMessage("-- END OF NBT REPORT --");
|
||||||
|
|
||||||
player.sendMessage("Attempting to add NBT key named - Herp");
|
player.sendMessage("Attempting to add NBT key named - Herp");
|
||||||
addFloatNBT(itemStack, "herp", 13.37F);
|
addFloatNBT(itemStack, "herp", 13.37F);
|
||||||
|
|
||||||
player.sendMessage("(After HERP) Total NBT Entries: "+nbtTagCompound.getKeys().size());
|
player.sendMessage("(After HERP) Total NBT Entries: "+nbtTagCompound.getKeys().size());
|
||||||
printNBT(nbtTagCompound, player);
|
printNBT(itemStack, player);
|
||||||
player.sendMessage("-- END OF NBT REPORT --");
|
player.sendMessage("-- END OF NBT REPORT --");
|
||||||
|
|
||||||
player.sendMessage("Attempting to save NBT data...");
|
player.sendMessage("Attempting to save NBT data...");
|
||||||
player.updateInventory();
|
player.updateInventory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void addNewNBT(ItemStack itemStack) {
|
public void addNewNBT(ItemStack itemStack) {
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -109,11 +107,12 @@ public class NBTManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void printNBT(NBTTagCompound nbtTagCompound, Player player) {
|
public void printNBT(ItemStack itemStack, Player player) {
|
||||||
for(String key : nbtTagCompound.getKeys()) {
|
NBTTagCompound tagCompoundCopy = getNBTCopy(itemStack);
|
||||||
|
for(String key : tagCompoundCopy.getKeys()) {
|
||||||
player.sendMessage("");
|
player.sendMessage("");
|
||||||
player.sendMessage("NBT Key: "+key);
|
player.sendMessage("NBT Key: "+key);
|
||||||
player.sendMessage("NBT Value: " + nbtTagCompound.get(key).asString());
|
player.sendMessage("NBT Value: " + tagCompoundCopy.get(key).asString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user