Documentation
¶
Index ¶
- func Init()
- func NewRecorderViewer(r *Recorder) world.Viewer
- type Data
- type Entity
- type Playback
- func (w *Playback) AddParticle(tx *world.Tx, pos mgl64.Vec3, p world.Particle)
- func (w *Playback) Block(tx *world.Tx, pos cube.Pos) world.Block
- func (w *Playback) ChestState(_ *world.Tx, pos cube.Pos) bool
- func (w *Playback) Close()
- func (w *Playback) ContinueCrackBlock(tx *world.Tx, pos cube.Pos, duration time.Duration)
- func (w *Playback) DespawnEntity(tx *world.Tx, id uint32)
- func (w *Playback) DespawnPlayer(tx *world.Tx, id uint32)
- func (w *Playback) DoArrowShake(tx *world.Tx, id uint32)
- func (w *Playback) DoFireworkExplosion(tx *world.Tx, id uint32)
- func (w *Playback) DoPlayerCriticalHit(tx *world.Tx, id uint32)
- func (w *Playback) DoPlayerEating(tx *world.Tx, id uint32)
- func (w *Playback) DoPlayerEnchantedHit(tx *world.Tx, id uint32)
- func (w *Playback) DoPlayerHurt(tx *world.Tx, id uint32)
- func (w *Playback) DoPlayerSwingArm(tx *world.Tx, id uint32)
- func (w *Playback) DoPlayerTotemUse(tx *world.Tx, id uint32)
- func (w *Playback) Duration() time.Duration
- func (w *Playback) Emote(tx *world.Tx, id uint32, emoteId uuid.UUID)
- func (w *Playback) Entity(id uint32) (*Entity, bool)
- func (w *Playback) EntityExtraData(id uint32) (map[string]any, bool)
- func (w *Playback) EntityIdentifier(id uint32) (string, bool)
- func (w *Playback) EntityNameTag(tx *world.Tx, id uint32) string
- func (w *Playback) EntityPosition(tx *world.Tx, id uint32) (mgl64.Vec3, bool)
- func (w *Playback) EntityRotation(tx *world.Tx, id uint32) (cube.Rotation, bool)
- func (w *Playback) FastForward(tx *world.Tx, ticks int)
- func (w *Playback) Liquid(tx *world.Tx, pos cube.Pos) (world.Liquid, bool)
- func (w *Playback) MaxPlaybackTick() int
- func (w *Playback) MoveEntity(tx *world.Tx, id uint32, pos mgl64.Vec3, rot cube.Rotation)
- func (w *Playback) MovePlayer(tx *world.Tx, id uint32, pos mgl64.Vec3, rot cube.Rotation)
- func (w *Playback) Pause()
- func (w *Playback) Paused() bool
- func (w *Playback) Play()
- func (w *Playback) PlaySound(tx *world.Tx, pos mgl64.Vec3, s world.Sound)
- func (w *Playback) PlaybackTick() int
- func (w *Playback) Player(id uint32) (*Player, bool)
- func (w *Playback) PlayerArmourItems(tx *world.Tx, id uint32) (helmet, chestplate, leggings, boots item.Stack, ok bool)
- func (w *Playback) PlayerArmours(tx *world.Tx, id uint32) (helmet, chestplate, leggings, boots item.Stack, ok bool)
- func (w *Playback) PlayerByName(name string) (*Player, bool)
- func (w *Playback) PlayerCrawling(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerGliding(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerHeldItems(tx *world.Tx, id uint32) (mainHand, offHand item.Stack, ok bool)
- func (w *Playback) PlayerName(id uint32) string
- func (w *Playback) PlayerNameTag(tx *world.Tx, id uint32) string
- func (w *Playback) PlayerOnFire(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerPosition(tx *world.Tx, id uint32) (mgl64.Vec3, bool)
- func (w *Playback) PlayerRotation(tx *world.Tx, id uint32) (cube.Rotation, bool)
- func (w *Playback) PlayerSkin(id uint32) (skin.Skin, bool)
- func (w *Playback) PlayerSneaking(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerSprinting(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerSwimming(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerUsingItem(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerVisible(tx *world.Tx, id uint32) bool
- func (w *Playback) PlayerVisibleEffects(tx *world.Tx, id uint32) ([]int, bool)
- func (w *Playback) Players() []*Player
- func (w *Playback) Resume()
- func (w *Playback) Reversed() bool
- func (w *Playback) Rewind(tx *world.Tx, ticks int)
- func (w *Playback) SetBlock(tx *world.Tx, pos cube.Pos, b world.Block)
- func (w *Playback) SetEntityNameTag(tx *world.Tx, id uint32, nameTag string)
- func (w *Playback) SetLiquid(tx *world.Tx, pos cube.Pos, l world.Liquid)
- func (w *Playback) SetPlayerCrawling(tx *world.Tx, id uint32, crawling bool)
- func (w *Playback) SetPlayerGliding(tx *world.Tx, id uint32, gliding bool)
- func (w *Playback) SetPlayerNameTag(tx *world.Tx, id uint32, nameTag string)
- func (w *Playback) SetPlayerOnFire(tx *world.Tx, id uint32, onFire bool)
- func (w *Playback) SetPlayerSneaking(tx *world.Tx, id uint32, sneaking bool)
- func (w *Playback) SetPlayerSprinting(tx *world.Tx, id uint32, sprinting bool)
- func (w *Playback) SetPlayerSwimming(tx *world.Tx, id uint32, swimming bool)
- func (w *Playback) SetPlayerUsingItem(tx *world.Tx, id uint32, usingItem bool)
- func (w *Playback) SetPlayerVisibility(tx *world.Tx, id uint32, visible bool)
- func (w *Playback) SetPlayerVisibleEffects(tx *world.Tx, id uint32, effectIDs []int)
- func (w *Playback) SetReverse(reverse bool)
- func (w *Playback) SetSpeed(speed float64)
- func (w *Playback) SpawnEntity(tx *world.Tx, id uint32, identifier, nameTag string, pos mgl64.Vec3, ...)
- func (w *Playback) SpawnPlayer(tx *world.Tx, username, nameTag string, id uint32, pos mgl64.Vec3, ...)
- func (w *Playback) Speed() float64
- func (w *Playback) StartCrackBlock(tx *world.Tx, pos cube.Pos, duration time.Duration)
- func (w *Playback) StopCrackBlock(tx *world.Tx, pos cube.Pos)
- func (w *Playback) Tick(tx *world.Tx)
- func (w *Playback) UpdateChestState(tx *world.Tx, pos cube.Pos, open bool)
- func (w *Playback) UpdatePlayerArmor(tx *world.Tx, id uint32, helmet, chestplate, leggings, boots item.Stack)
- func (w *Playback) UpdatePlayerArmours(tx *world.Tx, id uint32, helmet, chestplate, leggings, boots item.Stack)
- func (w *Playback) UpdatePlayerHeldItems(tx *world.Tx, id uint32, mainHand item.Stack, offHand item.Stack)
- func (w *Playback) UpdatePlayerSkin(tx *world.Tx, id uint32, skin skin.Skin)
- type PlaybackPlayerHandler
- type Player
- type RecordPlayerHandler
- func (h *RecordPlayerHandler) HandleAttackEntity(ctx *player.Context, _ world.Entity, _, _ *float64, _ *bool)
- func (h *RecordPlayerHandler) HandleBlockBreak(ctx *player.Context, pos cube.Pos, _ *[]item.Stack, _ *int)
- func (h *RecordPlayerHandler) HandleBlockPlace(ctx *player.Context, pos cube.Pos, b world.Block)
- func (h *RecordPlayerHandler) HandleHeldSlotChange(ctx *player.Context, _, to int)
- func (h *RecordPlayerHandler) HandleHurt(ctx *player.Context, _ *float64, _ bool, _ *time.Duration, ...)
- func (h *RecordPlayerHandler) HandleItemConsume(ctx *player.Context, _ item.Stack)
- func (h *RecordPlayerHandler) HandleItemRelease(ctx *player.Context, _ item.Stack, _ time.Duration)
- func (h *RecordPlayerHandler) HandleItemUse(ctx *player.Context)
- func (h *RecordPlayerHandler) HandleItemUseOnBlock(ctx *player.Context, pos cube.Pos, _ cube.Face, _ mgl64.Vec3)
- func (h *RecordPlayerHandler) HandleItemUseOnEntity(ctx *player.Context, _ world.Entity)
- func (h *RecordPlayerHandler) HandleMove(ctx *player.Context, pos mgl64.Vec3, rot cube.Rotation)
- func (h *RecordPlayerHandler) HandlePunchAir(ctx *player.Context)
- func (h *RecordPlayerHandler) HandleSkinChange(ctx *player.Context, skin *skin.Skin)
- func (h *RecordPlayerHandler) HandleSwingArm(p *player.Player)
- func (h *RecordPlayerHandler) HandleTeleport(ctx *player.Context, pos mgl64.Vec3)
- func (h *RecordPlayerHandler) HandleToggleSneak(ctx *player.Context, sneaking bool)
- type RecordWorldHandler
- func (h *RecordWorldHandler) HandleCropTrample(ctx *world.Context, pos cube.Pos)
- func (h *RecordWorldHandler) HandleEntityDespawn(tx *world.Tx, e world.Entity)
- func (h *RecordWorldHandler) HandleEntitySpawn(tx *world.Tx, e world.Entity)
- func (h *RecordWorldHandler) HandleExplosion(ctx *world.Context, _ mgl64.Vec3, _ *[]world.Entity, blocks *[]cube.Pos, ...)
- func (h *RecordWorldHandler) HandleLeavesDecay(ctx *world.Context, pos cube.Pos)
- func (h *RecordWorldHandler) HandleLiquidDecay(ctx *world.Context, pos cube.Pos, before, after world.Liquid)
- func (h *RecordWorldHandler) HandleLiquidFlow(ctx *world.Context, from, into cube.Pos, liquid world.Liquid, ...)
- func (h *RecordWorldHandler) HandleLiquidHarden(ctx *world.Context, hardenedPos cube.Pos, ...)
- type Recorder
- func (r *Recorder) AddEntity(e world.Entity)
- func (r *Recorder) AddPlayer(p *player.Player)
- func (r *Recorder) CloseAndSaveActions(w io.Writer) error
- func (r *Recorder) EncodeItem(s item.Stack) action.Item
- func (r *Recorder) EntityID(e world.Entity) uint32
- func (r *Recorder) EntityIDByHandle(h *world.EntityHandle) uint32
- func (r *Recorder) Flush()
- func (r *Recorder) PlayerID(p *player.Player) uint32
- func (r *Recorder) PlayerIDByHandle(h *world.EntityHandle) uint32
- func (r *Recorder) PushAction(a action.Action)
- func (r *Recorder) PushBlockBreakParticle(pos cube.Pos, b world.Block)
- func (r *Recorder) PushBlockBreakingSound(pos cube.Pos, b world.Block)
- func (r *Recorder) PushBlockPlaceSound(pos cube.Pos, b world.Block)
- func (r *Recorder) PushBlockPunchingParticle(pos cube.Pos, b world.Block, face cube.Face)
- func (r *Recorder) PushBreakBlock(pos cube.Pos)
- func (r *Recorder) PushChestUpdate(pos cube.Pos, open bool)
- func (r *Recorder) PushContinueCrackBlock(pos cube.Pos, dur time.Duration)
- func (r *Recorder) PushEmote(p *player.Player, emote uuid.UUID)
- func (r *Recorder) PushEntityArrowShake(e world.Entity)
- func (r *Recorder) PushEntityFireworkExplosion(e world.Entity)
- func (r *Recorder) PushEntityMovement(e world.Entity, pos mgl64.Vec3, rot cube.Rotation)
- func (r *Recorder) PushGeneralParticle(pos mgl64.Vec3, p world.Particle) bool
- func (r *Recorder) PushGeneralSound(pos mgl64.Vec3, s world.Sound) bool
- func (r *Recorder) PushLiquidSound(pos cube.Pos, l world.Liquid, isFill bool)
- func (r *Recorder) PushPlaceBlock(pos cube.Pos, b world.Block)
- func (r *Recorder) PushPlayerArmorChange(p *player.Player)
- func (r *Recorder) PushPlayerCrawling(p *player.Player, crawling bool)
- func (r *Recorder) PushPlayerCriticalHit(p *player.Player)
- func (r *Recorder) PushPlayerEating(p *player.Player)
- func (r *Recorder) PushPlayerEnchantedHit(p *player.Player)
- func (r *Recorder) PushPlayerGliding(p *player.Player, gliding bool)
- func (r *Recorder) PushPlayerHandChange(p *player.Player, mainHand, offHand item.Stack)
- func (r *Recorder) PushPlayerHurt(p *player.Player)
- func (r *Recorder) PushPlayerMovement(p *player.Player, pos mgl64.Vec3, rot cube.Rotation)
- func (r *Recorder) PushPlayerOnFire(p *player.Player, onFire bool)
- func (r *Recorder) PushPlayerSetVisibleEffects(p *player.Player, effectIds []int)
- func (r *Recorder) PushPlayerSneaking(p *player.Player, sneaking bool)
- func (r *Recorder) PushPlayerSprinting(p *player.Player, sprinting bool)
- func (r *Recorder) PushPlayerSwimming(p *player.Player, swimming bool)
- func (r *Recorder) PushPlayerSwingArm(p *player.Player)
- func (r *Recorder) PushPlayerTotemUse(p *player.Player)
- func (r *Recorder) PushPlayerUsingItem(p *player.Player, usingItem bool)
- func (r *Recorder) PushPlayerVisibility(p *player.Player, visibility bool)
- func (r *Recorder) PushSetBlock(pos cube.Pos, b world.Block)
- func (r *Recorder) PushSetEntityNameTag(e world.Entity, nameTag string)
- func (r *Recorder) PushSetLiquid(pos cube.Pos, l world.Liquid)
- func (r *Recorder) PushSetPlayerNameTag(p *player.Player, nameTag string)
- func (r *Recorder) PushSkinChange(p *player.Player, sk skin.Skin)
- func (r *Recorder) PushStartCrackBlock(pos cube.Pos, dur time.Duration)
- func (r *Recorder) PushStopCrackBlock(pos cube.Pos)
- func (r *Recorder) RemoveEntity(e world.Entity)
- func (r *Recorder) RemovePlayer(p *player.Player)
- func (r *Recorder) SetPlayerSkin(p *player.Player, sk skin.Skin)
- func (r *Recorder) StartTicking(w *world.World)
- type RecorderViewer
- func (r *RecorderViewer) HideEntity(e world.Entity)
- func (r *RecorderViewer) ViewBlockAction(pos cube.Pos, a world.BlockAction)
- func (r *RecorderViewer) ViewBlockUpdate(pos cube.Pos, b world.Block, layer int)
- func (r *RecorderViewer) ViewEmote(e world.Entity, emote uuid.UUID)
- func (r *RecorderViewer) ViewEntity(e world.Entity)
- func (r *RecorderViewer) ViewEntityAction(e world.Entity, a world.EntityAction)
- func (r *RecorderViewer) ViewEntityAnimation(e world.Entity, a world.EntityAnimation)
- func (r *RecorderViewer) ViewEntityArmour(e world.Entity)
- func (r *RecorderViewer) ViewEntityGameMode(e world.Entity)
- func (r *RecorderViewer) ViewEntityItems(e world.Entity)
- func (r *RecorderViewer) ViewEntityMovement(e world.Entity, pos mgl64.Vec3, rot cube.Rotation, onGround bool)
- func (r *RecorderViewer) ViewEntityState(e world.Entity)
- func (r *RecorderViewer) ViewEntityTeleport(e world.Entity, pos mgl64.Vec3)
- func (r *RecorderViewer) ViewParticle(pos mgl64.Vec3, p world.Particle)
- func (r *RecorderViewer) ViewSkin(e world.Entity)
- func (r *RecorderViewer) ViewSound(pos mgl64.Vec3, s world.Sound)
- type WorldEntityMovementRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init()
Init should be called after items, blocks, and entities are registered. We don't use go init() because we want to control the order of initialization.
func NewRecorderViewer ¶
Types ¶
type Playback ¶
type Playback struct {
// contains filtered or unexported fields
}
Playback handles the playback of recorded actions.
func NewPlayback ¶
NewPlayback creates a new playback instance with the given world and data.
func (*Playback) AddParticle ¶
func (*Playback) Close ¶
func (w *Playback) Close()
Close stops the playback and releases resources.
func (*Playback) ContinueCrackBlock ¶
func (*Playback) DoFireworkExplosion ¶
func (*Playback) DoPlayerCriticalHit ¶
func (*Playback) DoPlayerEnchantedHit ¶
func (*Playback) Entity ¶
Entity returns an entity by its ID. If the entity does not exist, the second return value will be false.
func (*Playback) EntityExtraData ¶
func (*Playback) EntityPosition ¶
func (*Playback) EntityRotation ¶
func (*Playback) FastForward ¶
FastForward moves the playback forward by the given number of ticks.
func (*Playback) MaxPlaybackTick ¶
MaxPlaybackTick returns the maximum tick of the playback.
func (*Playback) MoveEntity ¶
func (*Playback) MovePlayer ¶
func (*Playback) PlaybackTick ¶
PlaybackTick returns the current tick of the playback.
func (*Playback) Player ¶
Player returns a player by its ID. If the player does not exist, the second return value will be false.
func (*Playback) PlayerArmourItems ¶
func (*Playback) PlayerArmours ¶
func (*Playback) PlayerByName ¶
PlayerByName returns a player by its name. If the player does not exist, the second return value will be false.
func (*Playback) PlayerHeldItems ¶
func (*Playback) PlayerName ¶
func (*Playback) PlayerOnFire ¶
PlayerOnFire returns whether the player with the given ID is on fire.
func (*Playback) PlayerPosition ¶
func (*Playback) PlayerRotation ¶
func (*Playback) PlayerVisibleEffects ¶
func (*Playback) SetEntityNameTag ¶
func (*Playback) SetPlayerCrawling ¶
func (*Playback) SetPlayerGliding ¶
func (*Playback) SetPlayerNameTag ¶
func (*Playback) SetPlayerOnFire ¶
SetPlayerOnFire sets whether the player with the given ID is on fire.
func (*Playback) SetPlayerSneaking ¶
func (*Playback) SetPlayerSprinting ¶
func (*Playback) SetPlayerSwimming ¶
func (*Playback) SetPlayerUsingItem ¶
func (*Playback) SetPlayerVisibility ¶
func (*Playback) SetPlayerVisibleEffects ¶
func (*Playback) SetReverse ¶
SetReverse sets the playback to reverse. If reverse is true, the playback will play backwards. If false, the playback will play forwards.
func (*Playback) SetSpeed ¶
SetSpeed sets the playback speed. A value of 1.0 is normal speed, values greater than 1.0 are faster, and values less than 1.0 are slower. The speed must be greater than 0.
func (*Playback) SpawnEntity ¶
func (*Playback) SpawnPlayer ¶
func (*Playback) StartCrackBlock ¶
func (*Playback) Tick ¶
Tick advances the playback by one tick, either forward or backward depending on the reverse setting.
func (*Playback) UpdateChestState ¶
func (*Playback) UpdatePlayerArmor ¶
func (*Playback) UpdatePlayerArmours ¶
func (*Playback) UpdatePlayerHeldItems ¶
type PlaybackPlayerHandler ¶
type PlaybackPlayerHandler struct {
player.NopHandler
// contains filtered or unexported fields
}
func NewPlaybackPlayerHandler ¶
func NewPlaybackPlayerHandler(w *Playback) *PlaybackPlayerHandler
NewPlaybackPlayerHandler ...
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) ExecEntity ¶
type RecordPlayerHandler ¶
type RecordPlayerHandler struct {
player.NopHandler
// contains filtered or unexported fields
}
func NewRecordPlayerHandler ¶
func NewRecordPlayerHandler(r *Recorder) *RecordPlayerHandler
func (*RecordPlayerHandler) HandleAttackEntity ¶
func (*RecordPlayerHandler) HandleBlockBreak ¶
func (*RecordPlayerHandler) HandleBlockPlace ¶
func (*RecordPlayerHandler) HandleHeldSlotChange ¶
func (h *RecordPlayerHandler) HandleHeldSlotChange(ctx *player.Context, _, to int)
func (*RecordPlayerHandler) HandleHurt ¶
func (h *RecordPlayerHandler) HandleHurt(ctx *player.Context, _ *float64, _ bool, _ *time.Duration, _ world.DamageSource)
func (*RecordPlayerHandler) HandleItemConsume ¶
func (h *RecordPlayerHandler) HandleItemConsume(ctx *player.Context, _ item.Stack)
func (*RecordPlayerHandler) HandleItemRelease ¶
func (*RecordPlayerHandler) HandleItemUse ¶
func (h *RecordPlayerHandler) HandleItemUse(ctx *player.Context)
func (*RecordPlayerHandler) HandleItemUseOnBlock ¶
func (*RecordPlayerHandler) HandleItemUseOnEntity ¶
func (h *RecordPlayerHandler) HandleItemUseOnEntity(ctx *player.Context, _ world.Entity)
func (*RecordPlayerHandler) HandleMove ¶
func (*RecordPlayerHandler) HandlePunchAir ¶
func (h *RecordPlayerHandler) HandlePunchAir(ctx *player.Context)
func (*RecordPlayerHandler) HandleSkinChange ¶
func (h *RecordPlayerHandler) HandleSkinChange(ctx *player.Context, skin *skin.Skin)
func (*RecordPlayerHandler) HandleSwingArm ¶
func (h *RecordPlayerHandler) HandleSwingArm(p *player.Player)
func (*RecordPlayerHandler) HandleTeleport ¶
func (h *RecordPlayerHandler) HandleTeleport(ctx *player.Context, pos mgl64.Vec3)
func (*RecordPlayerHandler) HandleToggleSneak ¶
func (h *RecordPlayerHandler) HandleToggleSneak(ctx *player.Context, sneaking bool)
type RecordWorldHandler ¶
type RecordWorldHandler struct {
world.NopHandler
// contains filtered or unexported fields
}
func NewRecordWorldHandler ¶
func NewRecordWorldHandler(r *Recorder) *RecordWorldHandler
func (*RecordWorldHandler) HandleCropTrample ¶
func (h *RecordWorldHandler) HandleCropTrample(ctx *world.Context, pos cube.Pos)
func (*RecordWorldHandler) HandleEntityDespawn ¶
func (h *RecordWorldHandler) HandleEntityDespawn(tx *world.Tx, e world.Entity)
func (*RecordWorldHandler) HandleEntitySpawn ¶
func (h *RecordWorldHandler) HandleEntitySpawn(tx *world.Tx, e world.Entity)
func (*RecordWorldHandler) HandleExplosion ¶
func (*RecordWorldHandler) HandleLeavesDecay ¶
func (h *RecordWorldHandler) HandleLeavesDecay(ctx *world.Context, pos cube.Pos)
func (*RecordWorldHandler) HandleLiquidDecay ¶
func (*RecordWorldHandler) HandleLiquidFlow ¶
func (*RecordWorldHandler) HandleLiquidHarden ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder ...
func NewRecorder ¶
NewRecorder creates a new recorder, returning a pointer to the recorder.
func NewRecorderWithoutEntityMovementRecording ¶
NewRecorderWithoutEntityMovementRecording creates a new recorder that does not record entity movements.
func (*Recorder) CloseAndSaveActions ¶
CloseAndSaveActions ...
func (*Recorder) EncodeItem ¶
EncodeItem ...
func (*Recorder) EntityIDByHandle ¶
func (r *Recorder) EntityIDByHandle(h *world.EntityHandle) uint32
EntityIDByHandle ...
func (*Recorder) Flush ¶
func (r *Recorder) Flush()
Flush flushes all pending actions to the buffer, writing them to the buffer.
func (*Recorder) PlayerIDByHandle ¶
func (r *Recorder) PlayerIDByHandle(h *world.EntityHandle) uint32
PlayerIDByHandle ...
func (*Recorder) PushAction ¶
PushAction pushes an action to the recorder, to be written to the buffer at a later time.
func (*Recorder) PushBlockBreakParticle ¶
PushBlockBreakParticle ...
func (*Recorder) PushBlockBreakingSound ¶
PushBlockBreakingSound ...
func (*Recorder) PushBlockPlaceSound ¶
PushBlockPlaceSound ...
func (*Recorder) PushBlockPunchingParticle ¶
PushBlockPunchingParticle ...
func (*Recorder) PushBreakBlock ¶
PushBreakBlock ...
func (*Recorder) PushChestUpdate ¶
PushChestUpdate ...
func (*Recorder) PushContinueCrackBlock ¶
PushContinueCrackBlock ...
func (*Recorder) PushEntityArrowShake ¶
PushEntityArrowShake ...
func (*Recorder) PushEntityFireworkExplosion ¶
PushEntityFireworkExplosion ...
func (*Recorder) PushEntityMovement ¶
PushEntityMovement ...
func (*Recorder) PushGeneralParticle ¶
PushGeneralParticle ...
func (*Recorder) PushGeneralSound ¶
PushGeneralSound ...
func (*Recorder) PushLiquidSound ¶
PushLiquidSound ...
func (*Recorder) PushPlaceBlock ¶
PushPlaceBlock ...
func (*Recorder) PushPlayerArmorChange ¶
PushPlayerArmorChange ...
func (*Recorder) PushPlayerCrawling ¶
PushPlayerCrawling ...
func (*Recorder) PushPlayerCriticalHit ¶
PushPlayerCriticalHit ...
func (*Recorder) PushPlayerEating ¶
PushPlayerEating ...
func (*Recorder) PushPlayerEnchantedHit ¶
PushPlayerEnchantedHit ...
func (*Recorder) PushPlayerGliding ¶
PushPlayerGliding ...
func (*Recorder) PushPlayerHandChange ¶
PushPlayerHandChange ...
func (*Recorder) PushPlayerHurt ¶
PushPlayerHurt ...
func (*Recorder) PushPlayerMovement ¶
PushPlayerMovement ...
func (*Recorder) PushPlayerOnFire ¶
PushPlayerOnFire ...
func (*Recorder) PushPlayerSetVisibleEffects ¶
PushPlayerSetVisibleEffects ...
func (*Recorder) PushPlayerSneaking ¶
PushPlayerSneaking ...
func (*Recorder) PushPlayerSprinting ¶
PushPlayerSprinting ...
func (*Recorder) PushPlayerSwimming ¶
PushPlayerSwimming ...
func (*Recorder) PushPlayerSwingArm ¶
PushPlayerSwingArm ...
func (*Recorder) PushPlayerTotemUse ¶
PushPlayerTotemUse ...
func (*Recorder) PushPlayerUsingItem ¶
PushPlayerUsingItem ...
func (*Recorder) PushPlayerVisibility ¶
PushPlayerVisibility ...
func (*Recorder) PushSetBlock ¶
PushSetBlock ...
func (*Recorder) PushSetEntityNameTag ¶
PushSetEntityNameTag ...
func (*Recorder) PushSetLiquid ¶
PushSetLiquid ...
func (*Recorder) PushSetPlayerNameTag ¶
PushSetPlayerNameTag ...
func (*Recorder) PushSkinChange ¶
PushSkinChange ...
func (*Recorder) PushStartCrackBlock ¶
PushStartCrackBlock ...
func (*Recorder) PushStopCrackBlock ¶
PushStopCrackBlock ...
func (*Recorder) SetPlayerSkin ¶
SetPlayerSkin ...
type RecorderViewer ¶
func (*RecorderViewer) HideEntity ¶
func (r *RecorderViewer) HideEntity(e world.Entity)
func (*RecorderViewer) ViewBlockAction ¶
func (r *RecorderViewer) ViewBlockAction(pos cube.Pos, a world.BlockAction)
func (*RecorderViewer) ViewBlockUpdate ¶
func (*RecorderViewer) ViewEmote ¶
func (r *RecorderViewer) ViewEmote(e world.Entity, emote uuid.UUID)
func (*RecorderViewer) ViewEntity ¶
func (r *RecorderViewer) ViewEntity(e world.Entity)
func (*RecorderViewer) ViewEntityAction ¶
func (r *RecorderViewer) ViewEntityAction(e world.Entity, a world.EntityAction)
func (*RecorderViewer) ViewEntityAnimation ¶
func (r *RecorderViewer) ViewEntityAnimation(e world.Entity, a world.EntityAnimation)
func (*RecorderViewer) ViewEntityArmour ¶
func (r *RecorderViewer) ViewEntityArmour(e world.Entity)
func (*RecorderViewer) ViewEntityGameMode ¶
func (r *RecorderViewer) ViewEntityGameMode(e world.Entity)
func (*RecorderViewer) ViewEntityItems ¶
func (r *RecorderViewer) ViewEntityItems(e world.Entity)
func (*RecorderViewer) ViewEntityMovement ¶
func (*RecorderViewer) ViewEntityState ¶
func (r *RecorderViewer) ViewEntityState(e world.Entity)
func (*RecorderViewer) ViewEntityTeleport ¶
func (r *RecorderViewer) ViewEntityTeleport(e world.Entity, pos mgl64.Vec3)
func (*RecorderViewer) ViewParticle ¶
func (r *RecorderViewer) ViewParticle(pos mgl64.Vec3, p world.Particle)
func (*RecorderViewer) ViewSkin ¶
func (r *RecorderViewer) ViewSkin(e world.Entity)
type WorldEntityMovementRecorder ¶
type WorldEntityMovementRecorder struct {
// contains filtered or unexported fields
}
func (*WorldEntityMovementRecorder) StartTicking ¶
func (r *WorldEntityMovementRecorder) StartTicking()
StartTicking ...
func (*WorldEntityMovementRecorder) Tick ¶
func (r *WorldEntityMovementRecorder) Tick(tx *world.Tx)
Tick ...