diff options
Diffstat (limited to 'classic/ext_block_definitions.go')
| -rw-r--r-- | classic/ext_block_definitions.go | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/classic/ext_block_definitions.go b/classic/ext_block_definitions.go new file mode 100644 index 0000000..a4f996c --- /dev/null +++ b/classic/ext_block_definitions.go @@ -0,0 +1,84 @@ +package classic + +const ( + WalkThrough = iota + SwimThrough + Solid + PartiallySlippery + FullySlippery + Water + Lava + Rope +) + +const ( + NoSound = iota + WoodSound + GravelSound + GrassSound + StoneSound + MetalSound + GlassSound + WoolSound + SandSound + SnowSound +) + +const ( + Opaque = iota + TransparentGlass + TransparentLeaves + Translucent + Invisible +) + +type DefineBlock struct { + BlockId byte + Name String + Solidity byte + MovementSpeed byte + TopTextureId byte + SideTextureId byte + BottomTextureId byte + TransmitsLight byte + WalkSound byte + FullBright byte + Shape byte + BlockDraw byte + FogDensity byte + FogColor [3]byte +} +func (p *DefineBlock) PacketId() byte { + return 0x23 +} + +type RemoveBlockDefinition struct { + BlockId byte +} +func (p *RemoveBlockDefinition) PacketId() byte { + return 0x24 +} + +type DefineBlockExt struct { + BlockId byte + Name String + Solidity byte + MovementSpeed byte + TopTextureId byte + LeftTextureId byte + RightTextureId byte + FrontTextureId byte + BackTextureId byte + BottomTextureId byte + TransmitsLight byte + WalkSound byte + FullBright byte + Min [3]byte + Max [3]byte + BlockDraw byte + FogDensity byte + FogColor [3]byte +} +func (p *DefineBlockExt) PacketId() byte { + return 0x25 +} |
