Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chest ¶
type Chest struct{}
Chest is the model of a chest. It is just barely not a full block, having a slightly reduced with on all axes.
type Door ¶
Door is a model used for doors. It has no solid faces and a bounding box that changes depending on the direction of the door, whether it is open, and the side of its hinge.
type Empty ¶
type Empty struct{}
Empty is a model that is completely empty. It has no collision boxes or solid faces.
type Fence ¶
type Fence struct {
Wooden bool
}
Fence is a model used by wooden & nether brick fence.
type Ladder ¶ added in v0.2.0
type Ladder struct { // Facing is the side of the block the ladder is currently attached to. Facing cube.Direction }
Ladder is the model for a ladder block.
type Leaves ¶
type Leaves struct{}
Leaves is a model for leaves-like blocks. These blocks have a full collision box, but none of their faces are solid.
type Slab ¶
type Slab struct {
Double, Top bool
}
Slab is the model of a slab-like block, which is either a half block or a full block, depending on if the slab is double.
type Solid ¶
type Solid struct{}
Solid is the model of a fully solid block. Blocks with this model, such as stone or wooden planks, have a 1x1x1 collision box.
type Stair ¶
Stair is a model for stair-like blocks. These have different solid sides depending on the direction the stairs are facing, the surrounding blocks and whether it is upside down or not.
type Thin ¶
type Thin struct{}
Thin is a model for thin, partial blocks such as a glass pane or an iron bar. It changes its bounding box depending on solid faces next to it.
type TilledGrass ¶
type TilledGrass struct { }
TilledGrass is a model used for grass that has been tilled in some way, such as dirt paths and farmland.