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
package com.gmail.mooman219.module.login.store; | |
import com.gmail.mooman219.bull.CDPlayer; | |
import com.gmail.mooman219.frame.MongoHelper; | |
import com.gmail.mooman219.frame.text.TextHelper; | |
import com.gmail.mooman219.handler.database.UploadReason; | |
import com.gmail.mooman219.layout.PlayerData; | |
import com.mongodb.BasicDBObject; | |
import com.mongodb.DBObject; | |
import com.mongodb.util.JSON; |
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 boolean isInventoryOpen() { | |
EntityPlayer handle = getHandle(); | |
return handle.activeContainer != handle.defaultContainer; | |
} | |
public void openInventory(Inventory inventory) { | |
if(isInventoryOpen()) { | |
EntityPlayer handle = getHandle(); | |
CraftPlayer craftPlayer = (CraftPlayer) player; | |
CraftInventory craftInventory = (CraftInventory) inventory; |
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 void a(Packet102WindowClick packet102windowclick) { | |
... | |
// TODO check on updates | |
Container oldContainer = player.activeContainer; // Cow | |
if (packet102windowclick.shift != 5) { | |
if (click == ClickType.NUMBER_KEY) { | |
event = new InventoryClickEvent(inventory, type, packet102windowclick.slot, click, action, packet102windowclick.button); | |
} else { | |
event = new InventoryClickEvent(inventory, type, packet102windowclick.slot, click, action); |
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
[21:16:15] Spout is starting in server-only mode. | |
[21:16:15] Current version is dev b3084 (Implementing SpoutAPI dev b3084). | |
[21:16:15] This software is currently in alpha status so components may | |
[21:16:15] have bugs or not work at all. Please report any issues to | |
[21:16:15] http://issues.spout.org | |
[21:16:17] Binding to address: /0.0.0.0:13756... | |
[21:16:17] Binding to address: /0.0.0.0:25565... | |
[21:16:17] >>> Starting UPnP service... | |
[21:16:17] Using configuration: org.teleal.cling.DefaultUpnpServiceConfiguration | |
[21:16:18] Creating Router: org.teleal.cling.transport.RouterImpl |
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 static <T> Type getCollectionType(Class<T> type) { | |
return new TypeToken<Collection<type>>(){}.getType(); | |
^ | |
| | |
"type cannot be resolved to a type"--+ | |
} |
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
{ | |
"graveyards": [ | |
{ | |
"Location": { | |
"World": "world", | |
"UUID": "8a99c090-18e6-4ec6-8025-5c83f971391b", | |
"Yaw": -180.39882, | |
"Pitch": 8.550148, | |
"Pos": "6.465151276613891,4.1,518.7364480790196" | |
}, |
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
C:\Users\mooman\Downloads>java -Djava.library.path="C:/Program Files/Java/jdk1.7.0_17/bin" -cp "C:/Program Files/Java/jdk1.7.0_17/lib/tools.jar";warmroast.jar com.sk89q.warmroast.WarmRoast --thread "Server thread" | |
------------------------------------------------------------------------ | |
WarmRoast | |
http://github.com/sk89q/warmroast | |
------------------------------------------------------------------------ | |
java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.WindowsAttachProvider could not be instantiated: java.lang.UnsatisfiedLinkError: no attach in java.library.path | |
Choose a VM: |
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
texture-pack=https\://dl.dropboxusercontent.com/u/15777509/CRPGv7-16x.zip | |
resourcepack=https\://dl.dropboxusercontent.com/u/15777509/CRPGv7-16x.zip | |
resource-pack=https\://dl.dropboxusercontent.com/u/15777509/CRPGv7-16x.zip |
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 static Vector calculateLookVector(Location location, Location target) { | |
return location.toVector().clone().subtract(target.toVector()).normalize(); | |
} |
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
From 62861df12ac9541372d0b796daee501ca8ca5ca6 Mon Sep 17 00:00:00 2001 | |
From: Joe <mooman219@gmail.com> | |
Date: Sun, 7 Jul 2013 06:45:56 -0400 | |
Subject: [PATCH] Fix changing inventory in InventoryClickEvent | |
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java | |
index 2617b6e..2bacc12 100644 | |
--- a/src/main/java/net/minecraft/server/PlayerConnection.java | |
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java |