public class CommonProxy
extends java.lang.Object
| Constructor and Description |
|---|
CommonProxy() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.entity.player.EntityPlayer |
getClientPlayer() |
static net.minecraft.item.ItemStack |
getCurrBackpack(net.minecraft.entity.player.EntityPlayer player)
Returns the backpack stored with the player as the current backpack
|
net.minecraft.item.ItemStack |
getEquippedBackpack(net.minecraft.entity.player.EntityPlayer player)
Gets the backpack stored with the player as the equipped backpack.
|
void |
initKeybindings() |
static void |
loadBackpackOnDeath(net.minecraft.entity.player.EntityPlayer player)
Loads the backpack(s) that need to be 'respawned' in.
|
void |
registerRenders() |
void |
saveBackpackOnDeath(net.minecraft.entity.player.EntityPlayer player)
Saves the backpack to the player so that it isn't lost.
|
static void |
updateCurrBackpack(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack)
Updates the data stored as the current backpack to the parameter 'stack' passed in.
|
void |
updateEquippedBackpack(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack)
Updates the data stored as the equipped backpack.
|
public void saveBackpackOnDeath(net.minecraft.entity.player.EntityPlayer player)
player - - the player who died with the backpackpublic static void loadBackpackOnDeath(net.minecraft.entity.player.EntityPlayer player)
player - - the player who lads the packs inpublic static void updateCurrBackpack(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack)
player - - the player to updatestack - - the backpack to update topublic static net.minecraft.item.ItemStack getCurrBackpack(net.minecraft.entity.player.EntityPlayer player)
player - - the player to retrieve the data frompublic void updateEquippedBackpack(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack)
player - - the player with the backpackstack - - the backpackpublic net.minecraft.item.ItemStack getEquippedBackpack(net.minecraft.entity.player.EntityPlayer player)
player - - the player to checkpublic void registerRenders()
public net.minecraft.entity.player.EntityPlayer getClientPlayer()
public void initKeybindings()