Reformat code, updated imports. We are back in 1.7.10 now!

This commit is contained in:
0xSeb
2015-10-21 19:41:44 +02:00
parent 96ef7ed7a6
commit c059b4c03e
10 changed files with 238 additions and 280 deletions
@@ -5,26 +5,25 @@ import net.minecraft.entity.player.EntityPlayer;
/**
* Client Proxy, extending Common Proxy.
*
* @author skate702
*
* @author skate702
*/
public class CraftingKeysClientProxy extends CraftingKeysProxy {
@Override
public void registerRenderers() {
}
@Override
public void registerRenderers() {
@Override
public void sendSlotClick(PlayerControllerMP controller, int windowId, int slot, int rightClick, int action,
EntityPlayer player) {
}
// TODO: Make this *** multiplayer friendly
@Override
public void sendSlotClick(PlayerControllerMP controller, int windowId, int slot, int rightClick, int action,
EntityPlayer player) {
controller.windowClick(windowId, slot, rightClick, action, player);
// player.openContainer.slotClick(slot, rightClick, action, player);
// TODO: Make this *** multiplayer friendly
}
controller.windowClick(windowId, slot, rightClick, action, player);
// player.openContainer.slotClick(slot, rightClick, action, player);
}
}
@@ -1,45 +1,38 @@
package de.skate702.craftingkeys.proxies;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.multiplayer.PlayerControllerMP;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
* The common proxy.
*
* @author skate702
*
* @author skate702
*/
public class CraftingKeysProxy {
/**
* Register Renderers (not needed here).
*/
public void registerRenderers() {
/**
* Register Renderers (not needed here).
*/
public void registerRenderers() {
}
/**
* The Minecraft call to send a mouse click to a GUI. [Based on INVTW]
*
* @param controller
* The playerController (from Client)
* @param windowId
* The current Windows ID (from GUI)
* @param slot
* The slot to click on (slot index)
* @param rightClick
* 1, if right click. Otherwise 0
* @param action
* 0
* @param player
* The current player (from Client)
*/
@SideOnly(Side.CLIENT)
public void sendSlotClick(PlayerControllerMP controller, int windowId, int slot, int rightClick, int action,
EntityPlayer player) {
}
}
/**
* The Minecraft call to send a mouse click to a GUI. [Based on INVTW]
*
* @param controller The playerController (from Client)
* @param windowId The current Windows ID (from GUI)
* @param slot The slot to click on (slot index)
* @param rightClick 1, if right click. Otherwise 0
* @param action 0
* @param player The current player (from Client)
*/
@SideOnly(Side.CLIENT)
public void sendSlotClick(PlayerControllerMP controller, int windowId, int slot, int rightClick, int action,
EntityPlayer player) {
}
}