Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Animation interface {
// Play starts the animation on the given connection using the new server's GameData.
Play(conn *minecraft.Conn, serverGameData minecraft.GameData)
// Clear stops the animation previously started on the connection using the new server's GameData.
Clear(conn *minecraft.Conn, serverGameData minecraft.GameData)
}
Animation is an interface used by sessions to manage visual animations during server transfers.
type Dimension ¶
type Dimension struct{}
Dimension displays the dimension change screen to the player.
type Ease ¶
type Ease struct {
Flicker bool
Colour color.RGBA
Timing protocol.CameraFadeTimeData
Position mgl32.Vec3
Yaw float32
// contains filtered or unexported fields
}
Ease represents an easing camera animation that moves the player's camera upwards in five steps, each step moving 25 blocks and pausing for 300 milliseconds before the next movement. After the animation concludes, it smoothly returns the camera downward to the player's character.
type Fade ¶
type Fade struct {
NopAnimation
Colour color.RGBA
Timing protocol.CameraFadeTimeData
}
Fade represents a static fade animation that gradually changes the screen to a specified color. The animation's timing values for fade-in, fade-out, and wait durations must be carefully chosen, as the animation does not dynamically adjust to changes in transfer time.
type NopAnimation ¶
type NopAnimation struct{}
NopAnimation is a no-operation implementation of the Animation interface.
type Smooth ¶
type Smooth struct {
Colour color.RGBA
Timing protocol.CameraFadeTimeData
Position mgl32.Vec3
Yaw float32
// contains filtered or unexported fields
}
Smooth represents a camera animation that smoothly moves the player's camera upwards towards the sky and returns it downward to the player's character when the animation concludes.