Commit Graph

63 Commits

Author SHA1 Message Date
sk89q
a3c542b74f The /butcher command no longer kills mobs with a name tag.
PR: https://github.com/sk89q/worldedit/pull/292

Conflicts:
	src/bukkit/java/com/sk89q/worldedit/bukkit/BukkitWorld.java
	src/main/java/com/sk89q/worldedit/command/BrushCommands.java
	src/main/java/com/sk89q/worldedit/command/UtilityCommands.java
2014-05-01 17:36:11 -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
7ed1718d21 Moved LocalWorld's members upwards to AbstractWorld and World. 2014-04-04 22:40:29 -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
9d08f266bf Created pattern, mask, and block registries.
Deprecated getBlock, getBlockPattern, and so-on in WorldEdit.
2014-04-03 17:52:53 -07:00
sk89q
08900cbfc2 Removed foundation.* package. 2014-04-02 21:23:14 -07:00
sk89q
fa24eb60fa Added getLazyBlock() to Extent for performance. 2014-03-31 18:22:44 -07:00
sk89q
fe25d08267 Removed notifyAdjacent from Extent.setBlock().
Also fixed Extent's incorrect Javadocs.
2014-03-31 17:20:54 -07:00
sk89q
e7fe787b20 Broke up EditSession into many Extents. 2014-03-31 16:55:58 -07:00
sk89q
41c4033fbb Added LocalWorld.createLiquidMask(). 2014-03-30 14:16:06 -07:00
sk89q
75bee27610 Move Extent to extent sub-package. 2014-03-30 12:03:12 -07:00
sk89q
70f409975e Added support for Extent interface. 2014-03-29 21:05:09 -07:00
TomyLobo
8868aa94d3 The /butcher command no longer kills mobs with a name tag.
This behaviour can be overridden with the new -t flag.
The -f flag encompasses this flag.
2014-03-27 08:21:07 +01:00
TomyLobo
6262fe35bd Fixed some javadocs. 2014-03-23 22:26:08 +01:00
Wizjany
57327fd37f Add support for skull blocks. 2013-01-13 04:37:36 -05:00
Wizjany
6c189c4ff9 Added butcher flag for ambient mobs. 2012-12-25 18:42:43 -05:00
TomyLobo
186fbb98a2 Changed all references to BaseItem.getDamage to getData. 2012-08-24 13:39:52 +02:00
TomyLobo
07e270289e Removed @Deprecated from getBlockType/Data. 2012-08-24 13:39:43 +02:00
sk89q
48af65cac3 Updated foundation classes a bit and added raw access for NBT. This release marks experimental support for custom blocks, and nearly all future Minecraft blocks, and is also the beginning of the gradual transition to the new foundation classes as a replacement of the current BaseBlock, etc. classes. 2012-08-23 16:52:37 -07:00
zml2008
c76f119fa4 Added basic entity handling with copy and paste.
Paintings do not currently respawn properly, entity pastes cannot be undone yet, and schematics do not yet store entities
@celticminstrel needs to fix painting spawning
2012-03-29 21:18:14 -07:00
zml2008
0702a0f0ac Improved Spout biome handling and add LocalWorld method for setting biome 2012-03-20 22:45:48 -07:00
aumgn
a8eeacccd4 Add biome support
Add a BiomeTypes interface
Add methods in ServerInterface to retrieve the implemented BiomeTypes
Add a getBiome method to LocalWorld and subclasses
Add /biomeinfo & /biomelist commands
Add a BiomeTypeMask
Closes #181
2012-03-20 18:09:48 -07:00
zml2008
b6d1146427 Added support for new tree types to TreeGenerator and make adding more tree types later easier 2012-03-17 15:28:49 -07:00
aumgn
499f3ccda7 Add a -f (friendly) flag to butcher 2012-03-17 09:46:24 +01:00
Jadedwolf
b2eb2741eb Temporary solution to fix Golems being butchered. This includes Iron and snow golems. 2012-03-17 09:25:57 +01:00
zml2008
373e4b90c9 Clean up some stray 128 values and update the defaults 2012-03-01 20:47:19 -08:00
sk89q
09f3364d9f Moved the block data check to LocalWorld, adding preliminary support for custom blocks.
All unknown blocks are now assumed to carry data, and so this will also future proof WorldEdit (for the immediate future). However, be aware that full custom block support requires carrying TileEntity data (and perhaps other data) and that is not yet supported.
2012-02-05 17:47:09 -08:00
TomyLobo
8aa65fd7f4 License block changes
Added some missing license blocks
Added "and contributors" to all copyright notices.
Added $Id$ to files that were still missing it.
Changed "All rights reserved" to GPLv3 on Injector.java.
2012-01-20 08:24:32 +01:00
TomyLobo
050442fac3 Added a -l flag to /butcher, which spawns fake lightning on all killed entities. 2011-12-21 19:03:21 +01:00
zml2008
98216e2762 Added support for non-128 worldheights 2011-12-13 04:50:53 +01:00
TomyLobo
c21c380bba Added a -a flag to /butcher to kill animals. Its now disabled by default. 2011-12-06 07:10:15 +01:00
TomyLobo
bc3a4377ec The /butcher command no longer kills NPCs, except when the -n flag is passed.
Also:
- Moved some code from BukkitWorld to LocalWorld.
- Replaced the "boolean killPets" argument by an "int flags" to provide extensibility
- Made the radius argument a double
- Basically rewrote the entire function
- Deprecated all old versions of killMobs
2011-12-06 06:50:11 +01:00
TomyLobo
7a429e9932 Made Node.getPosition final and fixed some whitespace in LocalWorld. 2011-12-04 20:06:23 +01:00
TomyLobo
6be514cdf9 Added LocalWorld.queueBlockBreakEffect. 2011-11-29 09:15:29 +01:00
TomyLobo
36fbfa409f Added LocalWorld.playEffect and an implementation for Bukkit. 2011-11-28 07:13:19 +01:00
TomyLobo
7e13b60a51 Cleanup 2011-11-23 04:48:40 +01:00
TomyLobo
6b0f237a46 Removed extra fastLighting flag.
Fast lighting is now used when available.
2011-10-31 03:28:05 +01:00
Wizjany
699807665d Cleanup 2011-10-29 11:57:45 -04:00
TomyLobo
7dfc2a34e5 Improved fast mode.
BukkitWorld's fast lighting mode now also does what the old fast mode did.
In addition, both fast lighting mode and the fallback resend all modified chunks when done.
This should prevent display issues.
2011-10-25 18:41:07 +02:00
TomyLobo
e8dcee1acf Added LocalWorld.fixLighting(Set<BlockVector2D>)
This method redos lighting in the given chunks.
BukkitWorld's current implementation introduces some slight errors and doesn't redo torch light, but it's better than nothing.
2011-10-24 13:35:48 +02:00
zml2008
050eef8dc7 Fixed checkLoadedChunk 2011-10-10 02:01:50 -04:00
zml2008
3bbebcd64e Updated for Bukkit changes. 2011-09-24 15:45:49 -07:00
Wizjany
b5b55a2775 Cleanup and a few bugfixes 2011-09-24 15:24:10 -04:00
TomyLobo
88b4f4de18 Cleanup.
- Fixed a few warnings
- Unified the formatting of the command prologue
- Put down why it was deprecated in the javadoc of a deprecated method.
- Gave //none a better usage line
- Switchcaseified some elseifs
2011-09-19 07:24:49 +02:00
zml2008
3f369f104a Abstracted type detection of simulateBlockMine into BlockType. 2011-09-17 22:00:14 -07:00
Wizjany
afa8e873e9 Reverted block id checking in BukkitWorld to prevent false positives and made LoclWorld use the internal list for easier updates 2011-09-14 21:27:24 -04:00
TomyLobo
3bcd9a932b Replaced lots of else if constructs by switch/case and other simpler constructs. 2011-09-05 04:20:36 +02:00
Wizjany
4c00a24c1d Abstracted all block IDs to BlockID and item ids to ItemType. Overloaded recently changed methods for compatibility and cleaned a few things up. 2011-09-03 13:01:51 -04:00
zml2008
bc6315fb24 Fixed getting and setting of blocks in unloaded chunks 2011-08-29 17:31:08 -07:00