Skip to content

Commit

Permalink
chore(forge16): update to new API class names
Browse files Browse the repository at this point in the history
  • Loading branch information
danorris709 committed Aug 25, 2022
1 parent 74b39d1 commit b23c490
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.envyful.api.config.data.ConfigPath;
import com.envyful.api.config.type.ConfigInterface;
import com.envyful.api.config.type.ConfigItem;
import com.envyful.api.config.type.PositionableConfigItem;
import com.envyful.api.config.type.ExtendedConfigItem;
import com.envyful.api.config.yaml.AbstractYamlConfig;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
Expand Down Expand Up @@ -48,15 +48,15 @@ public static class MainUI {
))
);

private PositionableConfigItem percentageItem = new PositionableConfigItem(
private ExtendedConfigItem percentageItem = new ExtendedConfigItem(
"pixelmon:poke_ball",
1, (byte) 0, "&eCurrent PokeDex Percentage",
Lists.newArrayList("&eComplete: &a%percentage%"),
1, 1,
ImmutableMap.of("tooltip", new ConfigItem.NBTValue("string", ""))
);

private PositionableConfigItem missingItem = new PositionableConfigItem(
private ExtendedConfigItem missingItem = new ExtendedConfigItem(
"pixelmon:pokeradar",
1, (byte) 0, "&eMissing Pokemon",
Lists.newArrayList(""),
Expand All @@ -65,15 +65,15 @@ public static class MainUI {
""))
);

private PositionableConfigItem ranksItem = new PositionableConfigItem(
private ExtendedConfigItem ranksItem = new ExtendedConfigItem(
"pixelmon:master_ball",
1, (byte) 0, "&ePokeDex Ranks",
Lists.newArrayList(""),
3, 1,
Collections.emptyMap()
);

private PositionableConfigItem infoItem = new PositionableConfigItem(
private ExtendedConfigItem infoItem = new ExtendedConfigItem(
Items.PAPER.getRegistryName().toString(),
1, (byte) 0, "Info",
Lists.newArrayList(""),
Expand All @@ -87,19 +87,19 @@ public ConfigInterface getGuiSettings() {
return this.guiSettings;
}

public PositionableConfigItem getPercentageItem() {
public ExtendedConfigItem getPercentageItem() {
return this.percentageItem;
}

public PositionableConfigItem getMissingItem() {
public ExtendedConfigItem getMissingItem() {
return this.missingItem;
}

public PositionableConfigItem getRanksItem() {
public ExtendedConfigItem getRanksItem() {
return this.ranksItem;
}

public PositionableConfigItem getInfoItem() {
public ExtendedConfigItem getInfoItem() {
return this.infoItem;
}
}
Expand All @@ -121,21 +121,21 @@ public static class MissingPokemonUI {
27, 28, 29, 30, 31, 32, 33, 34, 35
);

private PositionableConfigItem backButton = new PositionableConfigItem(
private ExtendedConfigItem backButton = new ExtendedConfigItem(
"pixelmon:eject_button",
1, (byte) 0, "&eBack",
Lists.newArrayList(),
4, 5, Collections.emptyMap()
);

private PositionableConfigItem previousPageButton = new PositionableConfigItem(
private ExtendedConfigItem previousPageButton = new ExtendedConfigItem(
PixelmonItems.trade_holder_left.getRegistryName().toString(),
1, (byte) 0, "&ePrevious Page",
Lists.newArrayList(),
0, 5, Collections.emptyMap()
);

private PositionableConfigItem nextPageButton = new PositionableConfigItem(
private ExtendedConfigItem nextPageButton = new ExtendedConfigItem(
PixelmonItems.trade_holder_left.getRegistryName().toString(),
1, (byte) 0, "&eNext Page",
Lists.newArrayList(),
Expand Down Expand Up @@ -171,15 +171,15 @@ public List<Integer> getMissingPokemonPositions() {
return this.missingPokemonPositions;
}

public PositionableConfigItem getBackButton() {
public ExtendedConfigItem getBackButton() {
return this.backButton;
}

public PositionableConfigItem getPreviousPageButton() {
public ExtendedConfigItem getPreviousPageButton() {
return this.previousPageButton;
}

public PositionableConfigItem getNextPageButton() {
public ExtendedConfigItem getNextPageButton() {
return this.nextPageButton;
}

Expand All @@ -197,7 +197,7 @@ public static class RanksUI {
))
);

private PositionableConfigItem backButton = new PositionableConfigItem(
private ExtendedConfigItem backButton = new ExtendedConfigItem(
"pixelmon:eject_button",
1, (byte) 0, "&eBack",
Lists.newArrayList(),
Expand All @@ -210,7 +210,7 @@ public ConfigInterface getGuiSettings() {
return this.guiSettings;
}

public PositionableConfigItem getBackButton() {
public ExtendedConfigItem getBackButton() {
return this.backButton;
}
}
Expand Down

0 comments on commit b23c490

Please sign in to comment.