Documentation
¶
Index ¶
- Variables
- func SetDefaultAuthor(s string)
- func SetDefaultDescription(s string)
- func SetDefaultMinecraftDataVersion(v int)
- func SetDefaultVersion(v int)
- type BitArray
- type BlockState
- type Blocks
- type CompoundTag
- type Entity
- type FrameItem
- type GlowItemFrame
- type ID
- type Litematic
- type LitematicWithRawMessage
- type Metadata
- type Nbt
- type NbtWithRawMessage
- type Project
- func (p *Project) AddEntity(e Entity)
- func (p *Project) ChangeMaterial(from, to block.Block)
- func (p *Project) Contain(block BlockState) bool
- func (p *Project) Data() []int64
- func (p *Project) Encode(w io.Writer) error
- func (p *Project) GetBlock(x, y, z int) BlockState
- func (p *Project) Litematic() *Litematic
- func (p *Project) Nbt() *Nbt
- func (p *Project) Palette() []BlockState
- func (p *Project) SetBlock(x, y, z int, b block.Block)
- func (p *Project) Size() Vec3D
- func (p *Project) XRange() int
- func (p *Project) YRange() int
- func (p *Project) ZRange() int
- type Region
- type RegionWithRawMessage
- type Tag
- type Vec3D
Constants ¶
This section is empty.
Variables ¶
View Source
var Air = NewBlockState(block.Air{})
View Source
var ByID = map[string]Entity{ "minecraft:glow_item_frame": GlowItemFrame{}, }
Functions ¶
func SetDefaultAuthor ¶
func SetDefaultAuthor(s string)
func SetDefaultDescription ¶
func SetDefaultDescription(s string)
func SetDefaultMinecraftDataVersion ¶
func SetDefaultMinecraftDataVersion(v int)
func SetDefaultVersion ¶
func SetDefaultVersion(v int)
Types ¶
type BitArray ¶
type BitArray struct {
// contains filtered or unexported fields
}
func NewBitArray ¶
func NewEmptyBitArray ¶
func (*BitArray) BitsPerEntry ¶
type BlockState ¶
func NewBlockState ¶
func NewBlockState(b block.Block) BlockState
type CompoundTag ¶
type CompoundTag struct {
Name string
}
type GlowItemFrame ¶
type GlowItemFrame struct {
Air int16
Facing uint8
FallDistance float32
Fire int16
Fixed uint8
Invisible uint8
Invulnerable uint8
Item FrameItem `nbt_omitempty:"true"`
ItemDropChance float32 `nbt_omitempty:"true"`
ItemRotation uint8 `nbt_omitempty:"true"`
Motion []float64 `nbt_type:"list"`
OnGround uint8
PortalCooldown int32
Pos []float64 `nbt_type:"list"`
Rotation []float32 `nbt_type:"list"`
TileX int32
TileY int32
TileZ int32
UUID []int32 `nbt_type:"list"`
Id string `nbt:"id"`
}
func (GlowItemFrame) ID ¶
func (e GlowItemFrame) ID() string
type Litematic ¶
type LitematicWithRawMessage ¶
type LitematicWithRawMessage struct {
Metadata Metadata
MinecraftDataVersion int32
Version int32
Regions map[string]RegionWithRawMessage
}
type Nbt ¶
type NbtWithRawMessage ¶
type Project ¶
type Project struct {
MetaData Metadata
MinecraftDataVersion int32
Version int32
//Region's key
RegionName string
// contains filtered or unexported fields
}
func NewProject ¶
func (*Project) ChangeMaterial ¶
func (*Project) Contain ¶
func (p *Project) Contain(block BlockState) bool
func (*Project) GetBlock ¶
func (p *Project) GetBlock(x, y, z int) BlockState
func (*Project) Palette ¶
func (p *Project) Palette() []BlockState
type Region ¶
type Region struct {
BlockStatePalette []BlockState
TileEntities []CompoundTag
Entities []Entity
Position Vec3D
Size Vec3D
BlockStates []int64
}
type RegionWithRawMessage ¶
type RegionWithRawMessage struct {
BlockStatePalette []state
TileEntities []CompoundTag
Entities []nbt.RawMessage
Position Vec3D
Size Vec3D
BlockStates []int64
}
Click to show internal directories.
Click to hide internal directories.