public class FakePlayer extends EntityPlayerMP
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResult
connection, currentWindowId, interactionManager, isChangingQuantityOnly, managedPosX, managedPosZ, mcServer, ping, playerConqueredTheEnd
cameraYaw, capabilities, chasingPosX, chasingPosY, chasingPosZ, experience, experienceLevel, experienceTotal, eyeHeight, fishEntity, flyToggleTimer, foodStats, inventory, inventoryContainer, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, playerLocation, 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, fireResistance, firstUpdate, 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, velocityChanged, width, worldObj
Constructor and Description |
---|
FakePlayer(WorldServer world,
com.mojang.authlib.GameProfile name) |
Modifier and Type | Method and Description |
---|---|
void |
addChatComponentMessage(ITextComponent chatmessagecomponent) |
void |
addStat(StatBase par1StatBase,
int par2) |
boolean |
canAttackPlayer(EntityPlayer player) |
boolean |
canCommandSenderUseCommand(int i,
java.lang.String s) |
Entity |
changeDimension(int dim) |
Vec3d |
getPositionVector() |
void |
handleClientSettings(CPacketClientSettings pkt) |
boolean |
isEntityInvulnerable(DamageSource source) |
void |
onDeath(DamageSource source) |
void |
onUpdate() |
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.
|
addChatMessage, addEntity, addExperienceLevel, addSelfToInternalCraftingInventory, attackEntityFrom, attackTargetEntityWithCurrentItem, clearElytraFlying, clearInvulnerableDimensionChange, clonePlayer, closeContainer, closeScreen, createCooldownTracker, decrementTimeUntilPortal, dismountRidingEntity, displayGui, displayGUIChest, displayGuiCommandBlock, displayVillagerTradeGui, frostWalk, 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, canEat, canHarvestBlock, canOpen, canPlayerEdit, canTriggerWalking, damageArmor, damageEntity, damageShield, displayGuiEditCommandCart, 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, getFoodStats, getGameProfile, getHeldEquipment, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getScore, getSleepTimer, getSoundCategory, getSplashSound, getSuffixes, getSwimSound, getTeam, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasCapability, hasReducedDebug, interact, isAllowEdit, isEntityInsideOpaqueBlock, isInvisibleToPlayer, isMovementBlocked, isPlayer, isPlayerFullyAsleep, isPlayerSleeping, isPushedByWater, isSpawnForced, isSpawnForced, isUser, isWearing, jump, moveEntityWithHeading, onKillEntity, onLivingUpdate, playSound, preparePlayerToSpawn, refreshDisplayName, replaceItemInInventory, resetCooldown, resetHeight, respawnPlayer, sendCommandFeedback, setAbsorptionAmount, setDead, setInWeb, setItemStackToSlot, setPrimaryHand, setReducedDebug, setScore, setSpawnChunk, setSpawnPoint, shouldHeal, spawnSweepParticles, updateEntityActionState, updateRidden, updateSize, xpBarCap
addPotionEffect, applyArmorCalculations, applyPotionDamageCalculations, areAllPotionsAmbient, 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, getLook, getLookVec, getMaxHealth, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, handleJumpLava, handleJumpWater, 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, 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, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLowestRidingEntity, getMaxFallHeight, getMirroredYaw, getMountedYOffset, getParts, getPassengers, getPersistentID, getPickedResult, getPositionEyes, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getServer, getTags, getTeleportDirection, getUniqueID, getVectorForRotation, handleWaterMovement, hasCustomName, hashCode, 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, moveEntity, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onStruckByLightning, playStepSound, processInitialInteract, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetEntityId, resetPositionToBB, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setCommandStat, setCommandStats, setCustomNameTag, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSize, setSneaking, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, toString, updatePassenger, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
public FakePlayer(WorldServer world, com.mojang.authlib.GameProfile name)
public Vec3d getPositionVector()
getPositionVector
in interface ICommandSender
getPositionVector
in class Entity
public boolean canCommandSenderUseCommand(int i, java.lang.String s)
canCommandSenderUseCommand
in interface ICommandSender
canCommandSenderUseCommand
in class EntityPlayerMP
public void addChatComponentMessage(ITextComponent chatmessagecomponent)
addChatComponentMessage
in class EntityPlayerMP
public void addStat(StatBase par1StatBase, int par2)
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)
isEntityInvulnerable
in class EntityPlayerMP
public boolean canAttackPlayer(EntityPlayer player)
canAttackPlayer
in class EntityPlayerMP
public void onDeath(DamageSource source)
onDeath
in class EntityPlayerMP
public void onUpdate()
onUpdate
in class EntityPlayerMP
public Entity changeDimension(int dim)
changeDimension
in class EntityPlayerMP
public void handleClientSettings(CPacketClientSettings pkt)
handleClientSettings
in class EntityPlayerMP