|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.client.multiplayer.PlayerControllerMP
public class PlayerControllerMP
Constructor Summary | |
---|---|
PlayerControllerMP(Minecraft par1Minecraft,
NetClientHandler par2NetClientHandler)
|
Method Summary | |
---|---|
void |
attackEntity(EntityPlayer par1EntityPlayer,
Entity par2Entity)
Attacks an entity |
void |
clickBlock(int par1,
int par2,
int par3,
int par4)
Called by Minecraft class when the player is hitting a block with an item. |
static void |
clickBlockCreative(Minecraft par0Minecraft,
PlayerControllerMP par1PlayerControllerMP,
int par2,
int par3,
int par4,
int par5)
Block dig operation in creative mode (instantly digs the block). |
boolean |
extendedReach()
true for hitting entities far away. |
void |
flipPlayer(EntityPlayer par1EntityPlayer)
Flips the player around. |
boolean |
func_78747_a()
|
void |
func_78752_a(ItemStack par1ItemStack)
|
EntityClientPlayerMP |
func_78754_a(World par1World)
|
boolean |
func_78763_f()
|
boolean |
func_78768_b(EntityPlayer par1EntityPlayer,
Entity par2Entity)
|
float |
getBlockReachDistance()
player reach distance = 4F |
boolean |
isInCreativeMode()
returns true if player is in creative mode |
boolean |
isNotCreative()
Checks if the player is not creative, used for checking if it should break a block instantly |
void |
onPlayerDamageBlock(int par1,
int par2,
int par3,
int par4)
Called when a player damages a block and updates damage counters |
boolean |
onPlayerDestroyBlock(int par1,
int par2,
int par3,
int par4)
Called when a player completes the destruction of a block |
boolean |
onPlayerRightClick(EntityPlayer par1EntityPlayer,
World par2World,
ItemStack par3ItemStack,
int par4,
int par5,
int par6,
int par7,
Vec3 par8Vec3)
Handles a players right click. |
void |
onStoppedUsingItem(EntityPlayer par1EntityPlayer)
|
void |
resetBlockRemoving()
Resets current block damage and isHittingBlock |
void |
sendEnchantPacket(int par1,
int par2)
GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the enchantment action the player has taken. |
void |
sendSlotPacket(ItemStack par1ItemStack,
int par2)
Used in PlayerControllerMP to update the server with an ItemStack in a slot. |
boolean |
sendUseItem(EntityPlayer par1EntityPlayer,
World par2World,
ItemStack par3ItemStack)
Notifies the server of things like consuming food, etc... |
void |
setGameType(EnumGameType par1EnumGameType)
Sets the game type for the player. |
void |
setPlayerCapabilities(EntityPlayer par1EntityPlayer)
Sets player capabilities depending on current gametype. |
boolean |
shouldDrawHUD()
|
void |
updateController()
|
ItemStack |
windowClick(int par1,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlayerControllerMP(Minecraft par1Minecraft, NetClientHandler par2NetClientHandler)
Method Detail |
---|
public static void clickBlockCreative(Minecraft par0Minecraft, PlayerControllerMP par1PlayerControllerMP, int par2, int par3, int par4, int par5)
public void setPlayerCapabilities(EntityPlayer par1EntityPlayer)
public boolean func_78747_a()
public void setGameType(EnumGameType par1EnumGameType)
public void flipPlayer(EntityPlayer par1EntityPlayer)
public boolean shouldDrawHUD()
public boolean onPlayerDestroyBlock(int par1, int par2, int par3, int par4)
public void clickBlock(int par1, int par2, int par3, int par4)
public void resetBlockRemoving()
public void onPlayerDamageBlock(int par1, int par2, int par3, int par4)
public float getBlockReachDistance()
public void updateController()
public boolean onPlayerRightClick(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack, int par4, int par5, int par6, int par7, Vec3 par8Vec3)
public boolean sendUseItem(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack)
public EntityClientPlayerMP func_78754_a(World par1World)
public void attackEntity(EntityPlayer par1EntityPlayer, Entity par2Entity)
public boolean func_78768_b(EntityPlayer par1EntityPlayer, Entity par2Entity)
public ItemStack windowClick(int par1, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
public void sendEnchantPacket(int par1, int par2)
public void sendSlotPacket(ItemStack par1ItemStack, int par2)
public void func_78752_a(ItemStack par1ItemStack)
public void onStoppedUsingItem(EntityPlayer par1EntityPlayer)
public boolean func_78763_f()
public boolean isNotCreative()
public boolean isInCreativeMode()
public boolean extendedReach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |