Skip to content

Instantly share code, notes, and snippets.

@grum
Created October 19, 2012 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grum/3918312 to your computer and use it in GitHub Desktop.
Save grum/3918312 to your computer and use it in GitHub Desktop.
// Meh first version is saner
interface Location extends Position, BlockLocation {
}
interface BlockLocation extends BlockPosition, Locatable {
}
interface Locatable {
World getWorld();
}
interface Position extends BlockPosition {
double getX();
double getY();
double getZ();
}
interface BlockPosition {
int getBlockX();
int getBlockY();
int getBlockZ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment