can you explain more on what your trying to do?
|
What would go inside the switch to get it to work?
Code:public static enum ThingTypes { REGULAR, BLAH, EXAMPLE, NAME }I tried this, but it didn't work...Code:public static void getThingType(Player player) { switch (inside here) { case REGULAR: player.sm("Loltest"); } }
'cause I'm dumb.Code:public static void getThingType(Player player) { switch (ThingTypes) { case REGULAR: player.sm("Loltest"); } }
Any help please?
can you explain more on what your trying to do?
Thanks, no errors, but I want to make sure I'm doing this part correctly.
Code:public static ThingTypes start(Player player, Item item) { switch (item.getId()) { case 1: //item id doesn't really matter yet. player.sm("Test"); return ThingTypes.REGULAR; } getThingType(player); return types; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |