mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 04:09:57 +00:00
Get Integer Float Map
This commit is contained in:
1 parent
427d86a5e2
commit
7ad15be1d8
1 file changed
+11
@@ -70,6 +70,17 @@ public class NBTTags {
|
||||
return list;
|
||||
}
|
||||
|
||||
public static HashMap<Integer, Float> getIntegerFloatMap(
|
||||
NBTTagList tagList) {
|
||||
HashMap<Integer, Float> list = new HashMap<Integer, Float>();
|
||||
for(int i = 0; i < tagList.tagCount(); i++)
|
||||
{
|
||||
NBTTagCompound nbttagcompound = tagList.getCompoundTagAt(i);
|
||||
list.put(nbttagcompound.getInteger("Slot"), nbttagcompound.getFloat("Float"));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public static HashMap<Integer, Double> getIntegerDoubleMap(
|
||||
NBTTagList tagList) {
|
||||
HashMap<Integer, Double> list = new HashMap<Integer, Double>();
|
||||
|
||||
Reference in new issue
Block a user