bukkure.items
blockfaces
coaltypes
cocoaplantsizes
cropstates
defdirectional
macro
(defdirectional type)
Plenty of types simply have a ‘.setFacingDirection’, so this is a macro to make it a two-worder.
defmat
macro
(defmat type & specs)
Convenience macro for the get-new-data multi method, common pattern emerged. I could take it further, but this feels like the right level of abstraction.
drop-item
(drop-item location itemstack & [naturally?])
dyecolors
get-material
(get-material material-key)
Gets a material from the material map. If you pass it a keyword, it will do a simple lookup. If you pass it a vector [:wood :jungle] or [:water 2], it will return a MaterialData with the material and data setup correctly - Consult the type’s multimethod to find what parameters you should pass in.
get-new-data
multimethod
Returns a new MaterialData depending on Material Type
grassspecies
is-block?
(is-block? block & material-keys)
item-stack
(item-stack material-key & [qty])