Commit Graph

1325 Commits

Author SHA1 Message Date
Bukkit/Spigot
db2058e2d0 Add enchantment storage meta. Adds BUKKIT-3237
Books can 'store' enchantments that can be applied to other items later.
These enchantments exist seperately of enchantments that actually effect the
item, and are as stated 'stored' in the book instead of the book being
enchanted. The meta is generically named as the concept could be applied to
other item types later, such as a enchantment scroll.

All of the methods mimic those in the base meta, but instead specify
'stored' in each method name.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-21 07:28:33 -06:00
Bukkit/Spigot
817fc4e584 Add FireworkEffect and respective item metas. Adds BUKKIT-3236
FireworkEffect is an immutable class that requires the builder pattern
to construct, to reduce ambiguity and help make code uses more readable.

FireworkMeta contains a list of effects, as well as a flight height.

FireworkEffectMeta contains a single effect for charges.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-21 09:06:56 -06:00
Bukkit/Spigot
5ec9be7042 Add API to allow plugins to request players switch to a texture pack. Adds BUKKIT-2579
The setTexturePack method causes the player's client to
download and switch to a texture pack specified by a URL.

Note: Players can disable server textures on their client, in which
case this API would not affect them.

By: Wojciech Stryjewski <thvortex@gmail.com>
2012-10-09 16:12:24 -05:00
Bukkit/Spigot
ed7ae6c6d9 Update Bukkit to Minecraft 1.4.6
By: feildmaster <admin@feildmaster.com>
2012-12-20 08:38:59 -06:00
Bukkit/Spigot
e3062d10cb Updated version to 1.4.5-R1.1-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-12-19 06:15:29 -05:00
Bukkit/Spigot
9ed1925110 Updated version to 1.4.5-R1.0 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2012-12-19 06:07:57 -05:00
Bukkit/Spigot
9711df6414 Apply commandBlockOutput to broadcastMessage. Addresses BUKKIT-3117
By: feildmaster <admin@feildmaster.com>
2012-12-18 04:47:56 -06:00
Bukkit/Spigot
a5f7cfdd0a Refactor get/setChestPlate to Chestplate. Addresses BUKKIT-3189
This method was inconsistent with previous methods.

By: feildmaster <admin@feildmaster.com>
2012-12-18 03:37:37 -06:00
Bukkit/Spigot
87f538df31 Fix MaterialData directions being incorrect. Fixes BUKKIT-3160
Prior to 49690f9, BlockFaces were mostly correct in their respective
MaterialData classes. However, a lot of things were not updated since
implementation and broke without being addressed.

This fixes any discrepancies with Block data.

By: feildmaster <admin@feildmaster.com>
2012-12-15 23:25:19 -06:00
Bukkit/Spigot
fb2cf30fbe Deprecate methods in JavaPluginLoader and PluginClassLoader
These methods are unnecessarily exposed. They are specific to a type of
implementation for the class loaders, and should have no external use.
Because these methods are exposed, it limits the versatility to change
how the internal class loading system works, including an inherent class
loader leak for some situations.

They are now replaced with internal, package-private methods. The public
facing methods will print a stack trace the first time one is activated.

Extending the classes also produces a stack trace, to indicate that
extension is not actively supported.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-18 00:15:40 -06:00
Bukkit/Spigot
982f31e75c Clarify functionality in Inventory. Fixes BUKKIT-3097
Mainly javadoc changes to be specific in functionality and outcomes. This is
mixed with specifying that null Material should throw IllegalArgumentException
instead of the previous undefined NullPointerException.

Included is a clarification on how contains(ItemStack, int) works, and a new
method containsAtLeast(ItemStack, int) for counting the number of a specific
item.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-17 16:09:56 -06:00
Bukkit/Spigot
ac66053f35 Add ItemMeta factory and interfaces. This adds BUKKIT-15
Included with ItemMeta is a new serializable class Color.

PotionEffects are now serializable.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-17 01:16:28 -06:00
Bukkit/Spigot
2bf21e7e18 Add Material methods. Adds BUKKIT-3161, BUKKIT-3162, BUKKIT-3163,
BUKKIT-3164

This adds an isFlammable method, to indicate if a block can catch fire.

This adds an isTransparent method, to check if light can pass through.

This adds an isOccluding method, to check if it fully blocks vision.

