Uses new panel API method names.

This commit is contained in:
Tastybento 2018-01-27 15:59:13 -08:00
parent ab1385d13e
commit 481b9ea3e5

View File

@ -46,7 +46,6 @@ import bskyblock.addon.level.event.TopTenClick;
import us.tastybento.bskyblock.BSkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.bskyblock.Constants; import us.tastybento.bskyblock.Constants;
import us.tastybento.bskyblock.api.commands.User; import us.tastybento.bskyblock.api.commands.User;
import us.tastybento.bskyblock.api.panels.Panel;
import us.tastybento.bskyblock.api.panels.PanelItem; import us.tastybento.bskyblock.api.panels.PanelItem;
import us.tastybento.bskyblock.api.panels.PanelItem.ClickHandler; import us.tastybento.bskyblock.api.panels.PanelItem.ClickHandler;
import us.tastybento.bskyblock.api.panels.builders.PanelBuilder; import us.tastybento.bskyblock.api.panels.builders.PanelBuilder;
@ -197,10 +196,10 @@ public class TopTen implements Listener {
} }
} }
return new PanelItemBuilder() return new PanelItemBuilder()
.setIcon(playerSkull) .icon(playerSkull)
.setName(name) .name(name)
.setDescription(description) .description(description)
.setClickHandler(new ClickHandler() { .clickHandler(new ClickHandler() {
@Override @Override
public boolean onClick(User user, us.tastybento.bskyblock.api.panels.ClickType click) { public boolean onClick(User user, us.tastybento.bskyblock.api.panels.ClickType click) {