OSDN Git Service

yykimoto/sanboru/yakinikutation.java追加
authoryykimoto <y_kimoto_live@yahoo.co.jp>
Sat, 23 Feb 2013 06:04:26 +0000 (15:04 +0900)
committeryykimoto <y_kimoto_live@yahoo.co.jp>
Sat, 23 Feb 2013 06:04:26 +0000 (15:04 +0900)
Signed-off-by: yykimoto <y_kimoto_live@yahoo.co.jp>
common/yykimoto/sanboru/yakinikutation.java [new file with mode: 0644]

diff --git a/common/yykimoto/sanboru/yakinikutation.java b/common/yykimoto/sanboru/yakinikutation.java
new file mode 100644 (file)
index 0000000..4334765
--- /dev/null
@@ -0,0 +1,16 @@
+package yykimoto.sanboru;
+
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.client.Minecraft;
+
+public class yakinikutation {
+ @SideOnly(value = Side.CLIENT)
+ public static boolean sanboru() {
+  if (Minecraft.getMinecraft().session.username.equals("sanboru")) {
+   throw new RuntimeException("You are a criminal!");
+  } else {
+   return true;
+  }
+ }
+}
\ No newline at end of file