This adds an isBurnable method, to indicate if a block can burn away.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-14 02:03:05 -06:00
Bukkit/Spigot
e5f57b28c9 Add EntityEquipment API. Adds BUKKIT-3103
By: feildmaster <admin@feildmaster.com>
2012-12-09 00:52:20 -06:00
Bukkit/Spigot
9e827c037c Bump JUnit version
By: Wesley Wolfe <weswolf@aol.com>
2012-12-09 18:14:54 -06:00
Bukkit/Spigot
d50460fb2d Add isSolid() to Material. Adds BUKKIT-3131
A 'solid' material indicates that it is a block and cannot be passed
through.

By: Wesley Wolfe <weswolf@aol.com>
2012-12-09 15:13:25 -06:00
Bukkit/Spigot
4cc9a1bec4 An executor set to null will now use the plugin. Fixes BUKKIT-3127
By: feildmaster <admin@feildmaster.com>
2012-12-09 00:19:55 -06:00
Bukkit/Spigot
7536c357fc Add FurnaceExtractEvent. Addresses BUKKIT-2114
Added a "BlockExpEvent" to hold experience and the handlers for the events

By: feildmaster <admin@feildmaster.com>
2012-12-07 19:12:32 -06:00
Bukkit/Spigot
c87e48bb00 Provide a faster way to get a location. Adds BUKKIT-3120
Currently when a plugin wants to get the location of something it calls
getLocation() which returns a new Location object. In some scenarios this
can cause enough object creation/destruction churn to be a significant
overhead. For this cases we add a method that updates a provided Location
object so there is no object creation done. This allows well written code
to work on several locations with only a single Location object getting
created.

Providing a more efficient way to set a location was also looked at but
the current solution is the fastest we can provide. You are not required
to create a new Location object every time you want to set something's
location so, with proper design, you can set locations with only a single
Location object being created.

By: Travis Watkins <amaranth@ubuntu.com>
2012-12-07 19:48:19 -06:00
Bukkit/Spigot
3cf005da64 Add API to get and set collar colors of wolves
By: feildmaster <admin@feildmaster.com>
2012-12-05 18:03:24 -06:00
Bukkit/Spigot
eaf21d744e Deprecate the scheduleAsync methods.
The name is misleading, as it can be misconstrued to mean "a sync"
instead of properly understanding it as "an async"

By: Wesley Wolfe <weswolf@aol.com>
2012-12-05 13:18:47 -06:00
Bukkit/Spigot
fbc20e59c1 Add getShutdownMessage() and stop command arguments. Adds BUKKIT-3031
By: feildmaster <admin@feildmaster.com>
2012-12-05 05:55:26 -06:00
Bukkit/Spigot
f545b84e46 [BREAKING] EntityChangeBlockEvent can be non-living. Adds BUKKIT-3078
Non-living entities can change blocks, specifically falling blocks. This change is a small source break, but mainly a byte-code break (requires plugins to recompile).

By: Wesley Wolfe <weswolf@aol.com>
2012-11-30 12:08:30 -06:00
Bukkit/Spigot
89d79e64db Add API for controlling mob despawn away from players. Adds BUKKIT-2986
By: Travis Watkins <amaranth@ubuntu.com>
2012-12-04 19:16:33 -06:00
Bukkit/Spigot
711f3f1007 [BREAKING] Update BlockFace directions. Fixes BUKKIT-1567, BUKKIT-3069
If you use BlockFace in any way, to compensate the directionals being incorrect, you can still have backwards compatibility if you add in the handling in your plugin:
boolean legacyBlockFace = BlockFace.NORTH().getModX() == -1; (and then handle it accordingly)

If you didn't special case your directions to fix what's being fixed here... Hurray! Your plugin should now work.

By: feildmaster <admin@feildmaster.com>
2012-12-01 00:21:22 -06:00
Bukkit/Spigot
9e0336d03c Add data values for entity change block event. Adds BUKKIT-3077, BUKKIT-3076
By: Wesley Wolfe <weswolf@aol.com>
2012-11-30 12:07:10 -06:00
Bukkit/Spigot
81cc73ac21 Add API for creating explosions without damaging blocks. Fixes BUKKIT-3061
By: feildmaster <admin@feildmaster.com>
2012-11-27 18:31:12 -06:00
Bukkit/Spigot
09c601dfa5 Make RECORD_12 a record. Fixes BUKKIT-3023
Record 12 was missed when added to the Material enum.

By: Wesley Wolfe <weswolf@aol.com>
2012-11-24 02:26:07 -06:00
Bukkit/Spigot
d2e8c21941 Cache material data constructors. Fixes BUKKIT-2980
Reobtaining a constructor is not a trivial operation, this change makes the Material enum store the respective constructors for each MaterialData.

