public class FakePlayer extends EntityPlayerMP
currentWindowId, destroyedItemsNetCache, loadedChunks, managedPosX, managedPosZ, mcServer, ping, playerConqueredTheEnd, playerInventoryBeingManipulated, playerNetServerHandler, theItemInWorldManagercameraYaw, capabilities, experience, experienceLevel, experienceTotal, eyeHeight, field_71079_bU, field_71082_cx, field_71085_bR, field_71089_bV, field_71091_bM, field_71094_bP, field_71095_bQ, field_71096_bN, field_71097_bO, fishEntity, inventory, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, sleepTimer, username, xpCooldownarrowHitTimer, attackedAtYaw, attackTime, cameraPitch, deathTime, field_70769_ao, field_70770_ap, hurtTime, isSwingInProgress, jumpMovementFactor, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgress, swingProgressIntaddedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
FakePlayer(World world,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStat(StatBase par1StatBase,
int par2)
Adds a value to a statistic field.
|
boolean |
canAttackPlayer(EntityPlayer player) |
boolean |
canCommandSenderUseCommand(int i,
String s)
Returns true if the command sender is allowed to use the given command.
|
ChunkCoordinates |
getPlayerCoordinates()
Return the position for this command sender.
|
boolean |
isEntityInvulnerable()
Return whether this entity is invulnerable to damage.
|
void |
onDeath(DamageSource source)
Called when the mob's health reaches 0.
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
openGui(Object mod,
int modGuiId,
World world,
int x,
int y,
int z) |
void |
sendChatToPlayer(ChatMessageComponent chatmessagecomponent) |
void |
sendChatToPlayer(String s) |
void |
travelToDimension(int dim)
Teleports the entity to another dimension.
|
void |
updateClientInfo(Packet204ClientInfo pkt) |
addChatMessage, addExperienceLevel, addSelfToInternalCraftingInventory, attackEntityFrom, clonePlayer, closeContainer, closeScreen, displayGUIAnvil, displayGUIBeacon, displayGUIBrewingStand, displayGUIChest, displayGUIDispenser, displayGUIEditSign, displayGUIEnchantment, displayGUIFurnace, displayGUIHopper, displayGUIHopperMinecart, displayGUIHorse, displayGUIMerchant, displayGUIWorkbench, func_143004_u, getChatVisibility, getDefaultEyeHeight, getPlayerIP, getServerForPlayer, incrementWindowID, mountEntity, mountEntityAndWakeUp, onCriticalHit, onEnchantmentCritical, onItemPickup, onUpdateEntity, readEntityFromNBT, requestTexturePackLoad, sendContainerAndContentsToPlayer, sendContainerToPlayer, sendPlayerAbilities, sendProgressBarUpdate, sendSlotContents, setEntityActionState, setGameType, setItemInUse, setPlayerHealthUpdated, setPositionAndUpdate, sleepInBedAt, updateFlyingState, updateHeldItem, wakeUpPlayer, writeEntityToNBTaddExhaustion, addExperience, addMovementStat, addScore, addToPlayerScore, attackTargetEntityWithCurrentItem, canEat, canHarvestBlock, canPlayerEdit, clearItemInUse, destroyCurrentEquippedItem, displayGUIBook, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getCurrentPlayerStrVsBlock, getDisplayName, getEntityName, getEntityWorld, getEyeHeight, getFoodStats, getHeldItem, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getLastActiveItems, getMaxInPortalTime, getPortalCooldown, getScore, getSleepTimer, getTeam, getTotalArmorValue, getTranslatedEntityName, getWorldScoreboard, getYOffset, handleHealthUpdate, interactWith, isBlocking, isCurrentToolAdventureModeExempt, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUsingItem, joinEntityItemWithWorld, moveEntityWithHeading, onKillEntity, onLivingUpdate, playSound, preparePlayerToSpawn, refreshDisplayName, respawnPlayer, setAbsorptionAmount, setCurrentItemOrArmor, setDead, setInWeb, setScore, setSpawnChunk, setSpawnChunk, shouldHeal, stopUsingItem, triggerAchievement, updateRidden, verifyRespawnCoordinates, xpBarCapaddPotionEffect, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, curePotionEffects, dismountEntity, func_110142_aN, func_142015_aE, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getEntityAttribute, getHealth, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSwingProgress, heal, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, knockBack, onEntityUpdate, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItemaddEntityCrashInfo, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAir, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getExtendedProperties, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getShadowSize, getTeleportDirection, getUniqueID, handleLavaMovement, handleWaterMovement, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityEqual, isImmuneToFire, isInRangeToRenderDist, isInRangeToRenderVec3D, isInsideOfMaterial, isInvisible, isInWater, isOffsetPositionInLiquid, isRiding, isSneaking, isSprinting, isWet, moveEntity, moveFlying, onChunkLoad, onCollideWithPlayer, onStruckByLightning, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setFire, setInPortal, setInvisible, setLocationAndAngles, setPosition, setPositionAndRotation, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldExplodeBlock, shouldRenderInPass, shouldRiderSit, toString, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic void sendChatToPlayer(String s)
public boolean canCommandSenderUseCommand(int i,
String s)
EntityPlayerMPcanCommandSenderUseCommand in interface ICommandSendercanCommandSenderUseCommand in class EntityPlayerMPpublic ChunkCoordinates getPlayerCoordinates()
EntityPlayerMPgetPlayerCoordinates in interface ICommandSendergetPlayerCoordinates in class EntityPlayerMPpublic void sendChatToPlayer(ChatMessageComponent chatmessagecomponent)
sendChatToPlayer in interface ICommandSendersendChatToPlayer in class EntityPlayerMPpublic void addStat(StatBase par1StatBase, int par2)
EntityPlayerMPaddStat in class EntityPlayerMPpublic void openGui(Object mod, int modGuiId, World world, int x, int y, int z)
openGui in class EntityPlayerpublic boolean isEntityInvulnerable()
EntityisEntityInvulnerable in class Entitypublic boolean canAttackPlayer(EntityPlayer player)
canAttackPlayer in class EntityPlayerMPpublic void onDeath(DamageSource source)
EntityPlayerMPonDeath in class EntityPlayerMPpublic void onUpdate()
EntityPlayerMPonUpdate in class EntityPlayerMPpublic void travelToDimension(int dim)
EntityPlayerMPtravelToDimension in class EntityPlayerMPpublic void updateClientInfo(Packet204ClientInfo pkt)
updateClientInfo in class EntityPlayerMP