public class FakePlayer extends EntityPlayerMP
currentWindowId, destroyedItemsNetCache, loadedChunks, managedPosX, managedPosZ, mcServer, ping, playerConqueredTheEnd, playerInventoryBeingManipulated, playerNetServerHandler, theItemInWorldManager
cameraYaw, 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, flyToggleTimer, foodStats, inventory, inventoryContainer, openContainer, PERSISTED_NBT_TAG, playerLocation, prevCameraYaw, sleeping, sleepTimer, speedInAir, speedOnGround, username, xpCooldown
arrowHitTimer, attackedAtYaw, attackingPlayer, attackTime, cameraPitch, dead, deathTime, entityAge, field_110154_aX, field_70741_aB, field_70763_ax, field_70764_aw, field_70768_au, field_70769_ao, field_70770_ap, hurtTime, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, moveForward, moveStrafing, newPosRotationIncrements, newPosX, newPosY, newPosZ, newRotationPitch, newRotationYaw, prevCameraPitch, prevHealth, prevLimbSwingAmount, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingProgress, swingProgressInt
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityId, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize
Constructor and Description |
---|
FakePlayer(World world,
java.lang.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,
java.lang.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(java.lang.Object mod,
int modGuiId,
World world,
int x,
int y,
int z) |
void |
sendChatToPlayer(ChatMessageComponent chatmessagecomponent) |
void |
sendChatToPlayer(java.lang.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, onChangedPotionEffect, onCriticalHit, onEnchantmentCritical, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onNewPotionEffect, onUpdateEntity, readEntityFromNBT, requestTexturePackLoad, resetHeight, sendContainerAndContentsToPlayer, sendContainerToPlayer, sendPlayerAbilities, sendProgressBarUpdate, sendSlotContents, setEntityActionState, setGameType, setItemInUse, setPlayerHealthUpdated, setPositionAndUpdate, sleepInBedAt, updateFallState, updateFlyingState, updateHeldItem, wakeUpPlayer, writeEntityToNBT
addExhaustion, addExperience, addMovementStat, addScore, addToPlayerScore, applyEntityAttributes, attackTargetEntityWithCurrentItem, canEat, canHarvestBlock, canPlayerEdit, canTriggerWalking, clearItemInUse, damageArmor, damageEntity, destroyCurrentEquippedItem, displayGUIBook, dropOneItem, dropPlayerItem, dropPlayerItemWithRandomChoice, entityInit, fall, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getCommandSenderName, getCurrentArmor, getCurrentEquippedItem, getCurrentItemOrArmor, getCurrentPlayerStrVsBlock, getCurrentPlayerStrVsBlock, getDisplayName, getEntityName, getEntityWorld, getExperiencePoints, getEyeHeight, getFoodStats, getHeldItem, getHideCape, getHideCape, getInventoryEnderChest, getItemIcon, getItemInUse, getItemInUseCount, getItemInUseDuration, getLastActiveItems, getMaxInPortalTime, getPortalCooldown, getScore, getSleepTimer, getTeam, getTotalArmorValue, getTranslatedEntityName, getWorldScoreboard, getYOffset, handleHealthUpdate, interactWith, isBlocking, isCurrentToolAdventureModeExempt, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUsingItem, joinEntityItemWithWorld, jump, moveEntityWithHeading, onKillEntity, onLivingUpdate, playSound, preparePlayerToSpawn, refreshDisplayName, respawnPlayer, setAbsorptionAmount, setCurrentItemOrArmor, setDead, setHideCape, setInWeb, setScore, setSpawnChunk, setSpawnChunk, shouldHeal, stopUsingItem, triggerAchievement, updateEntityActionState, updateItemUse, updateRidden, verifyRespawnCoordinates, xpBarCap
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, attackEntityAsMob, canBeCollidedWith, canBePushed, canBreatheUnderwater, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropRareDrop, func_110142_aN, func_110146_f, func_142015_aE, func_94060_bK, getActivePotionEffect, getActivePotionEffects, getAge, getAITarget, getArrowCountInEntity, getAttributeMap, getCreatureAttribute, getDeathSound, getEntityAttribute, getHealth, getHurtSound, getLastAttacker, getLastAttackerTime, getLook, getLookVec, getMaxHealth, getPosition, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, heal, isAIEnabled, isChild, isClientWorld, isEntityAlive, isEntityUndead, isOnLadder, isOnSameTeam, isOnTeam, isPotionActive, isPotionActive, isPotionApplicable, kill, knockBack, onDeathUpdate, onEntityUpdate, performHurtAnimation, rayTrace, removePotionEffect, removePotionEffectClient, renderBrokenItemStack, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setJumping, setLastAttacker, setPositionAndRotation2, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, swingItem, updateAITasks, updateAITick, updateArmSwingProgress, updatePotionEffects
addEntityCrashInfo, addVelocity, applyEntityCollision, canAttackWithItem, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAir, getBlockExplosionResistance, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityString, getExtendedProperties, getFlag, 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, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onStruckByLightning, playStepSound, pushOutOfBlocks, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setEating, setFire, setFlag, setInPortal, setInvisible, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setRotation, setSize, setSneaking, setVelocity, setWorld, shouldDismountInWater, shouldExplodeBlock, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptional
public FakePlayer(World world, java.lang.String name)
public void sendChatToPlayer(java.lang.String s)
public boolean canCommandSenderUseCommand(int i, java.lang.String s)
EntityPlayerMP
canCommandSenderUseCommand
in interface ICommandSender
canCommandSenderUseCommand
in class EntityPlayerMP
public ChunkCoordinates getPlayerCoordinates()
EntityPlayerMP
getPlayerCoordinates
in interface ICommandSender
getPlayerCoordinates
in class EntityPlayerMP
public void sendChatToPlayer(ChatMessageComponent chatmessagecomponent)
sendChatToPlayer
in interface ICommandSender
sendChatToPlayer
in class EntityPlayerMP
public void addStat(StatBase par1StatBase, int par2)
EntityPlayerMP
addStat
in class EntityPlayerMP
public void openGui(java.lang.Object mod, int modGuiId, World world, int x, int y, int z)
openGui
in class EntityPlayer
public boolean isEntityInvulnerable()
Entity
isEntityInvulnerable
in class Entity
public boolean canAttackPlayer(EntityPlayer player)
canAttackPlayer
in class EntityPlayerMP
public void onDeath(DamageSource source)
EntityPlayerMP
onDeath
in class EntityPlayerMP
public void onUpdate()
EntityPlayerMP
onUpdate
in class EntityPlayerMP
public void travelToDimension(int dim)
EntityPlayerMP
travelToDimension
in class EntityPlayerMP
public void updateClientInfo(Packet204ClientInfo pkt)
updateClientInfo
in class EntityPlayerMP