Documentation
¶
Index ¶
- type AcknowledgeBlockChange
- type AwardStatistics
- type BlockAction
- type BlockEntityData
- type BlockUpdate
- type BossBar
- type BossBarActionAdd
- type BossBarActionRemove
- type BossBarActionUpdateFlags
- type BossBarActionUpdateHealth
- type BossBarActionUpdateStyle
- type BossBarActionUpdateTitle
- type ChangeDifficulty
- type ChatSuggestions
- type ChunkDataAndUpdateLight
- type ClearTitles
- type CloseContainer
- type CombatDeath
- type CommandSuggestionsMatch
- type CommandSuggestionsResponse
- type Commands
- type DeleteMessage
- type Disconnect
- type DisguisedChatMessage
- type DisplayObjective
- type EndCombat
- type EnterCombat
- type EntityAnimation
- type EntityEffect
- type EntityEvent
- type EntitySoundEffect
- type Explosion
- type FeatureFlags
- type GameEvent
- type Icon
- type InitializeWorldBorder
- type KeepAlive
- type LinkEntities
- type Login
- type LookAt
- type MapData
- type MerchantOffers
- type MoveVehicle
- type OpenBook
- type OpenHorseScreen
- type OpenSignEditor
- type OpenWindow
- type Particle
- type PickupItem
- type Ping
- type PlaceGhostRecipe
- type PlayerAbilities
- type PlayerChatMessage
- type PlayerInfoMask
- type PlayerInfoRemove
- type PlayerInfoUpdate
- type PlayerInfoUpdatePlayersData
- type PluginMessage
- type PreviousMessage
- type RemoveEntities
- type RemoveEntityEffect
- type ResourcePack
- type Respawn
- type SelectAdvancementTab
- type ServerData
- type SetActionBarText
- type SetBlockDestroyStage
- type SetBorderCenter
- type SetBorderLerpSize
- type SetBorderSize
- type SetBorderWarningDelay
- type SetBorderWarningDistance
- type SetCamera
- type SetCenterChunk
- type SetContainerContent
- type SetContainerProperty
- type SetContainerSlot
- type SetCooldown
- type SetDefaultSpawnPosition
- type SetEntityMetadata
- type SetEntityVelocity
- type SetEquipment
- type SetExperience
- type SetHeadRotation
- type SetHealth
- type SetHeldItem
- type SetPassengers
- type SetRenderDistance
- type SetSimulationDistance
- type SetSubtitleText
- type SetTabListHeaderAndFooter
- type SetTitleAnimationTimes
- type SetTitleText
- type SoundEffect
- type SpawnEntity
- type SpawnExperienceOrb
- type SpawnPlayer
- type StopSound
- type SynchronizePlayerPosition
- type SystemChatMessage
- type TagQueryResponse
- type TeleportEntity
- type Trade
- type UnloadChunk
- type UpdateAdvancements
- type UpdateAttributes
- type UpdateEntityPosition
- type UpdateEntityPositionAndRotation
- type UpdateEntityRotation
- type UpdateLight
- type UpdateObjectives
- type UpdateRecipeBook
- type UpdateRecipes
- type UpdateScore
- type UpdateSectionBlocks
- type UpdateTags
- type UpdateTeams
- type UpdateTime
- type WorldEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcknowledgeBlockChange ¶
type AwardStatistics ¶
type AwardStatistics struct {
Count primitive.VarInt
Statistics common.AwardStatistics
}
type BlockAction ¶
type BlockEntityData ¶
type BlockUpdate ¶
type BlockUpdate struct {
Location common.BlockPosition
BlockID primitive.VarInt
}
type BossBar ¶
type BossBar struct {
UUID uuid.UUID
Action primitive.VarInt // TODO: Enum
Add *BossBarActionAdd
Remove *BossBarActionRemove
UpdateHealth *BossBarActionUpdateHealth
UpdateTitle *BossBarActionUpdateTitle
UpdateStyle *BossBarActionUpdateStyle
UpdateFlags *BossBarActionUpdateFlags
}
type BossBarActionAdd ¶
type BossBarActionRemove ¶
type BossBarActionRemove struct{}
type BossBarActionUpdateFlags ¶
type BossBarActionUpdateFlags struct {
Flags uint8 // TODO: Enum
}
type BossBarActionUpdateHealth ¶
type BossBarActionUpdateHealth struct {
Health float32
}
type ChangeDifficulty ¶
type ChatSuggestions ¶
type ChunkDataAndUpdateLight ¶
type ChunkDataAndUpdateLight struct {
ChunkX int32
ChunkZ int32
Heightmaps nbt.NBT
Size primitive.VarInt
Data []common.ChunkSection
NumOfBlockEntities primitive.VarInt
BlockEntities []common.BlockEntity
TrustEdges bool
SkyLightMask primitive.BitSet
BlockLightMask primitive.BitSet
EmptySkyLightMask primitive.BitSet
EmptyBlockLightMask primitive.BitSet
SkyLightArrayCount primitive.VarInt
SkyLightArrays []common.SkyLightArray
BlockLightArrayCount primitive.VarInt
BlockLightArrays []common.BlockLightArray
}
type ClearTitles ¶
type ClearTitles struct {
Reset bool
}
type CloseContainer ¶
type CloseContainer struct {
WindowID uint8
}
type CombatDeath ¶
type CommandSuggestionsMatch ¶
type DeleteMessage ¶
type Disconnect ¶
type DisguisedChatMessage ¶
type DisplayObjective ¶
type DisplayObjective struct {
Position common.BlockPosition
Angle float32
}
type EndCombat ¶
EndCombat "Unused by the Notchian client. This data was once used for twitch.tv metadata circa 1.8.f"
type EnterCombat ¶
type EnterCombat struct{}
EnterCombat "Unused by the Notchian client. This data was once used for twitch.tv metadata circa 1.8.f"
type EntityAnimation ¶
type EntityEffect ¶
type EntityEvent ¶
type EntitySoundEffect ¶
type FeatureFlags ¶
type FeatureFlags struct {
TotalFeatures primitive.VarInt
FeatureFlags []primitive.Identifier
}
type InitializeWorldBorder ¶
type LinkEntities ¶
type Login ¶
type Login struct {
EntityID int32
IsHardcore bool
GameMode uint8 // TODO: Enum GameMode
PreviousGameMode uint8 // TODO: Enum GameMode
DimensionCount primitive.VarInt
DimensionNames []primitive.Identifier
RegistryCodec nbt.NBT
DimensionType primitive.Identifier
DimensionName primitive.Identifier
HashedSeed int64
MaxPlayers primitive.VarInt
ViewDistance primitive.VarInt
SimulationDistance primitive.VarInt
ReducedDebugInfo bool
EnableRespawnScreen bool
IsDebug bool
IsFlat bool
HasDeathLocation bool
DeathDimension *primitive.Identifier
DeathLocation *common.BlockPosition
PortalCooldown primitive.VarInt
}
type MerchantOffers ¶
type MoveVehicle ¶
type OpenHorseScreen ¶
type OpenSignEditor ¶
type OpenSignEditor struct {
Location common.BlockPosition
}
type OpenWindow ¶
type PickupItem ¶
type PlaceGhostRecipe ¶
type PlaceGhostRecipe struct {
WindowID byte
RecipeID primitive.Identifier
}
type PlayerAbilities ¶
type PlayerChatMessage ¶
type PlayerChatMessage struct {
Sender uuid.UUID
Index primitive.VarInt
MessageSignaturePresent bool
MessageSignature []byte
Message string
Timestamp int64
Salt int64
TotalPreviousMessages primitive.VarInt
PreviousMessages []PreviousMessage
UnsignedContentPresent bool
UnsignedContent *common.Chat
FilterType primitive.VarInt // TODO: Enum
FilterTypeBits *primitive.BitSet
ChatType primitive.VarInt // TODO: Enum
NetworkName common.Chat
IsNetworkTargetNamePresent bool
NetworkTargetName *common.Chat
}
type PlayerInfoMask ¶ added in v1.0.22
type PlayerInfoMask = uint8
const ( PlayerInfoMaskAddPlayer PlayerInfoMask = 0x01 PlayerInfoMaskInitializeChannel PlayerInfoMask = 0x02 PlayerInfoMaskUpdateGameMode PlayerInfoMask = 0x04 PlayerInfoMaskUpdateListed PlayerInfoMask = 0x08 PlayerInfoMaskUpdateLatency PlayerInfoMask = 0x10 PlayerInfoMaskUpdateDisplayName PlayerInfoMask = 0x20 )
type PlayerInfoRemove ¶
type PlayerInfoUpdate ¶
type PlayerInfoUpdate struct {
Actions PlayerInfoMask
NumOfPlayers primitive.VarInt
Players PlayerInfoUpdatePlayersData
}
type PlayerInfoUpdatePlayersData ¶ added in v1.0.22
type PlayerInfoUpdatePlayersData struct {
UUID uuid.UUID
PlayerActions []common.PlayerInfoAction
}
type PluginMessage ¶
type PluginMessage struct {
Channel primitive.Identifier
Data []byte
}
type PreviousMessage ¶
type RemoveEntities ¶
type RemoveEntityEffect ¶
type ResourcePack ¶
type Respawn ¶
type Respawn struct {
DimensionType primitive.Identifier
DimensionName primitive.Identifier
HashedSeed int64
GameMode uint8 // TODO: Enum GameMode
PreviousGameMode byte
IsDebug bool
IsFlat bool
CopyMetadata bool
HasDeathLocation bool
DeathDimensionName *primitive.Identifier
DeathLocation *common.BlockPosition
}
type SelectAdvancementTab ¶
type SelectAdvancementTab struct {
HasID bool
ID *primitive.Identifier
}
type ServerData ¶
type SetActionBarText ¶
type SetBlockDestroyStage ¶
type SetBlockDestroyStage struct {
EntityID primitive.VarInt
Location common.BlockPosition
Stage byte // TODO: Enum
}
type SetBorderCenter ¶
type SetBorderLerpSize ¶
type SetBorderSize ¶
type SetBorderSize struct {
Diameter float64
}
type SetBorderWarningDelay ¶
type SetCenterChunk ¶
type SetContainerContent ¶
type SetContainerProperty ¶
type SetContainerSlot ¶
type SetDefaultSpawnPosition ¶
type SetDefaultSpawnPosition struct {
Location common.BlockPosition
Angle float32
}
type SetEntityMetadata ¶
type SetEntityVelocity ¶
type SetEquipment ¶
type SetExperience ¶
type SetHeadRotation ¶
type SetHeldItem ¶
type SetHeldItem struct {
Slot byte
}
type SetPassengers ¶
type SetRenderDistance ¶
type SetSimulationDistance ¶
type SetSubtitleText ¶
type SetTabListHeaderAndFooter ¶
type SetTabListHeaderAndFooter struct {
}
type SetTitleAnimationTimes ¶
type SetTitleText ¶
type SoundEffect ¶
type SpawnEntity ¶
type SpawnExperienceOrb ¶
type SpawnPlayer ¶
type StopSound ¶
type StopSound struct {
Flags byte
Source *primitive.VarInt // TODO: Enum
Sound *primitive.Identifier
}
type SystemChatMessage ¶
type TeleportEntity ¶
type UnloadChunk ¶
type UpdateAdvancements ¶
type UpdateAttributes ¶
type UpdateEntityPosition ¶
type UpdateEntityRotation ¶
type UpdateLight ¶
type UpdateLight struct {
ChunkX primitive.VarInt
ChunkZ primitive.VarInt
TrustEdges bool
SkyLightMask primitive.BitSet
BlockLightMask primitive.BitSet
EmptySkyLightMask primitive.BitSet
EmptyBlockLightMask primitive.BitSet
SkyLightArrayCount primitive.VarInt
SkyLightArrays []common.SkyLightArray
BlockLightArrayCount primitive.VarInt
BlockLightArrays []common.BlockLightArray
}
type UpdateObjectives ¶
type UpdateRecipeBook ¶
type UpdateRecipeBook struct {
Action primitive.VarInt // TODO: Enum
CraftingBookOpen bool
CraftingBookFilterActive bool
SmeltingBookOpen bool
SmeltingBookFilterActive bool
BlastFurnaceBookOpen bool
BlastFurnaceBookFilterActive bool
SmokerBookOpen bool
SmokerBookFilterActive bool
RecipeIDSize1 primitive.VarInt
RecipeIDs1 []primitive.Identifier
RecipeIDSize2 primitive.VarInt
RecipeIDs2 []primitive.Identifier
}
type UpdateRecipes ¶
type UpdateScore ¶
type UpdateSectionBlocks ¶
type UpdateTags ¶
type UpdateTeams ¶
type UpdateTime ¶
type WorldEvent ¶
type WorldEvent struct {
Event int32
Location common.BlockPosition
Data int32 // TODO: Enum
DisableRelativeVolume bool
}
Click to show internal directories.
Click to hide internal directories.