mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 00:22:19 +00:00
Large Auction Cleanup + Auction Events
- Auction Enums - Better Notification Handling - Auction Cancelation Events - Lang Key Cleanup
This commit is contained in:
1 parent
0512588a7a
commit
4510b3bbd1
31 files changed
+889
-578
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package noppes.npcs.constants;
|
||||
|
||||
import noppes.npcs.constants.EnumGuiType;
|
||||
|
||||
/**
|
||||
* Enum for auction GUI page navigation.
|
||||
* Maps page indices to GUI types for packet-based navigation.
|
||||
*/
|
||||
public enum EnumAuctionPage {
|
||||
LISTINGS(EnumGuiType.PlayerAuction),
|
||||
SELL(EnumGuiType.PlayerAuctionSell),
|
||||
TRADES(EnumGuiType.PlayerAuctionTrades);
|
||||
|
||||
private final EnumGuiType guiType;
|
||||
|
||||
EnumAuctionPage(EnumGuiType guiType) {
|
||||
this.guiType = guiType;
|
||||
}
|
||||
|
||||
public EnumGuiType getGuiType() {
|
||||
return guiType;
|
||||
}
|
||||
|
||||
public static EnumAuctionPage fromOrdinal(int ordinal) {
|
||||
if (ordinal >= 0 && ordinal < values().length) {
|
||||
return values()[ordinal];
|
||||
}
|
||||
return LISTINGS;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user