Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*You're gonna need a package declaration up here by the way*/
- public class IntegerContainer {
- int blockID = 0;
- int metadata = 0;
- //The best that can be done is resetting them to 0 since integers cannot hold 'null'
- public static void reset()
- {
- blockID = 0;
- metadata = 0;
- }
- public static int getStoredBlockID()
- {
- return blockID;
- }
- public static int getStoredMetadata()
- {
- return metadata;
- }
- public static void setBlockID(int ID)
- {
- blockID = ID;
- }
- public static void setMetadata(int meta)
- {
- metadata = meta;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement