Start work on the Sponge schematic format. This should work but it may not, it's untested.

This commit is contained in:
Matthew Miller
2018-08-02 14:15:49 +10:00
parent a4b9ceaeb2
commit a75d9e896b
8 changed files with 499 additions and 78 deletions

View File

@ -23,7 +23,6 @@ import com.sk89q.worldedit.registry.NamespacedRegistry;
import com.sk89q.worldedit.world.block.BlockType;
import com.sk89q.worldedit.world.block.BlockTypes;
import com.sk89q.worldedit.world.registry.BundledItemData;
import com.sk89q.worldedit.world.registry.LegacyMapper;
import javax.annotation.Nullable;
@ -79,23 +78,6 @@ public class ItemType {
return BlockTypes.get(this.id);
}
/**
* Gets the legacy ID. Needed for legacy reasons.
*
* DO NOT USE THIS.
*
* @return legacy id or 0, if unknown
*/
@Deprecated
public int getLegacyId() {
int ids[] = LegacyMapper.getInstance().getLegacyFromItem(this);
if (ids != null) {
return ids[0];
} else {
return 0;
}
}
@Override
public int hashCode() {
return this.id.hashCode();