public class FakePlayer extends EntityPlayerMP
EntityPlayer.EnumChatVisibility, EntityPlayer.SleepResult
connection, currentWindowId, interactionManager, isChangingQuantityOnly, managedPosX, managedPosZ, mcServer, ping, queuedEndExit
bedLocation, 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, xpSeed
activeItemStack, 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, unused180
addedToChunk, 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,
com.mojang.authlib.GameProfile name) |
Modifier and Type | Method and Description |
---|---|
void |
addStat(StatBase par1StatBase,
int par2) |
boolean |
canAttackPlayer(EntityPlayer player) |
boolean |
canUseCommand(int i,
java.lang.String s) |
Entity |
changeDimension(int dim,
ITeleporter teleporter) |
Vec3d |
getPositionVector() |
MinecraftServer |
getServer() |
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.
|
void |
sendMessage(ITextComponent component) |
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, writeEntityToNBT
addExhaustion, 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, 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, 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, updatePotionEffects
addEntityCrashInfo, 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, writeToNBTOptional
public FakePlayer(WorldServer world, com.mojang.authlib.GameProfile name)
public Vec3d getPositionVector()
getPositionVector
in interface ICommandSender
getPositionVector
in class Entity
public boolean canUseCommand(int i, java.lang.String s)
canUseCommand
in interface ICommandSender
canUseCommand
in class EntityPlayerMP
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage
in class EntityPlayerMP
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSender
sendMessage
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, ITeleporter teleporter)
changeDimension
in class EntityPlayerMP
public void handleClientSettings(CPacketClientSettings pkt)
handleClientSettings
in class EntityPlayerMP
@Nullable public MinecraftServer getServer()
getServer
in interface ICommandSender
getServer
in class Entity