Commit Graph

45 Commits

Author SHA1 Message Date
sk89q 42be110097 Implemented new biome API. 2014-07-17 00:21:13 -07:00
sk89q 9feafcfc30 Convert newer API from radians to degrees. 2014-07-15 20:10:14 -07:00
sk89q 3e34d5ca52 Re-implement /remove and /butcher with the new entity API. 2014-07-15 19:47:47 -07:00
sk89q 1f709b9cc3 Move handling of hanging entities into ExtentEntityCopy. 2014-07-15 12:09:11 -07:00
sk89q 505d45237d Remove UUID fields in ForgeWorld when creating entities. 2014-07-14 18:09:18 -07:00
sk89q 0ce7954dc9 Add support for copying entities between Extents. 2014-07-10 22:22:35 -07:00
sk89q ceec170be9 Change Location to store pitch/yaw rather than a directional vector. 2014-07-10 15:57:27 -07:00
sk89q c564278dd6 Revert Extent.createEntity() taking a Vector. 2014-07-10 14:51:04 -07:00
sk89q bd0e20e8a7 Have Extent.createEntity() take a Vector rather than a Location. 2014-07-10 02:58:04 -07:00
sk89q 56b349ead8 Add a new block metadata framework and fix //rotate and //flip.
Remove the previous Mapping interfaces.
2014-07-09 14:14:41 -07:00
sk89q 65f451279c Merge branch 'master' into feature/mapping
Conflicts:
	src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitWorld.java
	src/main/java/com/sk89q/worldedit/command/SelectionCommands.java
2014-07-06 21:06:10 -07:00
sk89q 6f0fde47b0 Restored tab completion of player names.
Fixes WORLDEDIT-3144.
2014-07-06 17:23:05 -07:00
Wyatt Childers bc92e43be0 Adds Platform support for WorldEdit CUI 2014-07-06 20:13:27 -04:00
sk89q 09eb36dc5e Added new Extent-compatible Clipboard and BlockArrayClipboard classes.
The goal is to replace use of CuboidClipboard with these new classes.

Support for entities, //flip, //rotate, and //distr still needs to be
re-implemented.

DataException was also removed from BaseBlock because The Base(...)
classes should be "dumb" blocks without any validation.
2014-06-29 17:47:08 -07:00
sk89q eee2c5d9f4 Changed Location to use Extents rather than worlds and overhauled the new Entity code a bit. 2014-06-29 15:36:41 -07:00
sk89q b0d050451a Merge branch 'master' into feature/mapping
Conflicts:
	src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitCommandSender.java
	src/main/java/com/sk89q/worldedit/internal/LocalWorldAdapter.java
	src/main/java/com/sk89q/worldedit/util/TargetBlock.java
2014-06-28 22:31:13 -07:00
sk89q 33e1e0b1f1 Overhauled command handling and suggestion support. 2014-06-28 16:30:02 -07:00
rhylos aaf4c61251 [Forge] Add slash to location of defaults folder to allow locating of worldedit.properties file. 2014-06-27 19:34:03 -04:00
sk89q 8f1943fd84 Merge commit '142f5c8e5c889ee5098c05ba2fde20b52467c1df' into feature/platform-caps 2014-06-27 16:03:29 -07:00
sk89q 9bb70ad335 Updated events to choose the best platform for certain tasks. 2014-06-27 13:14:44 -07:00
sk89q e52ca6661f Added support for platforms to declare capabilities.
Platforms can declare certain capabilities and a suggested preference
for the platform for each capability. WorldEdit can then choose
the best platform for a given capability.

Examples of capabilities include providing configuration, registering
game hooks/events, performing changes to the world, or checking
permissions/authorization.
2014-06-27 01:11:35 -07:00
sk89q 92204ba623 [Forge] Fixed switch() fall-through on handling of block interaction. 2014-06-26 17:07:37 -07:00
sk89q 900c9b5258 Added BlockInteractEvent to replace handleBlockLeftClick().
Needed quite a shim for tools/brushes for now.
2014-06-26 16:56:40 -07:00
Wizjany 0e00f0ac9d [Forge] Move worldedit.properties to defaults folder so it extracts properly 2014-06-26 17:26:30 -04:00
sk89q c4c19017bb Added incomplete entity support to all Extents.
The Bukkit implementation supports the new entity API, but it has
not yet been tested. The Forge implementation does not support the
entity API yet.

