Commit Graph

30 Commits

Author SHA1 Message Date
e95eeefa2b Code clean up, add preconditions, and correct Javadocs. 2014-07-26 01:29:51 -07:00
5dd7b83940 Remove Trove usage temporarily due to shading issues with Gradle build. 2014-07-23 16:20:43 -07:00
70f05c950a Made BukkitEntity keep a weak ref to the entity and cleaned up code. 2014-07-18 11:43:18 -07:00
42be110097 Implemented new biome API. 2014-07-17 00:21:13 -07:00
9feafcfc30 Convert newer API from radians to degrees. 2014-07-15 20:10:14 -07:00
3e34d5ca52 Re-implement /remove and /butcher with the new entity API. 2014-07-15 19:47:47 -07:00
b5aaef2505 Cleaned up and added many methods to the NBT classes. 2014-07-14 20:36:27 -07:00
f033d87098 Add new Bukkit implementation adapter system to access MC internals.
Replaces the old NMSBlocks.
2014-07-14 13:45:07 -07:00
bdd6d20013 Remove DataException from NbtValued's setNbtData(). 2014-07-13 18:15:44 -07:00
759c6ba50d Add @Nullable to NbtValued methods. 2014-07-13 18:15:16 -07:00
97a1664db5 Merge remote-tracking branch 'origin/master' into feature/mapping 2014-07-10 22:33:25 -07:00
0ce7954dc9 Add support for copying entities between Extents. 2014-07-10 22:22:35 -07:00
c564278dd6 Revert Extent.createEntity() taking a Vector. 2014-07-10 14:51:04 -07:00
bd0e20e8a7 Have Extent.createEntity() take a Vector rather than a Location. 2014-07-10 02:58:04 -07:00
91d3292d81 Call editSession.setBlock() in SnapshotRestore.
Fixes WORLDEDIT-2879.
2014-07-10 01:04:15 -07:00
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
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
d96d3cf8bc Changed instances of Pattern, Mask, etc. to newer versions.
Most affected is the brush code.
2014-06-27 19:55:38 -07:00
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
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
f94be80923 Changed Super Pickaxe to use EditSession.
This fixes WORLDEDIT-3102 and allows the logging of Super Pickaxe
usage via the EditSession Extent pipeline.
2014-04-23 00:33:00 -07:00
4a6614f34f Cleaned up ForgeWorld, AbstractWorld.
Change block setting method in Forge to a more proper one.
2014-04-06 15:06:38 -07:00
24f8fbc92a Converted API over to use new World.
This breaks backwards compatibility for all getWorld() methods, but
shim methods were added for binary compatibility with method calls that
use LocalWorld.
2014-04-05 03:04:21 -07:00
7ed1718d21 Moved LocalWorld's members upwards to AbstractWorld and World. 2014-04-04 22:40:29 -07:00
ae8becafdd Code cleanup. 2014-04-04 16:09:05 -07:00
e0fd804f70 Standardized file headers. 2014-04-04 15:23:11 -07:00
b9c1dc6231 Fixed equals() without hashCode(). 2014-04-04 14:40:51 -07:00
478ce3f627 Fixed utility classes having constructors. 2014-04-04 14:35:12 -07:00
08900cbfc2 Removed foundation.* package. 2014-04-02 21:23:14 -07:00
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