Commit Graph

30 Commits

Author SHA1 Message Date
sk89q
e95eeefa2b Code clean up, add preconditions, and correct Javadocs. 2014-07-26 01:29:51 -07:00
sk89q
5dd7b83940 Remove Trove usage temporarily due to shading issues with Gradle build. 2014-07-23 16:20:43 -07:00
sk89q
70f05c950a Made BukkitEntity keep a weak ref to the entity and cleaned up code. 2014-07-18 11:43:18 -07:00
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
b5aaef2505 Cleaned up and added many methods to the NBT classes. 2014-07-14 20:36:27 -07:00
sk89q
f033d87098 Add new Bukkit implementation adapter system to access MC internals.
Replaces the old NMSBlocks.
2014-07-14 13:45:07 -07:00
sk89q
bdd6d20013 Remove DataException from NbtValued's setNbtData(). 2014-07-13 18:15:44 -07:00
sk89q
759c6ba50d Add @Nullable to NbtValued methods. 2014-07-13 18:15:16 -07:00
sk89q
97a1664db5 Merge remote-tracking branch 'origin/master' into feature/mapping 2014-07-10 22:33:25 -07:00
sk89q
0ce7954dc9 Add support for copying entities between Extents. 2014-07-10 22:22:35 -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
91d3292d81 Call editSession.setBlock() in SnapshotRestore.
Fixes WORLDEDIT-2879.
2014-07-10 01:04:15 -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
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
d96d3cf8bc Changed instances of Pattern, Mask, etc. to newer versions.
Most affected is the brush code.
2014-06-27 19:55:38 -07: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
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
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
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
sk89q
7ed1718d21 Moved LocalWorld's members upwards to AbstractWorld and World. 2014-04-04 22:40:29 -07:00
sk89q
ae8becafdd Code cleanup. 2014-04-04 16:09:05 -07:00
sk89q
e0fd804f70 Standardized file headers. 2014-04-04 15:23:11 -07:00
sk89q
b9c1dc6231 Fixed equals() without hashCode(). 2014-04-04 14:40:51 -07:00
sk89q
478ce3f627 Fixed utility classes having constructors. 2014-04-04 14:35:12 -07:00
sk89q
08900cbfc2 Removed foundation.* package. 2014-04-02 21:23:14 -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