public class PlayerControllerMP
extends java.lang.Object
Constructor and Description |
---|
PlayerControllerMP(Minecraft p_i45062_1_,
NetHandlerPlayClient p_i45062_2_) |
Modifier and Type | Method and Description |
---|---|
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 |
enableEverythingIsScrewedUpMode()
If modified to return true, the player spins around slowly around (0, 68.5, 0).
|
boolean |
extendedReach()
true for hitting entities far away.
|
void |
flipPlayer(EntityPlayer par1EntityPlayer)
Flips the player around.
|
boolean |
func_110738_j() |
EntityClientPlayerMP |
func_147493_a(World p_147493_1_,
StatFileWriter p_147493_2_) |
boolean |
gameIsSurvivalOrAdventure() |
float |
getBlockReachDistance()
player reach distance = 4F
|
boolean |
interactWithEntitySendPacket(EntityPlayer par1EntityPlayer,
Entity par2Entity)
Send packet to server - player is interacting with another entity (left click)
|
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 field_78778_j
|
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 |
sendPacketDropItem(ItemStack par1ItemStack)
Sends a Packet107 to the server to drop the item on the ground
|
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(WorldSettings.GameType 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) |
public PlayerControllerMP(Minecraft p_i45062_1_, NetHandlerPlayClient p_i45062_2_)
public static void clickBlockCreative(Minecraft par0Minecraft, PlayerControllerMP par1PlayerControllerMP, int par2, int par3, int par4, int par5)
public void setPlayerCapabilities(EntityPlayer par1EntityPlayer)
public boolean enableEverythingIsScrewedUpMode()
public void setGameType(WorldSettings.GameType 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_147493_a(World p_147493_1_, StatFileWriter p_147493_2_)
public void attackEntity(EntityPlayer par1EntityPlayer, Entity par2Entity)
public boolean interactWithEntitySendPacket(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 sendPacketDropItem(ItemStack par1ItemStack)
public void onStoppedUsingItem(EntityPlayer par1EntityPlayer)
public boolean gameIsSurvivalOrAdventure()
public boolean isNotCreative()
public boolean isInCreativeMode()
public boolean extendedReach()
public boolean func_110738_j()