100 Commits
Author SHA1 Message Date
Maddy MillerandMatt a088e6a96b Remove the Bukkit legacy data folder migration code from 11 years ago (#2383)
(cherry picked from commit EngineHub/WorldEdit@7f81aad028)
2023-08-10 19:10:04 -04:00
Maddy Milleranddordsor21 e2b2feb7c5 Use MethodHandle for faster event bus (#1865)
* Use MethodHandle for faster event bus

* Implement hashCode/equals

* Apply review comments

* Bind to the object directly
2021-08-09 10:21:42 +01:00
Maddy Milleranddordsor21 f06ba41f91 Fix Cycler tool not using full block data (#1868)
(cherry picked from commit 8ee45137aa5d7a3b80b661601ab14e48f13756ec)
2021-08-08 17:33:45 +01:00
Matthew MillerandMattBDev 39439fb405 fix: require extent for mask parsing (#1373)
(cherry picked from commit 1ced57c301bc1c98667a260fd8b6aa128675f0d2)
2020-07-06 23:47:33 -04:00
Matthew MillerandMattBDev 4604aa5920 Additional work towards 1.16 compatibility
- Very basic implementation of the SideEffects system. Will definitely need fine tuning for it to be functional, but is not considered a priority in my opinion.
- Minor changes to the World interface and World implementations related to the SideEffects system. Shouldn't be the cause of any new bugs but be on the lookout.
- Included debug in BukkitImplLoader.java to assist contributors in understanding what needs to be implemented for the adapter to load properly.

Still very WIP but we're a few steps closer. So far, this is coming along better than I anticipated. Hopefully we can keep the momentum.
2020-06-29 22:08:16 -04:00
Matthew MillerandIronApollo 82adab77b4 Additional work towards 1.16 compatibility
- Very basic implementation of the SideEffects system. Will definitely need fine tuning for it to be functional, but is not considered a priority in my opinion.
- Minor changes to the World interface and World implementations related to the SideEffects system. Shouldn't be the cause of any new bugs but be on the lookout.
- Included debug in BukkitImplLoader.java to assist contributors in understanding what needs to be implemented for the adapter to load properly.

Still very WIP but we're a few steps closer. So far, this is coming along better than I anticipated. Hopefully we can keep the momentum.
2020-06-26 22:14:19 -04:00
Matthew MillerandMattBDev 33adba4a6f Use a long to refer to the volume of a region to prevent overflow (#1350)
* Use a long to refer to the volume of a region, and rename the method to getVolume

* Fixed issues noted in review

* Forgot to floor

* Fixed review notes

* Can use a long here rather than BigDecimal

* Improve javadocs

* style

(cherry picked from commit 328030fd6281e58a4ea1d0cdd0a2e274da90afbe)
2020-06-12 21:45:49 -04:00
Matthew MillerandMattBDev c72f3eeb58 Bump text versions for 1.16 and action bar fixes
(cherry picked from commit 5132c5e8a83812e2341df87e0ac239cc948a0b5f)
2020-06-12 21:45:48 -04:00
Matthew MillerandMattBDev c566bb8333 Replaced the "please report this" message in the legacy schematic loader
(cherry picked from commit be30a94be5aedc9e365491372fb80d2ea98ff368)
2020-02-27 21:44:37 -05:00
Matthew Miller ded86d4872 Fixed issues brought up in review 2019-11-18 19:50:52 +10:00
Matthew Miller 625be46b30 Allow translation files to be missing entries, and use the english version in place. 2019-11-17 16:04:13 +10:00
Matthew Miller 5d0335eea5 Fixed typo in brush radius too large 2019-11-17 15:31:46 +10:00
Matthew Miller f3c97887bc Only download translations if a key is provided 2019-11-17 14:21:36 +10:00
Matthew Miller 9a01bf9ab2 When custom files are found, use the base files for default values. 2019-11-16 22:46:31 +10:00
Matthew Miller 87fb9f6d0e Added the remaining translation nodes 2019-11-16 22:46:31 +10:00
Matthew Miller fc0fee39cb Added a tonne more translations 2019-11-16 22:45:36 +10:00
Matthew Miller 4ba54c4337 Further translations 2019-11-16 22:45:36 +10:00
Matthew Miller 0e6037584f Remove support for pluralisation to match Minecraft and alleviate issues with over-complexity 2019-11-16 22:43:23 +10:00
Matthew Miller 455a40b3fc Add a few more strings 2019-11-16 22:43:22 +10:00
Matthew Miller c01d2f7c24 Further translations 2019-11-16 22:42:14 +10:00
Matthew Miller 1cca2182a9 Fixed gradle setup 2019-11-16 22:42:14 +10:00
Matthew Miller 96e56bdd0c Rebase translation work for easier rebasing 2019-11-16 22:42:14 +10:00
Matthew MillerandGitHub 77ef0ae417 Bypass Bukkit in more situations (#532)
* Bypass Bukkit in more situations

* Use orElseGet

* Apply the same optimisation in the reverse BlockData adapter, and use lambdas instead of AIC

* Remove bukkit type checks

* Improve reliability of fallbacks
2019-11-15 12:02:46 +10:00
Matthew Miller a73a45ce43 Create parser context data for factory converter in non-user-mode 2019-08-31 16:30:51 +10:00
Matthew Miller 44bffc5a86 Use https for the pastebin service 2019-08-27 21:54:53 +10:00
Matthew MillerandGitHub 0620478763 feature(cli): Added a CLI version of WorldEdit, and allowed most commands to be run from console (#508)
* Re-do commits to avoid awful rebase

* You can load and save a schematic file now. Still gotta setup ability to use commands as a console actor.

* Add a world override concept to LocalSession, and allow a lot more commands to be performed by actors.

* Fixed commands, and set the loaded schematic as the world override in CLI

* Properly load tags

* Added 1.14.4 data values

* Allow a majority of commands to be performed by the console.

* Fixed a lot of PR requested changes

* Added a Locatable interface and use that for getting the location of the player in commands.

* Added script support. Currently requires a newline at the end of the script.

* Shade everything to allow this to run locally - should probably minimize this to an extent later.

* Actually hook up the version

* Added a //world command to set the override

* Fixed a missed checkstyle issue

* Added CommandBlock support to Bukkit

* Make command block support configurable

* Minor cleanup and implementing a few of the final functions

* Fixed most issues from PR

* Improve UX, saving is now automatic and unknown command messages show

* Better save docs and support any clipboard format

* Include the entire formats list

* Arrays.copyOf

* Clear the world override if the selector is called on another world.

* Update logging extent to allow basic logging with non-player actors
2019-08-25 19:58:28 +10:00
Matthew Miller ec5bc5a3b7 Bump to 7.1.0-SNAPSHOT for continued development 2019-08-12 21:48:15 +10:00
Matthew Miller 22cf93c31f Bump to 7.0.1 2019-08-12 21:35:09 +10:00
Matthew Miller a9b3fb1429 Fixed tile entity interaction with Fabric 2019-07-22 22:24:45 +10:00
Matthew Miller 449b0991f3 Bump to Piston 0.4.3 2019-07-22 21:20:40 +10:00
Matthew Miller c3e3ae4956 Back to snapshots 2019-07-22 21:19:04 +10:00
Matthew Miller 5c2b9e4157 7.0.1 RC1 2019-07-22 21:18:52 +10:00
Matthew Miller 7b9075c0bf Update Fabric to 1.14.4 and fix physics updates 2019-07-19 21:44:13 +10:00
Matthew MillerandGitHub aa8d34c913 feature(fabric): added fabric support (#491)
* Initial work towards Fabric compat. This does not compile yet

* Further updates - should compile but Gradle is being weird.

* Remove useless buildscript extras

* Added mixins to buildscript classpath to fix Loom crash

* Make it compile

* Got it building and added interaction

* Fixed review comments

* Use ServerPlayerEntity for FakePlayer

* Use method references for nicer names

* Fixed remaining comments and added networking for CUI

* Output as dist.jar

* Added mixins for left click air

* Use regex for cleanliness
2019-06-27 22:25:02 +10:00
Matthew Miller 2571efb5c3 Few fixes for worldedit changes 2019-06-15 17:33:17 +10:00
Matthew Miller f89bc3a648 7.0.1 Snapshots 2019-06-11 21:38:53 +10:00
Matthew Miller 84eb4b1aab Bump to 7.0.0 2019-06-11 21:36:19 +10:00
Matthew Miller 214af8a535 Update changelog 2019-06-11 21:15:48 +10:00
Matthew Miller 1b4ea528ea Back to SNAPSHOT for continued development 2019-06-05 22:02:08 +10:00
Matthew Miller 5c2ed0228d Update to RC3 2019-06-05 22:01:57 +10:00
Matthew Miller 38607f387a Added a permission node to set NBT data, allowing servers to disallow NBT interactions. 2019-06-01 15:53:18 +10:00
Matthew Miller 4804fe64e3 Don't use a no-op suggester 2019-05-24 21:31:29 +10:00
Matthew Miller a3ffb91917 Added suggestions to a lot of factory-related commands 2019-05-24 21:31:29 +10:00
Matthew Miller 8ee484fca8 Removed unused classes 2019-05-19 13:34:43 +10:00
Matthew Miller 71df3716dd Back to SNAPSHOT 2019-05-15 20:14:30 +10:00
Matthew Miller 7be00cc773 Bump to RC2 2019-05-15 20:01:17 +10:00
Matthew Miller 405bf8dc07 Back to SNAPSHOT for continued development 2019-05-14 20:21:55 +10:00
Matthew Miller c350863b23 7.0.0 Release Candidate 1 2019-05-14 19:52:09 +10:00
Matthew Miller 9a5d45deed Fixed direction error 2019-05-06 18:33:21 +10:00
Matthew Miller f7670f7812 Temporary fix for forge having terrible classpath issues. 2019-04-28 18:47:28 +10:00
Matthew Miller 32d4b36419 Fixed //drawsel 2019-04-28 17:05:37 +10:00
Matthew Miller 6e016a66f0 Fixed //size on clipboards 2019-04-28 16:05:01 +10:00
Matthew Miller 62353a46db Added a pagination box and use it in Biome List and Chunk List 2019-04-27 21:57:45 +10:00
Matthew Miller 7dcf8f5a45 Fixed //setbiome 2019-04-27 17:32:02 +10:00
Matthew Miller f94093239f Setup a registry converter 2019-04-27 16:46:13 +10:00
Matthew Miller 968decf62e Remove the -l lightning flag from butcher 2019-04-26 23:42:57 +10:00
Matthew Miller 302cd8f348 Update note in ForgePlatform on data version. 2019-04-26 16:41:39 +10:00
Matthew Miller c325b789b2 Revert lighting changes and add a 1.14 adapter 2019-04-25 23:15:09 +10:00
Matthew Miller f70557e3da Provide a warning when an invalid property is entered rather than failing. Fixes WorldEdit entirely failing on new MC versions. 2019-04-25 22:48:15 +10:00
Matthew MillerandGitHub db4871f022 Merge pull request #462 from EngineHub/feature/expanded-styleset
feat(text): added modern text formatting to worldedit, and switch a few things over to it
2019-04-25 19:39:26 +10:00
Matthew Miller 4f5f9c8a5d Add forge support to the text system. 2019-04-25 19:38:32 +10:00
Matthew Miller b1e43b7561 wrap to TextComponent 2019-04-25 19:20:29 +10:00
Matthew Miller 5606e752c2 Use wrappers for the Format-type components 2019-04-25 19:11:58 +10:00
Matthew Miller 0434bcf48c Remove unnecessary gradle entries 2019-04-22 23:59:31 +10:00
Matthew Miller c52eb59d7f Get it all working 2019-04-22 22:05:20 +10:00
Matthew Miller 5b1573a24e Replace the message system 2019-04-19 23:06:00 +10:00
Matthew Miller d56cd96282 Fixed builds 2019-04-19 16:38:33 +10:00
Matthew Miller 55348346e9 Shade in Kashike's lib 2019-04-19 14:49:29 +10:00
Matthew Miller 3e4004ad9e Start work on improving the formatting system. May switch to Kashike's as Bukkit is shit 2019-04-14 19:33:44 +10:00
Matthew MillerandGitHub 35bb4deee9 Merge pull request #457 from boy0001/platform-tweak
swap order of checks
2019-04-04 10:52:04 +11:00
Matthew Miller 4629c1f7e4 Few fixes for the Forge version. 2019-03-26 21:09:41 +10:00
Matthew Miller d186cce393 Merge remote-tracking branch 'origin/feature/slf4j-logging' 2019-03-19 20:32:21 +10:00
Matthew MillerandGitHub a5cec7728d Merge pull request #452 from EngineHub/forge-1.13
Added support for Forge 1.13
2019-03-11 22:52:30 +10:00
Matthew Miller 6e24472af5 Bump to latest forge and cleanup some old files. 2019-03-11 22:45:41 +10:00
Matthew Miller aa295d91e8 All but commands and config directory are ported. 2019-02-19 21:49:06 +10:00
Matthew Miller 29b6c84230 Rebase and properly setup the registries 2019-02-19 20:30:52 +10:00
Matthew Miller de9798bf7e Further work on 1.13.2 WorldEdit for Forge. Forge still is missing too many features to finish this, and I need to work out how to port the command wrapper system over. 2019-02-19 18:16:28 +10:00
Matthew Miller cf435fd63d Bump to 1.13.2 2019-02-19 18:16:28 +10:00
Matthew Miller d079f06c31 Make it actually load into an IDE on latest FG 2019-02-19 18:16:28 +10:00
Matthew Miller e4ce51003e Bump to latest Forge 2019-02-19 18:16:28 +10:00
Matthew Miller c849f69ef4 Convert across the network handlers 2019-02-19 18:16:28 +10:00
Matthew Miller 9fccfdfaeb Further work on 1.13 2019-02-19 18:16:28 +10:00
Matthew Miller a64d8dc6fa Fixed a lot of the errors, still more to go. Gotta switch to Forge registries once they exist. 2019-02-19 18:14:58 +10:00
Matthew Miller 7a08098b03 Further work on Forge 1.13 compat. 2019-02-19 18:11:37 +10:00
Matthew Miller 11cf5377d9 Further attempts 2019-02-19 18:11:37 +10:00
Matthew Miller e6d5ce8165 Start work on Forge 1.13 2019-02-19 18:11:37 +10:00
Matthew Miller 5de8e0852c Treat categories as empty when missing 2019-02-18 21:17:36 +10:00
Matthew MillerandGitHub df5ef52d6c Merge pull request #449 from EngineHub/feature/biome-registry
Refactor registries, and added a registry for biomes
2019-02-18 21:10:02 +10:00
Matthew Miller 8984289695 Bump Spigot version so it compiles. 2019-02-18 20:56:21 +10:00
Matthew Miller 50a286b070 Update the block/item category registries - this won't build until a Spigot PR is merged though. 2019-02-17 13:30:40 +10:00
Matthew Miller a09489a9af Updated the adapters 2019-02-16 20:51:39 +10:00
Matthew Miller 3683a0438a Use nonNull rather than !isNull 2019-02-16 19:58:06 +10:00
Matthew Miller db1315e043 Refactor registries to entirely use the platform 2019-02-16 19:35:13 +10:00
Matthew Miller 1b101740fe Use a proper registry for biomes 2019-02-16 17:27:00 +10:00
Matthew Miller d6bc85ccbe Speed up the BlockState hashCode method by caching (As it's Immutable). Allows some better optimisations in the future by using them as map keys 2019-02-16 12:46:10 +10:00
Matthew Miller 1ae0e88b63 Remove synthetic classes from adapters. 2019-02-13 21:06:25 +10:00
Matthew Miller 3e988e7ffe Fixed parsing fuzzy blocks failing. 2019-02-11 20:30:42 +10:00
Matthew Miller c53a40b577 Bypass the Spigot API for block setting for speed boosts on non-Paper platforms. 2019-02-11 20:17:36 +10:00
Matthew MillerandIronApollo 4a8931a55a Added a ##tag parser Pattern. gives a random combination using the blocks from the tag with an equal distribution. 2019-02-03 07:59:06 -05:00
Matthew MillerandIronApollo b27913324b Tweak the last access extent cache to provide better caching 2019-02-03 07:35:38 -05:00