mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 03:56:41 +00:00
Further modernise and remove legacy item classes
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user