Class FreeCamera

  • All Implemented Interfaces:
    net.minecraft.commands.CommandSource , net.minecraft.network.syncher.SyncedDataHolder , net.minecraft.world.Nameable , net.minecraft.world.entity.Attackable , net.minecraft.world.level.entity.EntityAccess , net.minecraft.world.scores.ScoreHolder , net.neoforged.neoforge.attachment.IAttachmentHolder , net.neoforged.neoforge.common.extensions.IEntityExtension , net.neoforged.neoforge.common.extensions.ILivingEntityExtension , net.neoforged.neoforge.common.extensions.IPlayerExtension , net.neoforged.neoforge.common.util.INBTSerializable

    
    public final class FreeCamera
    extends LocalPlayer
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class FreeCamera.Companion
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit copyPosition(Entity entity)
      final Unit setPosition(Vec3 pos)
      final Unit applyPosition(FreecamPos pos)
      final Unit applyPerspective(CameraPerspective perspective, Boolean checkCollision)
      final Boolean moveForwardUntilCollision(FreecamPos position, Double distance, Boolean checkCollision)
      final Boolean moveForwardUntilCollision(FreecamPos position, Double maxDistance)
      final Unit spawn()
      final Unit despawn()
      Unit checkFallDamage(Double heightDifference, Boolean onGround, BlockState landedState, BlockPos landedPosition)
      Float getAttackAnim(Float tickDelta)
      Integer getUseItemRemainingTicks()
      Boolean isUsingItem()
      Boolean onClimbable()
      Boolean isInWater()
      MobEffectInstance getEffect(Holder<MobEffect> holder)
      PushReaction getPistonPushReaction()
      Boolean canCollideWith(Entity other)
      Unit setPose(Pose pose)
      Boolean isMovingSlowly()
      Boolean updateIsUnderwater()
      Unit doWaterSplashEffect()
      Unit aiStep()
      • Methods inherited from class net.minecraft.client.player.LocalPlayer

        actuallyHurt, canAutoJump, canSpawnSprintParticle, canStartSprinting, clientSideCloseContainer, closeContainer, crit, displayClientMessage, drop, getActivePortalLocalTransition, getCurrentMood, getDoLimitedCrafting, getJumpRidingScale, getPermissionLevel, getRecipeBook, getRopeHoldPosition, getStats, getUsedItemHand, getViewXRot, getViewYRot, getVisualRotationYInDegrees, getWaterVision, handleConfusionTransitionEffect, handleEntityEvent, hasEnoughFoodToStartSprinting, hasEnoughImpulseToStartSprinting, heal, hurt, hurtTo, isAutoJumpEnabled, isControlledCamera, isCrouching, isEffectiveAi, isHandsBusy, isHorizontalCollisionMinor, isLocalPlayer, isMoving, isShiftKeyDown, isSuppressingSlidingDownLadder, isTextFilteringEnabled, isUnderWater, jumpableVehicle, magicCrit, move, moveTowardsClosestSpace, onGameModeChanged, onSyncedDataUpdated, onUpdateAbilities, openCommandBlock, openItemGui, openJigsawBlock, openMinecartCommandBlock, openStructureBlock, openTextEdit, playNotifySound, playSound, removeEffectNoUpdate, removeRecipeHighlight, removeVehicle, resetPos, respawn, rideTick, sendIsSprintingIfNeeded, sendOpenInventory, sendPosition, sendRidingJump, sendSystemMessage, serverAiStep, setDoLimitedCrafting, setExperienceValues, setPermissionLevel, setShowDeathScreen, shouldShowDeathScreen, startRiding, startUsingItem, stopUsingItem, suffocatesAt, swing, tick, tickDeath, updateAutoJump, updateTutorialInventoryAction, vehicleCanSprint
      • Methods inherited from class net.minecraft.client.player.AbstractClientPlayer

        getDeltaMovementLerped, getFieldOfViewModifier, getPlayerInfo, getSkin, isCreative, isSpectator
      • Methods inherited from class net.minecraft.world.entity.player.Player

        addAdditionalSaveData, addItem, animateHurt, attack, awardRecipes, awardRecipesByKey, awardStat, awardStat, awardStat, awardStat, blockActionRestricted, blockInteractionRange, blockUsingShield, canBeHitByProjectile, canBeSeenAsEnemy, canEat, canFallAtLeast, canHarmPlayer, canInteractWithBlock, canInteractWithEntity, canInteractWithEntity, canPlayerFitWithinBlocksAndEntitiesWhen, canSprint, canTakeItem, canUseGameMasterBlocks, canUseSlot, causeFallDamage, causeFoodExhaustion, createItemCooldowns, decorateDisplayNameComponent, defineSynchedData, destroyVanishingCursedItems, die, disableShield, doAutoAttackOnTouch, doCloseContainer, doesEmitEquipEvent, drop, drop, dropEquipment, eat, entityInteractionRange, freeAt, getAbilities, getAbsorptionAmount, getArmorSlots, getAttackStrengthScale, getBaseExperienceReward, getBlockSpeedFactor, getCooldowns, getCurrentItemAttackStrengthDelay, getDeathSound, getDefaultDimensions, getDestroySpeed, getDigSpeed, getDimensionChangingDelay, getDismountPoses, getDisplayName, getEnchantedDamage, getEnchantmentSeed, getEnderChestInventory, getFallSounds, getFireImmuneTicks, getFlyingSpeed, getFoodData, getForcedPose, getGameProfile, getHandSlots, getHurtDir, getHurtSound, getInventory, getItemBySlot, getLastDeathLocation, getLuck, getMainArm, getMaxHeadRotationRelativeToBody, getMovementEmission, getName, getPrefixes, getProjectile, getScore, getScoreboard, getScoreboardName, getShoulderEntityLeft, getShoulderEntityRight, getSleepTimer, getSlot, getSoundSource, getSpeed, getSuffixes, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getWardenSpawnTracker, getWeaponItem, getXpNeededForNextLevel, giveExperienceLevels, giveExperiencePoints, hasContainerOpen, hasCorrectToolForDrops, hasCorrectToolForDrops, hasInfiniteMaterials, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseScore, interactOn, internalSetAbsorptionAmount, isAboveGround, isAffectedByFluids, isAlwaysExperienceDropper, isAlwaysTicking, isHurt, isIgnoringFallDamageFromCurrentImpulse, isImmobile, isInvulnerableTo, isModelPartShown, isPushedByFluid, isReducedDebugInfo, isScoping, isSecondaryUseActive, isSleepingLongEnough, isStayingOnGroundSurface, isSwimming, jumpFromGround, killedEntity, makeStuckInBlock, mayBuild, mayUseItemAt, maybeBackOffFromEdge, moveCloak, onEnchantmentPerformed, openHorseInventory, openMenu, playShoulderEntityAmbientSound, playStepSound, readAdditionalSaveData, refreshDisplayName, remove, removeEntitiesOnShoulder, resetAttackStrengthTicker, resetCurrentImpulseContext, resetRecipes, resetStat, respawnEntityOnShoulder, sendMerchantOffers, setEntityOnShoulder, setForcedPose, setIgnoreFallDamageFromCurrentImpulse, setItemSlot, setLastDeathLocation, setMainArm, setReducedDebugInfo, setRemainingFireTicks, setScore, setShoulderEntityLeft, setShoulderEntityRight, shouldBeSaved, shouldShowName, startAutoSpinAttack, startFallFlying, startSleepInBed, stopFallFlying, stopSleepInBed, stopSleeping, sweepAttack, touch, travel, triggerRecipeCrafted, tryResetCurrentImpulseContext, tryToStartFallFlying, turtleHelmetTick, updatePlayerPose, updateSwimming, wantsToStopRiding
      • Methods inherited from class net.minecraft.world.entity.LivingEntity

        activeLocationDependentEnchantments, addEatEffect, addEffect, addEffect, attackable, baseTick, blockedByShield, brainProvider, breakItem, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canAttackType, canBeAffected, canBeSeenByAnyone, canBreatheUnderwater, canDisableShield, canFreeze, canStandOnFluid, canUsePortal, checkAutoSpinAttack, checkBedExists, checkTotemDeathProtection, clearSleepingPos, collectEquipmentChanges, completeUsingItem, createWitherRose, decreaseAirSupply, detectEquipmentUpdates, dismountVehicle, doHurtEquipment, doHurtTarget, doPush, dropAllDeathLoot, dropCustomDeathLoot, dropExperience, dropFromLootTable, eat, equipmentHasChanged, forceAddEffect, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorAndBodyArmorSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttribute, getAttributeBaseValue, getAttributeValue, getAttributes, getBedOrientation, getBoundingBoxForCulling, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultGravity, getDimensions, getDrinkingSound, getEatingSound, getEquipmentSlotForItem, getExperienceReward, getFallDamageSound, getFallFlyingTicks, getFluidFallingAdjustedMovement, getFrictionInfluencedSpeed, getHealth, getHitbox, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastArmorItem, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHandItem, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getLootTable, getLootTableSeed, getMainHandItem, getMaxAbsorption, getMaxFallDistance, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSoundVolume, getStingerCount, getSwimAmount, getTicksUsingItem, getUseItem, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleEquipmentChanges, handleHandSwap, handleOnClimbable, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, igniteForTicks, increaseAirSupply, indicateDamage, isAffectedByPotions, isAlive, isAutoSpinAttack, isBaby, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInWall, isInvertedHealAndHarm, isPickable, isPushable, isSensitiveToWater, isSleeping, isVisuallySwimming, jumpInLiquid, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makePoofParticles, makeSound, maxUpStep, onAttributeUpdated, onBelowWorld, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, playHurtSound, push, pushEntities, randomTeleport, recreateFromPacket, refreshDirtyAttributes, releaseUsingItem, removeAllEffects, removeEffect, removeEffectParticles, removeEffectsCuredBy, removeFrost, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastArmorItem, setLastHandItem, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setPosToBed, setRecordPlayingNearby, setSleepingPos, setSpeed, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, shouldTriggerItemUseEffects, skipDropExperience, spawnItemParticles, startSleeping, stopRiding, swapHandItems, swing, take, tickEffects, tickHeadTurn, tickRidden, trapdoorUsableAsLadder, travelRidden, triggerItemUseEffects, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateGlowingStatus, updateInvisibilityStatus, updateSwimAmount, updateSwingTime, updateSynchronizedMobEffectParticles, updateUsingItem, updateWalkAnimation, updatingUsingItem, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPose
      • Methods inherited from class net.minecraft.world.entity.Entity

        absMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyGravity, applyPistonMovementRestriction, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canControlVehicle, canRide, canTrample, captureDrops, captureDrops, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collide, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountTo, dismountsUnderwater, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCommandSenderWorld, getControlledVehicle, getControllingPassenger, getCustomName, getDeltaMovement, getDirection, getDismountLocationForPassenger, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getIndirectPassengersStream, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerAttachmentPoint, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPickResult, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRotationVector, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUUID, getUpVector, getVehicle, getVehicleAttachmentPoint, getViewVector, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, hashCode, igniteForSeconds, ignoreExplosion, interact, interactAt, is, isAddedToLevel, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFree, isFreezing, isFullyFrozen, isIgnoringBlockTriggers, isInBubbleColumn, isInFluidType, isInFluidType, isInLava, isInLiquid, isInRain, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isInvisible, isInvisibleTo, isInvulnerable, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isSilent, isSprinting, isStateClimbable, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isVehicle, isVisuallyCrawling, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, markHurt, mayInteract, mirror, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, onlyOpCanSetNbt, pick, placePortalTicket, playAmethystStepSound, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playMuffledStepSound, playSound, playSwimSound, playerTouch, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPosRaw, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setXRot, setYRot, shouldBlockExplode, shouldInformAdmins, shouldPlayAmethystStepSound, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportPassengers, teleportRelative, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidOnEyes, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, vibrationAndSoundEffectsFromBlock, walkingStepSound, waterSwimSound
      • Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

        deserializeAttachments, getAttachmentMap, getData, getExistingDataOrNull, getExposedHolder, hasAttachments, hasData, removeData, serializeAttachments, validateAttachmentType
      • Methods inherited from class net.neoforged.neoforge.attachment.IAttachmentHolder

        getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
      • Methods inherited from class net.minecraft.commands.CommandSource

        alwaysAccepts
      • Methods inherited from class net.minecraft.world.scores.ScoreHolder

        getFeedbackDisplayName
      • Methods inherited from class net.neoforged.neoforge.common.extensions.IEntityExtension

        canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, copyAttachmentsFrom, deserializeNBT, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, sendPairingData, serializeNBT, shouldRiderSit
      • Methods inherited from class net.neoforged.neoforge.common.extensions.ILivingEntityExtension

        canDrownInFluidType, jumpInFluid, moveInFluid, onDamageTaken, self, sinkInFluid
      • Methods inherited from class net.neoforged.neoforge.common.extensions.IPlayerExtension

        isCloseEnough, isFakePlayer, mayFly, openMenu, openMenu
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait