Commit Graph

14 Commits

Author SHA1 Message Date
Alexander Medvedev
c15ebf181d chore: more plugin api work
also added bedrock fuzzing
2026-04-01 19:37:01 +02:00
Daniel Wang
7c4f3b7550 feat(wasm-api): expand player WIT API (#1921)
* feat(wasm-api): port i18n module for plugin and host use

* feat(wasm-api): expand player WIT API

* feat(wit): make player APIs fallible and propagate errors

* feat(wit): add player info, inventory, and status queries

* feat(wit): add player permission and display name APIs
2026-03-30 16:51:48 +02:00
yunuservices
0855dbd163 feat(wasm-api): port player egg throw event (#1899) 2026-03-27 12:06:20 +01:00
Daniel Wang
7a57b026a0 feat(wasm-api): port i18n module for plugin and host use (#1898) 2026-03-25 15:20:26 +01:00
yunuservices
5805eecd94 feat(wasm-api): port block grow event (#1895) 2026-03-23 18:43:15 +01:00
yunuservices
4f1279810e feat(wasm-api): port block place event (#1896) 2026-03-21 22:42:56 +01:00
yunuservices
2efa81451a feat(wasm-api): port block redstone event (#1881)
* feat(wasm-api): port block redstone event

* fix(wasm-api): satisfy clippy for block redstone batch

* style(wasm-api): format block redstone batch
2026-03-21 15:36:48 +01:00
yunuservices
babb191e66 feat(wasm-api): port basic block events (#1889)
* feat(wasm-api): port basic block events

* fix(wasm-api): align stacked event ports with clippy

* style(wasm-api): format basic block event batch
2026-03-20 09:37:56 +01:00
yunuservices
a5908c04fd feat(wasm-api): port world core events (#1880)
* feat(wasm-api): port world core events

# Conflicts:
#	pumpkin/src/plugin/loader/wasm/wasm_host/wit/v0_1_0/context.rs

* fix(wasm-api): satisfy clippy for world event batch

* style(wasm-api): format world event registration
2026-03-18 20:29:32 +01:00
yunuservices
581430aeff feat(wasm-api): port player and server core events (#1860)
* feat(wasm-api): port player and server core events

* fix(wasm-api): satisfy clippy for player event batch
2026-03-18 12:32:16 +01:00
Illyrius
ee3aa76c2b feat: wasm-api/context/get_data_folder (#1843)
* init

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* fix build errors

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* Use context.downcast_ref(self) instead

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* Add filesystem access

---------

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
Signed-off-by: Illyrius <28700752+illyrius666@users.noreply.github.com>
Co-authored-by: Bjorn Beishline <75190918+BjornTheProgrammer@users.noreply.github.com>
2026-03-10 15:48:58 -07:00
Illyrius
823914ec1c feat: wasm-api/player/get_name (#1840)
* init

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* fix fn order to match trait

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* feat: add DowncastResourceExt impl for player

---------

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
Co-authored-by: Bjorn Beishline <75190918+BjornTheProgrammer@users.noreply.github.com>
2026-03-10 04:47:46 -07:00
Bjorn Beishline
6e84473199 feat: add register permission to wasm (#1841) 2026-03-10 02:31:55 -07:00
Bjorn Beishline
576d76dfd6 feat: add wasm plugin api (#1675)
* feat: wasm plugin api base

* fix: make metadata macro work

* chore: fix clippy lints

* Implement guest registering of events

* chore: remove hardcoded v0.1.0  dep in wasm_host

* feat: add events to wasm

* feat: add caching of components

* fix: clippy lints

* chore: update Cargo.lock

* fix: add feature flag for link section

* feat: add base for command wit definitions

* feat: implement arg variants for command wit interface

* feat: add commented out command-tree arg variant

* feat: add wit definitions for text-component and command tree

Introduces the text interface with a builder-pattern resource,
argument-type variant, command-node resource, and register-command
on context. Migrates event and command-sender to use the new
text-component resource.

* feat: add stubs for wasm host

* chore: update wasmtime to v42

* feat: implement three methods of wit textcomponent

* Add consume function

* feat: implement all text-component host methods

Replace todo!() stubs with working implementations for all
HostTextComponent trait methods: style setters, click events,
hover events, add_text, get_text, and encode.

* feat: allow events to be modified

* feat: add some of base for commands

* chore: fix spelling mistake

* chore: remove unused dep

* feat: implement all argument-type to consumer mappings

* Add command exports

* log plugin load errors

* Some commands work

* Some more Commands work

* Update how commands are registered

* Implement locale

* Use handler id with require

* chore: fix some warnings

* Add PlayerLeaveEvent

* chore: fix all clippy warnings

* fix: add more descriptive error message

---------

Co-authored-by: Purdze <r.s.sutton@hotmail.co.uk>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-03-09 18:12:48 +01:00