Skip to content

Instantly share code, notes, and snippets.

@Jezza
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save Jezza/a5a094cbb697ddf47ca9 to your computer and use it in GitHub Desktop.

Select an option

Save Jezza/a5a094cbb697ddf47ca9 to your computer and use it in GitHub Desktop.
public class IncrementExample {
private static final int startingNumber = 64;
private static int currentNumber = startingNumber;
public static final int CONSTANT = getNextNumber();
private static int getNextNumber() {
return currentNumber++;
}
}
public class RandomItem extends Blah {
public void onRightClick(Blah blah){
player.openGui(IncrementExample.CONSTANT);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment