public class FakePlayer extends ServerPlayerEntity
PlayerEntity.SleepResultconnection, currentWindowId, interactionManager, isChangingQuantityOnly, ping, queuedEndExit, serverabilities, 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, xpSeedactiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, 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, randomYawVelocity, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, 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, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldfield_213139_a_| 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, clearElytraFlying, clearInvulnerableDimensionChange, closeContainer, closeScreen, copyFrom, createCooldownTracker, createSpawnPacket, decrementTimeUntilPortal, disconnect, dropItem, frostWalk, func_195394_a, func_195399_b, func_213818_a, func_213823_a, getAdvancements, getChatVisibility, getLastActiveTime, getManagedSectionPos, getNextWindowId, getPermissionLevel, getPlayerIP, getRecipeBook, getServerWorld, getSpectatingEntity, getStats, getTabListDisplayName, giveExperiencePoints, handleFalling, hasDisconnected, isCreative, isInvulnerableDimensionChange, isSpectatedByPlayer, isSpectator, loadResourcePack, lookAt, lookAt, markPlayerActive, onChangedPotionEffect, onCriticalHit, onEnchant, onEnchantmentCritical, onFinishedPotionEffect, onInsideBlock, onItemPickup, onItemUseFinish, onNewPotionEffect, openBook, openCommandBlock, openContainer, openHorseInventory, openSignEditor, playerTick, readAdditional, removeEntity, resetRecipes, sendAllContents, sendChunkLoad, sendChunkUnload, sendContainerToPlayer, sendEndCombat, sendEnterCombat, sendMessage, sendPlayerAbilities, sendSlotContents, sendWindowProperty, setElytraFlying, setEntityActionState, setGameType, setManagedSectionPos, setPlayerHealthUpdated, setPositionAndUpdate, setSpectatingEntity, startRiding, stopRiding, swingArm, takeStat, teleport, trySleep, unlockRecipes, unlockRecipes, updateFallState, updateHeldItem, updatePotionMetadata, wakeUpPlayer, writeAdditionaladdExhaustion, addItemStackToInventory, addMovementStat, addScore, addShoulderEntity, addStat, addStat, addStat, blockUsingShield, canEat, canHarvestBlock, canPlayerEdit, canTriggerWalking, canUseCommandBlock, damageArmor, damageEntity, damageShield, destroyVanishingCursedItems, disableShield, doWaterSplashEffect, dropInventory, dropItem, dropItem, fall, findAmmo, func_213365_e, func_213822_a, func_213826_a, func_223729_a, 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, getSplashSound, getStandingEyeHeight, getSuffixes, getSwimSound, getUUID, getWorldScoreboard, getXPSeed, getYOffset, handleStatusUpdate, hasReducedDebug, interactOn, isAllowEdit, isInvisibleToPlayer, isMovementBlocked, isNormalCube, isPlayer, isPlayerFullyAsleep, isPushedByWater, isSpawnForced, isSpawnForced, isSwimming, isUser, isWearing, jump, livingTick, onFoodEaten, onKillEntity, openMinecartCommandBlock, openStructureBlock, playSound, preparePlayerToSpawn, registerAttributes, registerData, remove, replaceItemInInventory, resetCooldown, respawnPlayer, setAbsorptionAmount, setItemStackToSlot, setLeftShoulderEntity, setMotionMultiplier, setPrimaryHand, setReducedDebug, setRightShoulderEntity, setScore, setSpawnDimenion, setSpawnPoint, setSpawnPoint, shouldHeal, spawnShoulderEntities, spawnSweepParticles, spinAttack, startSleeping, travel, updateEntityActionState, updateEyesInWaterPlayer, updatePose, updateRidden, updateSwimming, wakeUp, xpBarCapaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attackEntityAsMob, attemptTeleport, baseTick, canAttack, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, createBrain, curePotionEffects, decreaseAirSupply, determineNextAir, dismountEntity, dropLoot, dropSpecialItems, func_213314_bj, func_213343_cS, func_213344_a, func_213346_cF, func_213363_a, func_213371_e, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBlockState, getBrain, getCombatTracker, getCreatureAttribute, getDrinkSound, getEatSound, getEyeHeight, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidJump, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isAlive, isChild, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isOnLadder, isPotionActive, isPotionApplicable, isServerWorld, isSleeping, isSpinAttacking, knockBack, markPotionsDirty, markVelocityChanged, notifyDataManagerChange, onDeathUpdate, onKillCommand, outOfWorld, performHurtAnimation, playEquipSound, playHurtSound, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, setActiveHand, setAIMoveSpeed, setArrowCountInEntity, setBedPosition, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spawnDrops, startSpinAttack, stopActiveHand, updateArmSwingProgress, updateDistance, updateItemUse, updatePotionEffects, updateSpinAttackaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, func_213286_i, func_213296_b, func_213300_bk, func_213312_b, func_213320_d, func_213324_a, func_223307_a, func_223308_g, func_223310_a, func_223314_ad, getAbsoluteMotion, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFlag, getForward, getHeight, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMirroredYaw, getMotion, getMountedYOffset, getPassengers, getPersistentData, getPitch, getPitchYaw, getPose, getPosition, getPositionVec, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getSubmergedHeight, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleSneakMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSprinting, isWet, makeFlySound, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onRemovedFromWorld, onStruckByLightning, playFlySound, playStepSound, playSwimSound, processInitialInteract, pushOutOfBlocks, read, recalculateSize, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, resetPositionToBB, revive, rotateTowards, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setNoGravity, setOnFireFromLava, setPortal, setPose, setPosition, setPositionAndRotation, setPositionNonDirty, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldRenderSneaking, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapabilitypublic FakePlayer(ServerWorld world, com.mojang.authlib.GameProfile name)
public Vec3d getPositionVector()
getPositionVector in class Entitypublic void sendStatusMessage(ITextComponent chatComponent, boolean actionBar)
sendStatusMessage in class ServerPlayerEntitypublic void sendMessage(ITextComponent component)
sendMessage in interface ICommandSourcesendMessage in class ServerPlayerEntitypublic void addStat(Stat par1StatBase, int par2)
addStat in class ServerPlayerEntitypublic boolean isInvulnerableTo(DamageSource source)
isInvulnerableTo in class ServerPlayerEntitypublic boolean canAttackPlayer(PlayerEntity player)
canAttackPlayer in class ServerPlayerEntitypublic void onDeath(DamageSource source)
onDeath in class ServerPlayerEntitypublic void tick()
tick in class ServerPlayerEntitypublic void handleClientSettings(CClientSettingsPacket pkt)
handleClientSettings in class ServerPlayerEntity@Nullable public MinecraftServer getServer()