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 p_78764_1_,
Entity p_78764_2_)
Attacks an entity
|
void |
clickBlock(int p_78743_1_,
int p_78743_2_,
int p_78743_3_,
int p_78743_4_)
Called by Minecraft class when the player is hitting a block with an item.
|
static void |
clickBlockCreative(Minecraft p_78744_0_,
PlayerControllerMP p_78744_1_,
int p_78744_2_,
int p_78744_3_,
int p_78744_4_,
int p_78744_5_)
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 p_78745_1_)
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 p_78768_1_,
Entity p_78768_2_)
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 p_78759_1_,
int p_78759_2_,
int p_78759_3_,
int p_78759_4_)
Called when a player damages a block and updates damage counters
|
boolean |
onPlayerDestroyBlock(int p_78751_1_,
int p_78751_2_,
int p_78751_3_,
int p_78751_4_)
Called when a player completes the destruction of a block
|
boolean |
onPlayerRightClick(EntityPlayer p_78760_1_,
World p_78760_2_,
ItemStack p_78760_3_,
int p_78760_4_,
int p_78760_5_,
int p_78760_6_,
int p_78760_7_,
Vec3 p_78760_8_)
Handles a players right click.
|
void |
onStoppedUsingItem(EntityPlayer p_78766_1_) |
void |
resetBlockRemoving()
Resets current block damage and field_78778_j
|
void |
sendEnchantPacket(int p_78756_1_,
int p_78756_2_)
GuiEnchantment uses this during multiplayer to tell PlayerControllerMP to send a packet indicating the
enchantment action the player has taken.
|
void |
sendPacketDropItem(ItemStack p_78752_1_)
Sends a Packet107 to the server to drop the item on the ground
|
void |
sendSlotPacket(ItemStack p_78761_1_,
int p_78761_2_)
Used in PlayerControllerMP to update the server with an ItemStack in a slot.
|
boolean |
sendUseItem(EntityPlayer p_78769_1_,
World p_78769_2_,
ItemStack p_78769_3_)
Notifies the server of things like consuming food, etc...
|
void |
setGameType(WorldSettings.GameType p_78746_1_)
Sets the game type for the player.
|
void |
setPlayerCapabilities(EntityPlayer p_78748_1_)
Sets player capabilities depending on current gametype. params: player
|
boolean |
shouldDrawHUD() |
void |
updateController() |
ItemStack |
windowClick(int p_78753_1_,
int p_78753_2_,
int p_78753_3_,
int p_78753_4_,
EntityPlayer p_78753_5_) |
public PlayerControllerMP(Minecraft p_i45062_1_, NetHandlerPlayClient p_i45062_2_)
public static void clickBlockCreative(Minecraft p_78744_0_, PlayerControllerMP p_78744_1_, int p_78744_2_, int p_78744_3_, int p_78744_4_, int p_78744_5_)
public void setPlayerCapabilities(EntityPlayer p_78748_1_)
public boolean enableEverythingIsScrewedUpMode()
public void setGameType(WorldSettings.GameType p_78746_1_)
public void flipPlayer(EntityPlayer p_78745_1_)
public boolean shouldDrawHUD()
public boolean onPlayerDestroyBlock(int p_78751_1_,
int p_78751_2_,
int p_78751_3_,
int p_78751_4_)
public void clickBlock(int p_78743_1_,
int p_78743_2_,
int p_78743_3_,
int p_78743_4_)
public void resetBlockRemoving()
public void onPlayerDamageBlock(int p_78759_1_,
int p_78759_2_,
int p_78759_3_,
int p_78759_4_)
public float getBlockReachDistance()
public void updateController()
public boolean onPlayerRightClick(EntityPlayer p_78760_1_, World p_78760_2_, ItemStack p_78760_3_, int p_78760_4_, int p_78760_5_, int p_78760_6_, int p_78760_7_, Vec3 p_78760_8_)
public boolean sendUseItem(EntityPlayer p_78769_1_, World p_78769_2_, ItemStack p_78769_3_)
public EntityClientPlayerMP func_147493_a(World p_147493_1_, StatFileWriter p_147493_2_)
public void attackEntity(EntityPlayer p_78764_1_, Entity p_78764_2_)
public boolean interactWithEntitySendPacket(EntityPlayer p_78768_1_, Entity p_78768_2_)
public ItemStack windowClick(int p_78753_1_, int p_78753_2_, int p_78753_3_, int p_78753_4_, EntityPlayer p_78753_5_)
public void sendEnchantPacket(int p_78756_1_,
int p_78756_2_)
public void sendSlotPacket(ItemStack p_78761_1_, int p_78761_2_)
public void sendPacketDropItem(ItemStack p_78752_1_)
public void onStoppedUsingItem(EntityPlayer p_78766_1_)
public boolean gameIsSurvivalOrAdventure()
public boolean isNotCreative()
public boolean isInCreativeMode()
public boolean extendedReach()
public boolean func_110738_j()