Additionally 'fixed' the material tests to use proper generics.

By: Darth Android <darthandroid@gmail.com>
2012-11-17 11:13:58 -06:00
Bukkit/Spigot
f70c5fcd4c Updated version to 1.4.5-R0.3-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-11-20 20:34:06 -05:00
Bukkit/Spigot
69dc9e44d6 Updated version to 1.4.5-R0.2 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2012-11-20 20:06:15 -05:00
Bukkit/Spigot
6cebaa530c Add DamageCause for FallingBlocks. Adds BUKKIT-2781
By: feildmaster <admin@feildmaster.com>
2012-11-20 16:54:43 -06:00
Bukkit/Spigot
4e75dc1efc Updated version to 1.4.5-R0.2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-11-18 22:50:48 -05:00
Bukkit/Spigot
907a169d89 Updated version to 1.4.5-R0.1 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2012-11-18 22:39:58 -05:00
Bukkit/Spigot
9ca4736334 Add ability to pass 'max' as 'level' for EnchantCommand.
By: EvilSeph <evilseph@gmail.com>
2012-11-18 17:45:00 -05:00
Bukkit/Spigot
80c0396bdb Update sounds for Minecraft 1.4.2 changes. Fixes BUKKIT-2849
By: Karl Fritsche <github@attrib.org>
2012-11-05 22:10:09 +01:00
Bukkit/Spigot
e788e4799e Add API for getting and setting Skeleton and Zombie types. Fixes BUKKIT-2818
By: James Clarke <jamesrtclarke@me.com>
2012-11-05 18:09:38 +00:00
Bukkit/Spigot
0a9f6c2cc2 Add default EnchantCommand. Tim, The Enchanter - I AM DEATH! Adds BUKKIT-2961
By: EvilSeph <evilseph@gmail.com>
2012-11-16 16:11:30 -06:00
Bukkit/Spigot
cf99b7e756 Essential core commands shouldn't be overriden. Fixes BUKKIT-1546
By: EvilSeph <evilseph@gmail.com>
2012-11-16 23:47:07 -05:00
Bukkit/Spigot
e80af045dc Update Bukkit for Minecraft 1.4.5 changes.
By: Travis Watkins <amaranth@ubuntu.com>
2012-11-16 10:12:54 -06:00
Bukkit/Spigot
3db888ac01 Add aliases to TellCommand to bring us in line with Vanilla behaviour.
By: EvilSeph <evilseph@gmail.com>
2012-11-15 22:28:46 -05:00
Bukkit/Spigot
9267baab20 Remove unnecessary Overrides in Default commands.
By: EvilSeph <evilseph@gmail.com>
2012-11-15 23:03:03 -05:00
Bukkit/Spigot
bf632e042c Made KillCommand set the player health to 0 to allow it to work in Creative. Fixes BUKKIT-2949
By: EvilSeph <evilseph@gmail.com>
2012-11-15 21:08:19 -05:00
Bukkit/Spigot
8cb39a7daf Added proper feedback to default commands.
By: EvilSeph <evilseph@gmail.com>
2012-11-15 22:52:04 -05:00
Bukkit/Spigot
49c3dee8f8 Make some JavaPlugin methods final. Fixes BUKKIT-2916
These methods were never intended to be overwritten, and bukkit relies
on their internal functionality. Additionally, the methods were inlined
in JavaPlugin, but the finality maintains intention.

By: Wesley Wolfe <weswolf@aol.com>
2012-11-13 15:38:46 -06:00
Bukkit/Spigot
b036c9d3e5 Update Bukkit for Minecraft 1.4.4 changes.
By: Travis Watkins <amaranth@ubuntu.com>
2012-11-06 06:04:18 -06:00
Bukkit/Spigot
951daac232 Updated version to 1.4.2-R0.3-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-11-03 01:08:00 -04:00
Bukkit/Spigot
0eabf7747e Updated version to 1.4.2-R0.2 in pom.xml for Beta.
By: EvilSeph <evilseph@gmail.com>
2012-11-03 00:50:26 -04:00
Bukkit/Spigot
7d31c12b25 Add yaw and rotation to default TeleportCommand. Fixes BUKKIT-2774
By: EvilSeph <evilseph@gmail.com>
2012-10-31 21:26:43 -04:00
Bukkit/Spigot
c5eaa31741 Updated version to 1.4.2-R0.2-SNAPSHOT for development towards next release.
By: EvilSeph <evilseph@gmail.com>
2012-10-31 20:51:51 -04:00