At the moment, an UnsupportedOperationException is thrown for
Entity.getState() in some implementations, but use of an exception
should probably not be allowed.

BaseEntity is now an interface. It should not be possible to create
instances of BaseEntity because it may be implementation-specific.
2014-04-27 23:34:39 -07:00
sk89q 354d819872 Added a new preliminary mapping + metadata framework.
The eventual goal is to add:

1. Support for mapping block, etc. names (minecraft:stone, etc.)
2. Proper support for entities in WorldEdit
3. Support for querying for metadata about a block, entity, etc.
4. Extent support to biomes, structures, and so on
2014-04-26 21:57:45 -07:00
sk89q 33e641d5f2 Added a new Location and added Entity.getLocation(). 2014-04-26 19:48:30 -07:00
sk89q 4a6614f34f Cleaned up ForgeWorld, AbstractWorld.
Change block setting method in Forge to a more proper one.
2014-04-06 15:06:38 -07:00
sk89q b6ee2c570a [Forge] Cleaned up the code somewhat. 2014-04-06 12:07:10 -07:00
sk89q 099fd9a63b [Forge] Made TileEntity NBT handling fit WE spec.
Fixed schematic loading/saving as a result.
2014-04-06 01:41:28 -07:00
sk89q f3e107da90 Handle running multiple platforms at a time better. 2014-04-05 23:27:10 -07:00
sk89q 4320ae9d1f [Forge] Attached com.sk89q logger to FML logger. 2014-04-05 22:05:44 -07:00
sk89q 69797cfbea Updated Forge compilation to ForgeGradle. 2014-04-05 19:59:23 -07:00
sk89q 8fb73347e4 Implemented PlatformManager, Platform over old platform registration method. 2014-04-04 20:53:58 -07:00
sk89q e0fd804f70 Standardized file headers. 2014-04-04 15:23:11 -07:00
sk89q 478ce3f627 Fixed utility classes having constructors. 2014-04-04 14:35:12 -07:00
sk89q cbf58103e6 Replaced tabs with spaces in .java files. 2014-04-04 14:11:48 -07:00
sk89q 0ed62b8f90 Moved RegionSelector back to regions package to reduce API breakage. 2014-04-03 19:50:05 -07:00
sk89q 1fd1e7aaf8 Moved RegionSelectors and RegionIterators into subpackages. 2014-04-03 18:32:51 -07:00
sk89q 469cb8c8b3 (Breaking) Moved some packages around.
Most of the changes should not break *most* WorldEdit-using plugins,
but implementations of WorldEdit are broken by this change.
2014-04-02 19:20:12 -07:00
davboecki bd98e98698 Update Forge implementation and added build script.
Including:
* Update to new MCP names
* Adding of an build script (see maven 'forge' profile)
* Adding of an regeneration code
* Simplifying of the command registration
* Added command usage description to avoid empty help pages
* Added missing raw information
* Used a WeakReference as world reference to avoid keeping a world in memory
* Added mcmod.info
* Fixed player orientation
* Fixed printRaw not splitting the message correct
2013-09-29 23:48:11 -04:00
wizjany bfd13a4140 Updated forge code to 1.6.2.
Note that this is untested (although it compiles) since
I don't currently have a 1.6 forge installation set up.
2013-08-12 21:55:59 -04:00
Lucas Tan 80536d85ca Update Minecraft Forge compatibility for 1.5.2. 2013-06-10 17:02:41 -04:00
Wizjany c2932cc54f Cleanup forge code. Make it singleplayer friendly. 2013-02-25 01:22:05 -05:00
Wizjany b2869058a9 Port WorldEdit to Forge. 2013-02-24 15:18:49 -05:00