Further modernise and remove legacy item classes

This commit is contained in:
Matthew Miller
2018-06-17 17:50:04 +10:00
parent c43109bde5
commit e2608bc0c9
35 changed files with 392 additions and 1045 deletions

View File

@ -20,18 +20,19 @@
package com.sk89q.worldedit.command.tool;
import com.sk89q.worldedit.WorldEditException;
import com.sk89q.worldedit.blocks.type.ItemType;
public class InvalidToolBindException extends WorldEditException {
private int itemId;
private ItemType item;
public InvalidToolBindException(int itemId, String msg) {
public InvalidToolBindException(ItemType item, String msg) {
super(msg);
this.itemId = itemId;
this.item = item;
}
public int getItemId() {
return itemId;
public ItemType getItemType() {
return this.item;
}
}