Commit Graph

856 Commits

Author SHA1 Message Date
Matthew Miller
913d4d67aa Fix erroneous deprecation check 2021-02-18 21:39:43 +10:00
Matthew Miller
2c7ac3d21f
Merge pull request #1611 from EngineHub/feature/nbt-parsing
Add NBT Parsing for items
2021-02-15 20:42:52 +10:00
Octavia Togami
b7880c2f4a
Lazify some more conversions 2021-02-15 02:02:14 -08:00
Octavia Togami
b67fff6662
Use the convience methods for assembly 2021-02-15 01:56:06 -08:00
Octavia Togami
fb5d7f8af5
Revert to old behavior of coercing 2021-02-15 01:53:45 -08:00
Octavia Togami
23a4e2d6fd
Lazily compute NBT 2021-02-15 01:51:24 -08:00
Octavia Togami
e1cc6bc948
Revert changes to legacy files, deprecate 2021-02-14 22:32:51 -08:00
Octavia Togami
3b25230f19
Finish reimplementing everything in adventure-nbt 2021-02-14 21:40:05 -08:00
Octavia Togami
0cabb82f9e
Merge branch 'version/7.2.x' 2021-02-11 00:42:34 -08:00
Matthew Miller
628c3f2ca1 Fix a few issues (and pretend 4.5.0 exists) 2021-02-09 20:41:47 +10:00
Matthew Miller
4ac2bb3e25 Further work on migrating to Adventure NBT 2021-02-08 22:07:52 +10:00
Octavia Togami
85c150e017
assorted changes™ 2021-02-06 02:51:44 -08:00
Matthew Miller
137c266e3a Migrate to adventure-nbt 2021-02-06 20:23:29 +10:00
Matthew Miller
476342a665
Fix the offset mask forcing negation of itself (#1656) 2021-01-31 13:01:31 +10:00
Matthew Miller
5aa81ff96e
Speed up Fast Reorder Mode and make it default (#1653)
* Speed up Fast Reorder Mode and make it default

* Make non-exposed side effects internal

* Docs on isExposed
2021-01-26 15:57:56 +10:00
Matthew Miller
69b1b5ebd5 Merge branch 'version/7.2.x' 2021-01-25 20:55:59 +10:00
Octavia Togami
9534a9cfce
Update so many dependencies, merge Forge/Fabric for final jar (#1651)
* Update so many dependencies, merge Forge/Fabric for final

* Clean up contrib docs for Gradle change

* Fix setting compat flags while using toolchain

* Fix deprecation in doc printer

* Restore proper forge JAR name

* Add dist classifier for mod jar

* Properly relocate new bStats

* Fix jar used from fabric

* Fix fabric bom

* Dup the shaded classes for consistency

* Sync Forge/Fabric log4j versions, de-dup

* Downgrade both log4j. This will work

* Update some plugins as well

* Drop the fabric force stuff

* Use duplicate strategy to directly merge jar
2021-01-25 02:14:09 -08:00
Matthew Miller
c4efc8be1b
Add a way to clear a registry's contents (#1645)
* Add a way to clear a registrys contents

* Delete latest.log
2021-01-17 16:50:00 +10:00
zml
0036e06f89
Alter the CUI lifecycle to be more consistent and reliable (#1633)
* Alter the CUI lifecycle to be more consistent

This handling reduces the platform-specific behaviour of CUI handshakes,
and ensures that the appropriate state is maintained when a client
connection ends but a LocalSession remains cached.

* Apply review suggestions

* fabric: Update to new networking API

* session: Correct field grouping for cui attempts
2021-01-16 13:07:29 +10:00
zml
f04ae2f1ec
Correct ellipsoidal selector initialization (#1632)
When the previous selection was a non-ellipsoidal region, the
started flag would not be appropriately set until a new selection
had been started.
2021-01-09 20:01:36 -08:00
Matthew Miller
303f5a76b2
Schematic Share system (#1591)
* Very WIP in-game schematic sharing system

* Add support for paste meta, and send that data when possible

* Add ability to specify the name of the shared schematic
2021-01-05 16:48:33 +10:00
Matthew Miller
df71f3ae7d
Add a command to apply side effects (#1623)
* [WIP] Add a command to apply side effects

* Fix checkstyle

* Switch to the //update command, and add messages

* The update command won't change in the future, remove that warning

* Create a Function that applies side effects for easier API usage, and make gmasks apply to `//update`

* Fixed `//update` not using the current side effect set

* Fixed PR review notes

* Fixed regression in last commit

* smh why is it null

* Update GeneralCommands.java

* PR review

* PR review

* :(

* :(
2021-01-05 16:19:45 +10:00
Matthew Miller
7a268b0b5d
Add WorldEdit version and platform to schematics (#1635)
* Add WorldEdit version and platform to schematics

* Use an actual platform ID rather than name, for more accurate info.

* Put the platform data within another nested tag

* Use a best-effort legacy platform ID

* Review changes

* Move the getId impl to Platform

* Review notes

* Review notes

* 😓
2021-01-02 21:01:40 +10:00
Matthew Miller
98c4580db9
Fix SideEffectSet.none() being the default set (#1620)
* Fix SideEffectSet.none() being the default set

* Remove the unnecessary private empty constructor for SideEffectSet

* Back to ImmutableMap.of
2020-12-22 14:48:22 +10:00
Hannes Greule
544793d541 Properly repeat extents for negative coordinates
An extent's content was returned flipped when applied for negative positions, as e.g. `Math.abs(-2) % 3` returns 2 instead of 1 (as 1 + -1 * 3 = -2)

(cherry picked from commit b0cf5dd2bf1b9bcbf1c7efff0fe25de7ee9a2090)
2020-12-11 12:48:33 -08:00
Matthew Miller
15cba009f4
Persist default state of selwand and navwand in session (#1600)
* Persist default state of selwand and navwand in session

* Fixed some issues with the way it retained info

* Fixed it setting the wrong item

* A little cleaner

* I somewhat misunderstood the way this system worked - This is cleaner and works a lot better

* Replace with octy-approved UX

* Improve logic for default wand loading

Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
2020-12-09 15:03:42 +10:00
Octavia Togami
d0e6f9f33b Always load internal strings.json for default locale 2020-11-29 17:20:32 -08:00
Octavia Togami
be4d8a0839
Update language bundle 2020-11-28 15:08:43 -08:00
wizjany
d6b42a4816
Add instructions for unbinding tools/brushes on equip. (#1595)
* Add unbind instructions to tool/brush commands.

* Switch to suggest.

* Make component final.

* Start suggesting the unbind alias instead.
2020-11-28 09:13:03 -05:00
Octavia Togami
cc1f530aa4 Add the missing y variable to generate biome 2020-11-18 16:14:35 -08:00
Octavia Togami
4999018f36
Lower-case wand items on retrival from the config 2020-11-09 18:57:54 -08:00
Octavia Togami
0f6d52e07f
Fix javadoc for OffsetsMask 2020-11-02 15:08:14 -08:00
Octavia Togami
d742c0fe0c Move archive unpack into WE working dir 2020-10-31 02:02:09 -07:00
Octavia Togami
a615e01181
Use the new lang version format 2020-10-20 14:38:08 -07:00
Octavia Togami
367d95c6c3
Ensure that the wand can be used before giving it (#1566)
* Ensure that the wand can be used before giving it

* Add a note to //wand about new perm requirements

* It's an item, not an "object"

* Fix checkstyle
2020-10-18 12:28:28 -07:00
Octavia Togami
5876f18422
Fix licenses in doc files 2020-10-18 11:58:47 -07:00
Octavia Togami
a2243be3dc
Actually overwrite existing files in archiveunpack
Fixes #1567
2020-10-18 11:44:04 -07:00
Octavia Togami
f449e55f98
Update doc printer for lang changes 2020-10-17 22:32:27 -07:00
Octavia Togami
83e744bae2 Fix loading dev i18n files
This forces the repo file to FULLY OVERRIDE the default locale. Nothing
will be loaded from the default locale in either the config folder, or
the i18n dependency.
2020-10-17 14:55:10 -07:00
Octavia Togami
56182ad079 Make /toggleeditwand translatable 2020-10-17 14:00:10 -07:00
Octavia Togami
e320833961 Use /tool in /toggleeditwand description 2020-10-17 14:00:10 -07:00
Matthew Miller
28bdf7ff92
Add ^x,y,z relative offset support to the offset parser (#1545)
* Add ^x,y,z relative offset support to the offset parser

* Wrap in a try-catch
2020-10-10 15:49:13 +10:00
Octavia Togami
6073f6564d
Fix license/checkstyle 2020-10-09 12:11:58 -07:00
Octavia Togami
c2d818245e
Only use POSIX perms if supported 2020-10-09 12:01:04 -07:00
Octavia Togami
bc64990e7e
Move to packaged translations (#1555)
* Move to packaged translations

* License that file

* Fix some checkstyle too

* Support reloading translation files

* Add missing dash for unpack directory

* Mark unpacked zips as owner-only
2020-10-08 17:42:23 -07:00
Lewis B
beb784e0ff
Add -w flag to butcher for water mobs (#1548)
* Add -w flag to butcher for water mobs

* PR feedback
2020-10-05 13:50:20 +10:00
Lewis B
6925d3715a
Make block positions copy on click for //size (#1546)
* Make block positions copy on click for //size

* PR feedback
2020-10-04 16:08:21 +10:00
Matthew Miller
26d8306833
Fixed snow being placed through slabs (#1541)
* Added a method to check whether a block can be placed at a location

* Make the snow system only place at locations that it can by game logic

* Make canPlaceAt a default method

* Fixed PR comments

* Use a World field

* Just throw directly

* IAE makes more sense

* Remove unused import

* Check for editsession without a world
2020-10-02 16:53:05 +10:00
Matthew Miller
ec306ccaf1
Create an asset system, and add an image brush that uses it (#1514)
* Asset/Image brush management

* Create a beta assets system and make it a heightmap brush

Co-authored-by: KennyTV <jahnke.nassim@gmail.com>
2020-10-02 10:29:07 +10:00
Octavia Togami
8377a6bdac
Lower-case registry arguments in converter
Fixes #1542
2020-09-29 17:37:56 -07:00