Skip to content

Commit

Permalink
Merge pull request Sefiraat#184 from balugaq/master
Browse files Browse the repository at this point in the history
deprecated
  • Loading branch information
balugaq authored Nov 21, 2024
2 parents ae3af49 + 44ec955 commit 14fe83c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.ytdd9527.networksexpansion</groupId>
<artifactId>NetworksExpansion</artifactId>
<version>2.1-Alpha-9</version>
<version>2.1-Alpha-10</version>

<distributionManagement>
<repository>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/balugaq/netex/api/guide/CheatGuideImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
import java.util.Optional;
import java.util.logging.Level;

@Deprecated(
since = "2.1-Alpha-10"
)
@SuppressWarnings("deprecation")
public class CheatGuideImpl extends CheatSheetSlimefunGuide implements SlimefunGuideImplementation {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
import java.util.Optional;
import java.util.logging.Level;

@Deprecated(
since = "2.1-Alpha-10"
)
@SuppressWarnings("deprecation")
public class SurvivalGuideImpl extends SurvivalSlimefunGuide implements SlimefunGuideImplementation {

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/balugaq/netex/utils/GuideUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
*/
@UtilityClass
public class GuideUtil {
@Deprecated(
since = "2.1-Alpha-10"
)
private static final SurvivalGuideImpl survivalGuide = new SurvivalGuideImpl();
@Deprecated(
since = "2.1-Alpha-10"
)
private static final CheatGuideImpl cheatGuide = new CheatGuideImpl();

@ParametersAreNonnullByDefault
Expand All @@ -36,6 +42,7 @@ public static void openMainMenu(Player player, PlayerProfile profile, SlimefunGu
getGuide(player, mode).openMainMenu(profile, selectedPage);
}

@Deprecated
public static SlimefunGuideImplementation getGuide(Player player, SlimefunGuideMode mode) {
if (mode == SlimefunGuideMode.SURVIVAL_MODE) {
return survivalGuide;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
import java.util.Objects;
import java.util.Optional;

@Deprecated(
since = "2.1-Alpha-10"
)
public class NetworksGuideListener implements Listener {
@EventHandler
public void onInteract(PlayerRightClickEvent e) {
Expand Down

0 comments on commit 14fe83c

Please sign in to comment.