Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassicEntity ¶
type ClassicEntity struct { AirSupply int32 AllowAlpha bool AnimStep float32 AnimStepO float32 AttackTime int32 Bb map[string]float32 // mapping same as original AABB class. map keys range from x0 to z1 BbHeight float32 BbWidth float32 BobStrength float32 Collision bool Dead bool DeathScore int32 DeathTime int32 FallDistance float32 FootSize float32 HasHair bool Health int32 HeightOffset float32 HorizontalCollision bool Hovered bool HurtDir float32 HurtDuration int32 HurtTime int32 InvulnerableDuration int32 InvulnerableTime int32 LastHealth int32 MakeStepSound bool ModelName string NoPhysics bool ORun float32 OTilt float32 OnGround bool Pushthrough float32 Removed bool RenderOffset float32 Rot float32 RotA float32 RotOffs float32 Run float32 Slide bool Speed float32 TextureId int32 TextureName string TickCount int32 Tilt float32 TimeOffs float32 WalkDist float32 WalkDistO float32 X float32 // x position XOld float32 // x position old (unused) XRot float32 // yaw XRotO float32 Xd float32 // motion x Xo float32 Y float32 // y position YBodyRot float32 YBodyRotO float32 YOld float32 // y position old (unused) YRot float32 // pitch YRotO float32 YSlideOffset float32 Yd float32 // motion y Yo float32 Z float32 // z position ZOld float32 // z position old (unused) Zd float32 // motion z Zo float32 }
func (ClassicEntity) ToString ¶
func (player ClassicEntity) ToString() string
type ClassicParser ¶
type ClassicParser struct{}
func (*ClassicParser) ParseBytes ¶ added in v0.2.0
func (cp *ClassicParser) ParseBytes(bytes []byte) (*ClassicWorld, error)
func (*ClassicParser) ParseFile ¶ added in v0.2.0
func (cp *ClassicParser) ParseFile(filepath string) (*ClassicWorld, error)
type ClassicPlayer ¶
type ClassicPlayer struct { ClassicEntity Arrows int32 Bob float32 Inventory map[string]any // map[string]any{"slots": []int32, "selected": int32, "count": []int32} OBob float32 Score int32 UserType int8 }
func (ClassicPlayer) ToString ¶
func (player ClassicPlayer) ToString() string
type ClassicWorld ¶
type ClassicWorld struct { Blocks []int8 CloudColor int32 CreateTime int64 CreativeMode bool Creator string Depth int32 Entities []ClassicEntity FogColor int32 GrowTrees bool Height int32 Name string Player ClassicPlayer RotSpawn float32 SkyColor int32 WaterLevel int32 Width int32 XSpawn int32 YSpawn int32 ZSpawn int32 }
func (*ClassicWorld) GetWaterLevel ¶
func (world *ClassicWorld) GetWaterLevel() float32
Returns the water level of the world as a float32
func (*ClassicWorld) GetWorldSpawn ¶
func (world *ClassicWorld) GetWorldSpawn() (int32, int32, int32)
func (ClassicWorld) ToString ¶
func (player ClassicWorld) ToString() string
Click to show internal directories.
Click to hide internal directories.