The output I am trying to access in bold.
Key: PropertyInteger{name=age, clazz=class java.lang.Integer, values=[0, 1, 2, 3, 4, 5, 6, 7]}, Value: 4
I need to access the PropertyInteger values
The code that give me the above output is
private List blockInfo() {
ArrayList arraylist = Lists.newArrayList();
arraylist.add("");
BlockPos pos = this.mc.objectMouseOver.getBlockPos();
IBlockState state = this.mc.theWorld.getBlockState(pos);
Iterator entries = state.getProperties().entrySet().iterator();
while(entries.hasNext()) {
Entry entry = (Entry) entries.next();
Object key = entry.getKey();
Object value = entry.getValue();
System.out.println("Key: " + key + ", Value: " + value);
}
return arraylist;
}
How do I go about accessing the data held in the key?
Thanks.