Created
January 25, 2011 02:03
-
-
Save N3X15/794390 to your computer and use it in GitHub Desktop.
Snowfall mod for modloader (lolbroken)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Public domain. | |
*/ | |
package net.minecraft.src; | |
import net.minecraft.client.Minecraft; | |
import org.lwjgl.input.Keyboard; | |
/** | |
* Most of SnowMod is in World, Chunk, and EntityRenderer. This is merely for | |
* the GUI to avoid clashing with every other mod. | |
* | |
* @author Rob | |
* | |
*/ | |
public class mod_SnowMod extends BaseMod { | |
public mod_SnowMod() { | |
} | |
@Override | |
public void OSDHook(Minecraft minecraft, boolean isOpen) { | |
if (Keyboard.isKeyDown(Keyboard.KEY_F6) | |
&& !isOpen) { | |
minecraft.displayGuiScreen(new GuiTempOffsetMenu()); | |
} | |
} | |
@Override | |
public String Version() { | |
return "1.2_02"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment