satisfies? calls in lambdaisland.witchcraft,
leading to a big speedup for a lot of operationsmap->Location for vectors that contain material/direction infoloc for blocksset-block accept vectors for consistencylambdaisland.witchcraft.adventure.text, which contains a conversion
from Hiccup-like markup (a la lambdaisland.witchcraft.markup) to a Adventure
Componentinto-inventory as a convenience functiondespawncreate-explosionutil/when-class-exists, in an attempt to appease cljdoc-block, -block-state, -set/get-custom-name, -playerplayer, display-name, set-display-name, get-blocklocv as an alias to xyzlisten-raw! for when you want to skip the bean call and get the raw bukkit evente/cancel! for convenient cancelling of eventsprivate-chest to the gallery, a mini-mod for when there's too much stealing on the serverlaunch! to the more accurate launch-cmdHasXYZ, HasPitchYaw, HasEntity, and CanSpawn protocolx/y/z/pitch/yaw use the newer protocol + reflected
implementation generation approachspawn work with anything that CanSpawn, including Citizens NPCscursor/block-facing:palette option to set-blocks, similar to how the palette works
with cursors:block-facing option in the cursor, to force the direction
blocks face regardless of cursor direction.lambdaisland.witchcraft.cursor: blocks and
facing-direction?.material-name/mat and xmaterial to handle keywords and vectors
consistentlydisplay-name, return nil if the
type of object passed in does not provide a display-nameitem-stackbreak-naturallyblockvwc/location check for HasLocationfill API can now take a set of :materials instead of a :predset-blocks when using vectors:start and :anchor in set-blocksinventory now returns a sequence of maps, use get-inventory if you want
the bukkit object.target-block : find the block you are looking atblock-data : get info about block properties as a map (post-flattening only)set-block-data : complimentary setter, set block data as mapcursor/rotation : helper for a previously hidden flag to add an extra
rotatio n to every blockmaterial and material-name to be more polymorphicset-blocks! and cursor/build! now both optionally take an :start, to
make the pattern easier of having location-independent structure generatorsset-block, set-blocks, cursor/materialshapes/rectube, handy for houses and lot of other stuff.set-lore and set-display-name now implicitly render markup(wc/default-world)start-paper! and lambdaisland.witchcraft.paper.
This means you have now the option to use Witchcraft with a fully up-to-date
1.17.1 version of Minecraftloc, like location, but returns a Clojure map instead of a bukkit Locationxmaterial to coerce to an XSeries XMaterial instancebukkit/Blocklambdaisland.witchcraft.palette:red-wool instead of
[:wool 14], :crafting-table instead of :workbench)start! is gone, use start-glowstone! or start-paper!players is now called online-playersset-block-direction is now called set-directionset-block no longer takes a vector of [material data], since this is going
away post-flattening. Variants can be specified with their flattened name
directly, direction can be provided in the map as a :direction keyword.direction now returns a direction keyword rather than a Vector. The former
is now called direction-vecCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |