public class FakePlayer extends EntityPlayerMP
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResultconnection, currentWindowId, interactionManager, isChangingQuantityOnly, managedPosX, managedPosZ, mcServer, ping, queuedEndExitbedLocation, cameraYaw, capabilities, chasingPosX, chasingPosY, chasingPosZ, enderChest, experience, experienceLevel, experienceTotal, eyeHeight, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, renderOffsetX, renderOffsetY, renderOffsetZ, RIGHT_SHOULDER_ENTITY, sleeping, spawnChunkMap, spawnForced, spawnForcedMap, spawnPos, speedInAir, xpCooldown, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, HAND_STATES, hurtTime, idleTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, updateBlocked, velocityChanged, width, world| Constructor and Description |
|---|
FakePlayer(WorldServer world,
GameProfile 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 |
canUseCommand(int i,
java.lang.String s)
Returns
true if the CommandSender is allowed to execute the command, false if not |
Entity |
changeDimension(int dim,
ITeleporter teleporter) |
Vec3d |
getPositionVector()
Get the position vector.
|
MinecraftServer |
getServer()
Get the Minecraft server instance
|
void |
handleClientSettings(CPacketClientSettings pkt) |
boolean |
isEntityInvulnerable(DamageSource source)
Returns whether this Entity is invulnerable to the given DamageSource.
|
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)
Opens a GUI with this player, uses FML's IGuiHandler system.
|
void |
sendMessage(ITextComponent component)
Send a chat message to the CommandSender
|
void |
sendStatusMessage(ITextComponent chatComponent,
boolean actionBar) |
addEntity, addExperienceLevel, addSelfToInternalCraftingInventory, attackEntityFrom, attackTargetEntityWithCurrentItem, awardKillScore, clearElytraFlying, clearInvulnerableDimensionChange, closeContainer, closeScreen, copyFrom, createCooldownTracker, decrementTimeUntilPortal, dismountRidingEntity, displayGui, displayGUIChest, displayGuiCommandBlock, displayVillagerTradeGui, frostWalk, getAdvancements, getChatVisibility, getEnteredNetherPosition, getLastActiveTime, getNextWindowId, getPlayerIP, getPosition, getRecipeBook, getServerWorld, getSpectatingEntity, getStatFile, getTabListDisplayName, handleFalling, hasDisconnected, isCreative, isInvulnerableDimensionChange, isSpectatedByPlayer, isSpectator, loadResourcePack, markPlayerActive, mountEntityAndWakeUp, onChangedPotionEffect, onCriticalHit, onEnchant, onEnchantmentCritical, onFinishedPotionEffect, onInsideBlock, onItemPickup, onItemUseFinish, onNewPotionEffect, onUpdateEntity, openBook, openEditSign, openGuiHorseInventory, readEntityFromNBT, registerFixesPlayerMP, removeEntity, resetRecipes, sendAllContents, sendAllWindowProperties, sendContainerToPlayer, sendEndCombat, sendEnterCombat, sendPlayerAbilities, sendSlotContents, sendWindowProperty, setElytraFlying, setEntityActionState, setGameType, setPlayerHealthUpdated, setPositionAndUpdate, setSpectatingEntity, startRiding, swingArm, takeStat, trySleep, unlockRecipes, unlockRecipes, updateFallState, updateHeldItem, updatePotionMetadata, wakeUpPlayer, writeEntityToNBTaddExhaustion, addExperience, addItemStackToInventory, addMovementStat, addPrefix, addScore, addShoulderEntity, addStat, addSuffix, applyEntityAttributes, applyEntityCollision, blockUsingShield, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, displayGuiEditCommandCart, doWaterSplashEffect, dropItem, dropItem, dropItem, dropItemAndGetStack, entityInit, fall, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getArmorVisibility, getBedLocation, getBedLocation, getBedOrientationInDegrees, getBedSpawnLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDefaultEyeHeight, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameString, getExperiencePoints, getEyeHeight, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getSleepTimer, getSoundCategory, getSpawnDimension, getSplashSound, getSuffixes, getSwimSound, getTeam, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasCapability, hasReducedDebug, hasSpawnDimension, interactOn, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUser, isWearing, jump, onKillEntity, onLivingUpdate, openEditStructure, playSound, preparePlayerToSpawn, refreshDisplayName, registerFixesPlayer, replaceItemInInventory, resetCooldown, respawnPlayer, sendCommandFeedback, setAbsorptionAmount, setDead, setInWeb, setItemStackToSlot, setLeftShoulderEntity, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnChunk, setSpawnDimension, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, travel, updateEntityActionState, updateRidden, updateSize, xpBarCapaddPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, collideWithEntity, collideWithNearbyEntities, curePotionEffects, decreaseAirSupply, dismountEntity, dropEquipment, dropFewItems, dropLoot, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLook, getMaxHealth, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, knockBack, markPotionsDirty, markVelocityChanged, moveRelative, notifyDataManagerChange, onDeathUpdate, onEntityUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setHealth, setHeldItem, setJumping, setLastAttackedEntity, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffectsaddEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, deserializeNBT, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, getAdjustedHorizontalFacing, getAir, getAlwaysRenderNameTag, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSenderEntity, getCommandStats, getControllingPassenger, getCustomNameTag, getDataManager, getDistance, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPositionEyes, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isOverWater, isPassenger, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, makeFlySound, move, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, registerFixes, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, serializeNBT, setAir, setAlwaysRenderNameTag, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setLocationAndAngles, setNoGravity, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, turn, updatePassenger, writeToNBT, writeToNBTAtomically, writeToNBTOptionalpublic FakePlayer(WorldServer world, GameProfile name)
public Vec3d getPositionVector()
Entitynull is not allowed! If you are not an entity in the world, return 0.0D,
0.0D, 0.0DgetPositionVector in interface ICommandSendergetPositionVector in class Entitypublic boolean canUseCommand(int i,
java.lang.String s)
EntityPlayerMPtrue if the CommandSender is allowed to execute the command, false if notcanUseCommand in interface ICommandSendercanUseCommand in class EntityPlayerMPpublic void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage in class EntityPlayerMPpublic void sendMessage(ITextComponent component)
EntityPlayerMPsendMessage in interface ICommandSendersendMessage in class EntityPlayerMPpublic void addStat(StatBase par1StatBase, int par2)
EntityPlayerMPaddStat in class EntityPlayerMPpublic void openGui(java.lang.Object mod,
int modGuiId,
World world,
int x,
int y,
int z)
EntityPlayeropenGui in class EntityPlayermod - The mod trying to open a GUImodGuiId - GUI IDworld - Current Worldx - Passed directly to IGuiHandler, data meaningless Typically world X positiony - Passed directly to IGuiHandler, data meaningless Typically world Y positionz - Passed directly to IGuiHandler, data meaningless Typically world Z positionpublic boolean isEntityInvulnerable(DamageSource source)
EntityPlayerMPisEntityInvulnerable in class EntityPlayerMPpublic boolean canAttackPlayer(EntityPlayer player)
canAttackPlayer in class EntityPlayerMPpublic void onDeath(DamageSource source)
EntityPlayerMPonDeath in class EntityPlayerMPpublic void onUpdate()
EntityPlayerMPonUpdate in class EntityPlayerMPpublic Entity changeDimension(int dim, ITeleporter teleporter)
changeDimension in class EntityPlayerMPpublic void handleClientSettings(CPacketClientSettings pkt)
handleClientSettings in class EntityPlayerMPpublic MinecraftServer getServer()
EntitygetServer in interface ICommandSendergetServer in class Entity