public class FakePlayer extends ServerPlayerEntity
PlayerEntity.SleepResult
Entity.IMoveCallback
connection, currentWindowId, interactionManager, isChangingQuantityOnly, ping, queuedEndExit, server
abilities, cameraYaw, chasingPosX, chasingPosY, chasingPosZ, container, enterChestInventory, experience, experienceLevel, experienceTotal, eyesInWaterPlayer, fishingBobber, flyToggleTimer, foodStats, inventory, LEFT_SHOULDER_ENTITY, MAIN_HAND, openContainer, PERSISTED_NBT_TAG, PLAYER_MODEL_FLAG, prevCameraYaw, prevChasingPosX, prevChasingPosY, prevChasingPosZ, REACH_DISTANCE, RIGHT_SHOULDER_ENTITY, spawnForced, spawnForcedMap, spawnPos, spawnPosMap, speedInAir, STANDING_SIZE, xpCooldown, xpSeed
activeItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
DUMMY
Constructor and Description |
---|
FakePlayer(ServerWorld world,
com.mojang.authlib.GameProfile name) |
Modifier and Type | Method and Description |
---|---|
void |
addStat(Stat par1StatBase,
int par2) |
boolean |
canAttackPlayer(PlayerEntity player) |
Vec3d |
getPositionVector() |
MinecraftServer |
getServer() |
void |
handleClientSettings(CClientSettingsPacket pkt) |
boolean |
isInvulnerableTo(DamageSource source) |
void |
onDeath(DamageSource source) |
void |
sendMessage(ITextComponent component) |
void |
sendStatusMessage(ITextComponent chatComponent,
boolean actionBar) |
void |
tick() |
addEntity, addExperienceLevel, addSelfToInternalCraftingInventory, attackEntityFrom, attackTargetEntityWithCurrentItem, awardKillScore, changeDimension, clearInvulnerableDimensionChange, closeContainer, closeScreen, copyFrom, createCooldownTracker, createSpawnPacket, decrementTimeUntilPortal, disconnect, dropItem, frostWalk, func_195394_a, getAdvancements, getChatVisibility, getLastActiveTime, getManagedSectionPos, getNextWindowId, getPermissionLevel, getPlayerIP, getRecipeBook, getServerWorld, getSpectatingEntity, getStats, getTabListDisplayName, giveExperiencePoints, handleFalling, hasDisconnected, isCreative, isInvulnerableDimensionChange, isSpectatedByPlayer, isSpectator, loadResourcePack, lookAt, lookAt, markPlayerActive, moveForced, onChangedPotionEffect, onCriticalHit, onEnchant, onEnchantmentCritical, onFinishedPotionEffect, onInsideBlock, onItemPickup, onItemUseFinish, onNewPotionEffect, openBook, openCommandBlock, openContainer, openHorseInventory, openMerchantContainer, openSignEditor, playerTick, playSound, readAdditional, removeEntity, resetRecipes, sendAllContents, sendChunkLoad, sendChunkUnload, sendContainerToPlayer, sendEndCombat, sendEnterCombat, sendMessage, sendPlayerAbilities, sendSlotContents, sendWindowProperty, setEntityActionState, setExperienceLevel, setGameType, setManagedSectionPos, setPlayerHealthUpdated, setPositionAndUpdate, setSpectatingEntity, startRiding, stopRiding, stopSleepInBed, swingArm, takeStat, teleport, trySleep, unlockRecipes, unlockRecipes, updateFallState, updateHeldItem, updatePotionMetadata, writeAdditional
addExhaustion, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, blockActionRestricted, blockUsingShield, canEat, canHarvestBlock, canPickUpItem, canPlayerEdit, canTriggerWalking, canUseCommandBlock, checkBedValidRespawnPosition, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, drop, dropInventory, dropItem, findAmmo, getAbsorptionAmount, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBedLocation, getBedLocation, getCapability, getCooldownPeriod, getCooldownTracker, getCooledAttackStrength, getDeathSound, getDigSpeed, getDigSpeed, getDisplayName, getDisplayNameAndUUID, getExperiencePoints, getFallSound, getFireImmuneTicks, getFoodStats, getGameProfile, getHeldEquipment, getHighspeedSplashSound, getHurtSound, getInventoryEnderChest, getItemStackFromSlot, getLeftShoulderEntity, getLuck, getMaxInPortalTime, getName, getOfflineUUID, getPortalCooldown, getPrefixes, getPrimaryHand, getRightShoulderEntity, getScore, getScoreboardName, getSize, getSleepTimer, getSoundCategory, getSpawnDimension, getSpeedFactor, getSplashSound, getStandingEyeHeight, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasReducedDebug, interactOn, isAllowEdit, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPushedByWater, isSecondaryUseActive, isSpawnForced, isSpawnForced, isStayingOnGroundSurface, isSwimming, isUser, isWearing, jump, livingTick, maybeBackOffFromEdge, onFoodEaten, onKillEntity, onLivingFall, openJigsaw, openMinecartCommandBlock, openStructureBlock, playSound, preparePlayerToSpawn, refreshDisplayName, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, respawnPlayer, setAbsorptionAmount, setItemStackToSlot, setLeftShoulderEntity, setMotionMultiplier, setPrimaryHand, setReducedDebug, setRespawnPosition, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, startFallFlying, startSleeping, stopFallFlying, travel, tryToStartFallFlying, updateEntityActionState, updateEyesInWaterPlayer, updatePose, updateRidden, updateSwimming, wakeUp, wantsToStopRiding, xpBarCap
addPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, calculateFallDamage, canAttack, canAttack, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createWitherRose, curePotionEffects, decreaseAirSupply, determineNextAir, dropExperience, dropLoot, dropSpecialItems, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArmorCoverPercentage, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getLootContextBuilder, getLootTableResourceLocation, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidJump, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, isSleeping, isSpinAttacking, isSuppressingSlidingDownLadder, knockBack, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onDeathUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, playHurtSound, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, startSpinAttack, stopActiveHand, swing, triggerItemUseEffects, updateArmSwingProgress, updateDistance, updatePotionEffects, updateSpinAttack
addPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, calculateUpVector, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireTimer, getFlag, getForward, getHeight, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMotion, getMountedYOffset, getOnPosition, getPassengers, getPersistentData, getPitch, getPitchYaw, getPose, getPosition, getPositionUnderneath, getPositionVec, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getSelfAndPassengers, getSubmergedHeight, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isSteppingCarefully, isSuppressingBounce, isVisuallySwimming, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playStepSound, playSwimSound, positionRider, processInitialInteract, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, repositionDirectPassengers, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public FakePlayer(ServerWorld world, com.mojang.authlib.GameProfile name)
public Vec3d getPositionVector()
getPositionVector
in class Entity
public void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage
in class ServerPlayerEntity
public void sendMessage(ITextComponent component)
sendMessage
in interface ICommandSource
sendMessage
in class ServerPlayerEntity
public void addStat(Stat par1StatBase, int par2)
addStat
in class ServerPlayerEntity
public boolean isInvulnerableTo(DamageSource source)
isInvulnerableTo
in class ServerPlayerEntity
public boolean canAttackPlayer(PlayerEntity player)
canAttackPlayer
in class ServerPlayerEntity
public void onDeath(DamageSource source)
onDeath
in class ServerPlayerEntity
public void tick()
tick
in class ServerPlayerEntity
public void handleClientSettings(CClientSettingsPacket pkt)
handleClientSettings
in class ServerPlayerEntity
@Nullable public MinecraftServer getServer()