public class FakePlayer extends EntityPlayerMP
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResult
connection, currentWindowId, interactionManager, isChangingQuantityOnly, managedPosX, managedPosZ, mcServer, ping, playerConqueredTheEnd
bedLocation, cameraYaw, capabilities, chasingPosX, chasingPosY, chasingPosZ, experience, experienceLevel, experienceTotal, eyeHeight, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, renderOffsetX, renderOffsetY, renderOffsetZ, sleeping, speedInAir, speedOnGround, xpCooldown
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, cameraPitch, dead, deathTime, entityAge, HAND_STATES, hurtTime, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, newPosRotationIncrements, onGroundSpeedFactor, prevCameraPitch, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, 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) |
Vec3d |
getPositionVector()
Get the position vector.
|
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, clearElytraFlying, clearInvulnerableDimensionChange, clonePlayer, closeContainer, closeScreen, createCooldownTracker, decrementTimeUntilPortal, dismountRidingEntity, displayGui, displayGUIChest, displayGuiCommandBlock, displayVillagerTradeGui, frostWalk, func_191522_a, getChatVisibility, getLastActiveTime, getNextWindowId, getPlayerIP, getPosition, getServerWorld, getSpectatingEntity, getStatFile, getTabListDisplayName, handleFalling, hasAchievement, isCreative, isInvulnerableDimensionChange, isSpectatedByPlayer, isSpectator, loadResourcePack, markPlayerActive, mountEntityAndWakeUp, onChangedPotionEffect, onCriticalHit, onEnchantmentCritical, onFinishedPotionEffect, onItemPickup, onItemUseFinish, onNewPotionEffect, onUpdateEntity, openBook, openEditSign, openGuiHorseInventory, readEntityFromNBT, removeEntity, removeExperienceLevel, sendAllWindowProperties, sendContainerToPlayer, sendEndCombat, sendEnterCombat, sendPlayerAbilities, sendProgressBarUpdate, sendSlotContents, setElytraFlying, setEntityActionState, setGameType, setPlayerHealthUpdated, setPositionAndUpdate, setSpectatingEntity, startRiding, swingArm, takeStat, trySleep, updateBiomesExplored, updateCraftingInventory, updateFallState, updateHeldItem, updatePotionMetadata, wakeUpPlayer, writeEntityToNBT
addExhaustion, addExperience, addMovementStat, addPrefix, addScore, addStat, addSuffix, addToPlayerScore, applyEntityAttributes, applyEntityCollision, blockUsingShield, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, displayGuiEditCommandCart, dropItem, dropItem, dropItem, dropItemAndGetStack, entityInit, fall, func_191521_c, 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, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, 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, moveEntityWithHeading, onKillEntity, onLivingUpdate, openEditStructure, playSound, preparePlayerToSpawn, refreshDisplayName, registerFixesPlayer, replaceItemInInventory, resetCooldown, resetHeight, respawnPlayer, sendCommandFeedback, setAbsorptionAmount, setDead, setInWeb, setItemStackToSlot, setPrimaryHand, setReducedDebug, setScore, setSpawnChunk, setSpawnDimension, setSpawnPoint, shouldHeal, spawnSweepParticles, updateEntityActionState, updateRidden, updateSize, xpBarCap
addPotionEffect, 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, getAge, getAITarget, getArrowCountInEntity, getAttackingEntity, getAttributeMap, getCombatTracker, getCreatureAttribute, getEntityAttribute, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttacker, getLastAttackerTime, getLastDamageSource, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getWaterSlowDown, handleJumpLava, handleJumpWater, hasItemInSlot, heal, isActiveItemStackBlocking, isChild, isElytraFlying, isEntityAlive, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, kill, knockBack, markPotionsDirty, notifyDataManagerChange, onDeathUpdate, onEntityUpdate, onKillCommand, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, renderBrokenItemStack, resetActiveHand, resetPotionEffectMetadata, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBeenAttacked, setHealth, setHeldItem, setJumping, setLastAttacker, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, stopActiveHand, updateActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffects
addEntityCrashInfo, addPassenger, addTag, addTrackingPlayer, addVelocity, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canFitPassenger, canPassengerSteer, canRenderOnFire, canRiderInteract, canTrample, 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, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getFlag, getForward, getHorizontalFacing, getHoverEvent, getIsInvulnerable, getLastPortalVec, getLowestRidingEntity, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPickedResult, getPitchYaw, getPositionEyes, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onCollideWithPlayer, onStruckByLightning, 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, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
public FakePlayer(WorldServer world, GameProfile name)
public Vec3d getPositionVector()
Entity
null
is not allowed! If you are not an entity in the world, return 0.0D,
0.0D, 0.0DgetPositionVector
in interface ICommandSender
getPositionVector
in class Entity
public boolean canUseCommand(int i, java.lang.String s)
EntityPlayerMP
true
if the CommandSender is allowed to execute the command, false
if notcanUseCommand
in interface ICommandSender
canUseCommand
in class EntityPlayerMP
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage
in class EntityPlayerMP
public void sendMessage(ITextComponent component)
EntityPlayerMP
sendMessage
in interface ICommandSender
sendMessage
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)
EntityPlayer
openGui
in class EntityPlayer
mod
- 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)
EntityPlayerMP
isEntityInvulnerable
in class EntityPlayerMP
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 Entity changeDimension(int dim)
changeDimension
in class EntityPlayerMP
public void handleClientSettings(CPacketClientSettings pkt)
handleClientSettings
in class EntityPlayerMP