/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import java.io.FileInputStream; /** * * @author jkerr88 * * You need the code from here: * * http://www.minecraftwiki.net/wiki/NBT_class * * saved as Tag.java in the same folder as this one. This file should be saved as ReportPlayerLocation.java * */ static ReportPlayerLocation iThis; iThis = new ReportPlayerLocation(); t.start(); } // main public void run() { String sWorldFolder = "C:\\Documents and Settings\\Jeff\\Application Data\\.minecraft\\saves\\World1"; try{ reportPlayerPositionFromTag(datFileTag); return; } } private void reportPlayerPositionFromTag(Tag p_tag){ Tag.Type type = p_tag.getType(); if (type == Tag.Type.TAG_End) return; if (type == Tag.Type.TAG_Byte_Array) { } else if (type == Tag.Type.TAG_List) { Tag[] subtags = (Tag[]) p_tag.getValue(); for (Tag st : subtags) { reportPlayerPositionFromTag(st); } if(sName.equals("Pos")){ } } else if (type == Tag.Type.TAG_Compound) { Tag[] subtags = (Tag[]) p_tag.getValue(); for (Tag st : subtags) { reportPlayerPositionFromTag(st); } } else { } } }