This file contains 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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package client.state; | |
import com.jme3.app.Application; | |
import com.jme3.app.state.AppStateManager; | |
import com.jme3.material.Material; | |
import com.jme3.math.ColorRGBA; |
This file contains 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
[2 bytes] [1 byte] [3 bytes] | |
lprefix enc uid | |
[1 byte] [1 byte] | |
cmd argcount | |
[2 bytes] [alength] | |
alength arg | |
[2 bytes] [alength] |
This file contains 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
import java.util.Random; | |
import java.util.Arrays; | |
public class LotteryTicket | |
{ | |
/** | |
* There are 6 numbers in each lottery ticket | |
*/ | |
private final int TOTAL_NUMBERS = 6; |
This file contains 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
/** | |
* LotteryDraw.java | |
* | |
* A simple simulation of a lottery. | |
*/ | |
public class LotteryDraw | |
{ | |
public static void main(String[] args) | |
{ |
This file contains 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
NiftyJmeDisplay niftyDisplay = new NiftyJmeDisplay(assetManager, | |
inputManager, | |
audioRenderer, | |
guiViewPort); | |
nifty = niftyDisplay.getNifty(); | |
nifty.registerScreenController(mainMenuState); | |
nifty.registerScreenController(loginState); | |
//nifty.fromXml("Interface/GameGUI.xml", "MainMenu"); |
This file contains 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
diff --git a/src/mygame/Game.java b/src/mygame/Game.java | |
index 44673bf..bdd588d 100644 | |
--- a/src/mygame/Game.java | |
+++ b/src/mygame/Game.java | |
@@ -1,6 +1,5 @@ | |
package mygame; | |
-import mygame.states.MainMenuAppState; | |
import mygame.states.InGameAppState; | |
import com.jme3.app.SimpleApplication; |
This file contains 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
Requesting public encryption key... | |
Waiting for encryption key... | |
Received encryption key | |
Parsing encoded encrytion key... | |
Generating client key... | |
Waiting for login response... | |
Login successful. | |
Character Data: | |
Name: test |
This file contains 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
08:05:16 [SEVERE] Error occurred while enabling Salesmania v0.1a (Is it up to date?) | |
java.lang.NullPointerException | |
at net.invisioncraft.plugins.salesmania.Salesmania.onEnable(Salesmania.java:30) | |
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) | |
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) | |
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) | |
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256) | |
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238) | |
at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:381) | |
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:368) |
This file contains 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 List<String> infoReplace(List<String> infoList) { | |
List<String> newInfoList = new ArrayList<String>(); | |
Iterator<String> infoIterator = infoList.iterator(); | |
while(infoIterator.hasNext()) { | |
String info = infoIterator.next(); | |
if(info == "%enchantinfo%" && itemStack.getEnchantments().isEmpty()) { | |
continue; | |
} | |
info = info.replace("%owner%", owner.getName()); |
OlderNewer