Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicEntity ¶
type BasicEntity struct {
// contains filtered or unexported fields
}
func NewEntity ¶
func NewEntity(entityType int32) BasicEntity
func (BasicEntity) ID ¶
func (s BasicEntity) ID() uint64
func (BasicEntity) Type ¶
func (s BasicEntity) Type() int32
type ClientSettingsComponent ¶
type ConnectionComponent ¶
type FoodComponent ¶
type HealthComponent ¶
type HealthComponent struct {
Health uint8
}
type InventoryComponent ¶
type Item ¶
type Item struct { BasicEntity PositionComponent VelocityComponent Slot pk.Slot }
type Player ¶
type Player struct { BasicEntity PositionComponent SpawnPosition PositionComponent VelocityComponent RotationComponent HealthComponent FoodComponent InventoryComponent ClientSettingsComponent UUID uuid.UUID Name string GameMode uint8 HeldSlotLock sync.Mutex HeldSlot pk.Slot // item held on the cursor HeldItem uint8 // hot bar slot which is selected PaintingLock sync.RWMutex PaintingSlots []uint8 // per connection data ConnectionComponent KnownChunks ChunkSet }
type PositionComponent ¶
type RotationComponent ¶
type VelocityComponent ¶
Click to show internal directories.
Click to hide internal directories.