Package-level declarations

Types

Link copied to clipboard

Fake Player Command

Link copied to clipboard
open class FakePlayer(level: ClientLevel, gameProfile: GameProfile, var onRemoval: Consumer<in FakePlayer>? = null) : RemotePlayer, MinecraftShortcuts

This class represents a Fake Player implementing attackability and assured totem pops instead of death into RemotePlayer.

Link copied to clipboard
class MovingFakePlayer @JvmOverloads constructor(snapshots: PosPoseSnapshot, level: ClientLevel, gameProfile: GameProfile, onRemoval: Consumer<in FakePlayer>? = null) : FakePlayer

A special FakePlayer that moves following a recorded path of PosPoseSnapshot.

Link copied to clipboard
data class PosPoseSnapshot(val x: Double, val y: Double, val z: Double, val lastX: Double, val lastY: Double, val lastZ: Double, val handSwinging: Boolean, val handSwingTicks: Int, val handSwingProgress: Float, val yaw: Float, val lastYaw: Float, val pitch: Float, val lastPitch: Float, val bodyYaw: Float, val lastBodyYaw: Float, val headYaw: Float, val lastHeadYaw: Float, val pose: Pose, val preferredHand: InteractionHand, val inventory: Inventory, val limbPos: Float) : Record

Functions

Link copied to clipboard
fun fromPlayer(entity: AbstractClientPlayer): PosPoseSnapshot
Link copied to clipboard
fun fromPlayerMotion(entity: AbstractClientPlayer): PosPoseSnapshot