refactor: shorter name
This commit is contained in:
parent
769fb97500
commit
29afcdc276
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ import xyz.ineanto.nicko.gui.items.common.GoBackItem;
|
|||
import xyz.ineanto.nicko.gui.items.common.ScrollDownItem;
|
||||
import xyz.ineanto.nicko.gui.items.common.ScrollUpItem;
|
||||
import xyz.ineanto.nicko.gui.items.favorites.FavoriteAddItem;
|
||||
import xyz.ineanto.nicko.gui.items.favorites.FavoriteAppearanceEntryItem;
|
||||
import xyz.ineanto.nicko.gui.items.favorites.FavoriteAppearanceItem;
|
||||
import xyz.ineanto.nicko.language.LanguageKey;
|
||||
import xyz.ineanto.nicko.language.PlayerLanguage;
|
||||
import xyz.ineanto.nicko.profile.NickoProfile;
|
||||
|
@ -45,7 +45,7 @@ public class FavoritesGUI {
|
|||
items = Collections.emptyList();
|
||||
} else {
|
||||
items = favorites.stream()
|
||||
.map((appearance) -> new FavoriteAppearanceEntryItem(playerLanguage, appearance))
|
||||
.map((appearance) -> new FavoriteAppearanceItem(playerLanguage, appearance))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
|
|
@ -22,13 +22,13 @@ import xyz.xenondevs.invui.item.impl.SuppliedItem;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
public class FavoriteAppearanceEntryItem extends AsyncItem {
|
||||
public class FavoriteAppearanceItem extends AsyncItem {
|
||||
private final PlayerDataStore dataStore = Nicko.getInstance().getDataStore();
|
||||
|
||||
private final PlayerLanguage playerLanguage;
|
||||
private final Appearance appearance;
|
||||
|
||||
public FavoriteAppearanceEntryItem(PlayerLanguage playerLanguage, Appearance appearance) {
|
||||
public FavoriteAppearanceItem(PlayerLanguage playerLanguage, Appearance appearance) {
|
||||
super(new SuppliedItem(() -> {
|
||||
final ItemBuilder builder = new ItemBuilder(Material.PAINTING);
|
||||
return playerLanguage.translateItem(builder, LanguageKey.GUI.LOADING);
|
Loading…
Add table
Add a link
Reference in a new issue