-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dragonfly: Finish custom block implementation
- Loading branch information
1 parent
cbdfa9b
commit 273b125
Showing
18 changed files
with
266 additions
and
530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package customblock | ||
|
||
import ( | ||
"github.com/df-mc/dragonfly/server/block/cube" | ||
"github.com/go-gl/mathgl/mgl64" | ||
) | ||
|
||
type Properties struct { | ||
CollisionBox cube.BBox | ||
Cube bool | ||
Geometry string | ||
MapColour string | ||
Rotation cube.Pos | ||
Scale mgl64.Vec3 | ||
SelectionBox cube.BBox | ||
Textures map[string]Material | ||
Translation mgl64.Vec3 | ||
} | ||
|
||
type Permutation struct { | ||
Properties | ||
Condition string | ||
} |
Oops, something went wrong.