summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeLines
* Add missing calls to BlockRedstoneEvent. Adds BUKKIT-3926gjmcferrin@gmail.com2013-04-03-0/+27
| | | | | | | This adds calls to BlockRedstoneEvent for the new daylight sensor and trapped chest blocks. Note that the redstone level for trapped chests cannot be modified, as it is based on the number of players currently viewing the chest's inventory.
* Add BlockDaylightDetector from mc-dev for diff visibilitygjmcferrin@gmail.com2013-04-03-0/+71
|
* Properly return contents of Inventory. Fixes BUKKIT-3930h31ix2013-04-02-1/+2
| | | | | | When an array of an inventory's contents is requested, we loop through the contents of the NMS inventory's ItemStacks in order to return Bukkit ItemStacks that can be used through the API. However, the NMS ItemStack can, in some cases, be larger than the physical size of the inventory. Using the size of the NMS array as a limit on the loop that follows can result in an ArrayIndexOutOfBoundsException because the Bukkit array's length is the actual size of the inventory, and thus will be smaller. With this commit we use the smaller of the two arrays' length as the limit in the loop, thus eliminating the possibility that the smaller array will be asked for an index higher than its length.
* Set world on fixed tile entity to avoid NPE. Addresses BUKKIT-3949Travis Watkins2013-04-01-0/+1
|
* Fix mismatched tile entities for new blocks. Fixes BUKKIT-3949Travis Watkins2013-03-31-0/+16
|
* Don't update physics when block place is cancelled. Fixes BUKKIT-3939Travis Watkins2013-03-31-25/+29
| | | | | | | | | When a block placement happens we currently update physics on the attempted placement and update again if the placement is cancelled. To correct the first one we simply set the block without applying physics. To correct the second we have to add a new method to BlockState that lets us update without applying physics and use this method method when putting the block back.
* Correct slot types for brewing stand. Fixes BUKKIT-3937Travis Watkins2013-03-31-1/+1
|
* Throw exception for disabled plugin tasks. Fixes BUKKIT-3951Wesley Wolfe2013-03-31-0/+4
| | | | | | | | | | | Without this check, any non-null reference to a plugin is considered 'valid' for registering a task in the scheduler. This is obviously unintentional behavior and has been changed to throw an IllegalPluginAccessException. It is now consistent with the SimplePluginManager event registration contract. This in affect also addresses BUKKIT-3950 for uninitialized plugin references (ones without a description).
* Limit hopper to valid directions. Fixes BUKKIT-3940Travis Watkins2013-03-31-1/+1
|
* Add BlockHopper from mc-dev for diff visibility.Travis Watkins2013-03-31-0/+166
|
* Include anvil result in inventory size. Fixes BUKKIT-3741Travis Watkins2013-03-30-3/+19
|
* Only call event when turning pressure plate on. Fixes BUKKIT-3881Travis Watkins2013-03-29-15/+17
|
* Special case large chests for hopper events. Fixes BUKKIT-3916Travis Watkins2013-03-29-1/+8
| | | | | | | | Large chests work in a different fashion as they are a combination of two other inventories. This causes their getOwner method to always return null as their is no correct return. To compensate for this for the hopper events we special case them to use their CraftBukkit counterpart that has the information we need for the event.
* Add Beacon block state for hopper events. Fixes BUKKIT-3932Travis Watkins2013-03-29-1/+40
|
* Call PotionSplashEvent even for no effects. Fixes BUKKIT-3618EdGruberman2013-03-28-2/+2
| | | | | | | | | | When a splash potion has no applicable effects we currently do not call PotionSplashEvent. This means plugins are unable to make custom potions with reliable splash handling as they have to relicate the functionality themselves. With this commit we simply make the event fire regardless of the effects on the potion.
* Call appropriate event for zombies igniting players. Adds BUKKIT-3915gjmcferrin@gmail.com2013-03-28-2/+12
|
* Properly copy collection references in ItemMeta.clone(). Fixes BUKKIT-3913Wesley Wolfe2013-03-28-5/+12
| | | | | | | | | | | | When cloning an item, all references are copied to the new item. For collections, this makes internal changes become visible in both the old and new items. In CraftMetaItem, clone was not making copies of the appropriate collections and has been fixed for non-null values. In CraftMetaEnchantedBook and CraftMetaPotion, clone was using possible empty collection references and has been changed to explicitly null-check instead.
* Correct missed diff on skeletons. Fixes BUKKIT-3912Travis Watkins2013-03-28-1/+1
|
* Improve calling of ProjectileHitEvent. Fixes BUKKIT-3872Andre LeBlanc2013-03-26-15/+10
|
* Add missing semicolonriking2013-03-25-1/+1
| | | | | | | | I should try to compile before I say "this change is okay". I should try to compile before I say "this change is okay". I should try to compile before I say "this change is okay". I should try to compile before I say "this change is okay". for i in range(100)
* Allow plugins to enchant already enchanted items. Fixes BUKKIT-1956Kristofer Henriksson2013-03-25-1/+2
| | | | | | This causes the server to generate PrepareItemEnchantEvent even in the case that an item is already enchanted or otherwise would normally not be enchantable.
* Call EntityChangeBlockEvent when boats destroy blocks. Fixes BUKKIT-3871Black-Hole2013-03-25-0/+13
|
* Allow fishing success rate to be adjustable. Adds BUKKIT-3837Andre LeBlanc2013-03-25-7/+22
|
* Add methods to check conflicting enchantments. Adds BUKKIT-3830GJ2013-03-25-0/+69
|
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-471/+421
|
* Add ability to change player item in hand. Adds BUKKIT-3318Patrick Seidel2013-03-24-0/+13
|
* Don't assume all hoppers are blocks. Fixes BUKKIT-3883Travis Watkins2013-03-24-1/+8
|
* Add check for Thorns damage - Fixes BUKKIT-3505riking2013-03-23-0/+2
|
* Include ThrownPotion in spawn methods. Adds BUKKIT-2542Carlos Cobo2013-03-23-0/+9
|
* Identify outside slot independent of inventory type. Fixes BUKKIT-2768EdGruberman2013-03-23-1/+1
|
* Implement InventoryMoveItemEvent. Adds BUKKIT-3765Dennis Bliefernicht2013-03-23-6/+58
| | | | | | This makes droppers, hoppers and hopper minecarts fire an InventoryMoveItemEvent whenever an item is being moved from or to another inventory.
* Fire VehicleEnterEvent for loaded chunks only. Fixes BUKKIT-3831me45022013-03-23-1/+1
|
* ANSI color codes now reset text attributes. Fixes BUKKIT-3508James Clarke2013-03-23-18/+18
| | | | The client resets all formatting after a color code is received, but currently the ANSI codes do not, and so the console does not accurately reflect the appearance of the formatted text. Instead, the ANSI color codes are now set to reset all text attributes.
* Cleanup and rework physical interaction events. Fixes BUKKIT-3686Travis Watkins2013-03-22-32/+54
| | | | | | | | | | Currently when dealing with physical interactions with pressure plates and tripwires we immediately block their activation as soon as a single entity involved has their event cancelled. We also fire events whenever an entity intersects the block a wooden button is in even if they aren't actually pressing it. To correct this we move the button interaction to the correct place and modify all three to only block the activation if every entity is blocked from using them instead of just one of them.
* Implement Dropper interface. Adds BUKKIT-3750Xephi2013-03-21-1/+57
|
* Add BlockDropper for diff visibilityXephi2013-03-21-0/+55
|
* Stationary lava is also a LAVA ignition cause.Travis Watkins2013-03-21-9/+10
|
* Add ability to modify ThrownPotion properties. Adds BUKKIT-3197Olof Larsson2013-03-21-8/+24
|
* Add method to get the source of a TNTPrimed. Adds BUKKIT-3815AlphaBlend2013-03-21-0/+15
|
* Add Fish (Hook) entity to PlayerFishEvent. Adds BUKKIT-1025Andre LeBlanc2013-03-20-7/+12
|
* Implement unit test for hasGravity(). Adds BUKKIT-3832nitnelave2013-03-20-0/+10
|
* Update CraftBukkit to Minecraft 1.5.1Travis Watkins2013-03-20-220/+296
|
* Really don't filter out -1 data in ItemStack.Travis Watkins2013-03-20-4/+6
|
* Handle filled buckets dispensing up and down. Fixes BUKKIT-3814Travis Watkins2013-03-20-10/+8
|
* Don't filter out -1 data in ItemStack. Fixes BUKKIT-3824Travis Watkins2013-03-20-2/+2
|
* Readd missed diff for minecart container size. Fixes BUKKIT-3826Travis Watkins2013-03-20-1/+1
|
* BlockState for Command Blocks. Adds BUKKIT-3805.Nate Mortensen2013-03-19-1/+51
|
* Validate Server method input. Addresses BUKKIT-3687Edmond Poon2013-03-18-6/+23
| | | | | | | | | | | | CraftServer methods that implement the Server interface will throw an IllegalArgumentException if a method cannot operate on a null input and given a null pointer. This causes methods to fail early and identify that a plugin is responsible for passing in an invalid argument. This will only change the exception thrown, if there originally was a thrown exception. This helps with hunting down legitimate problems with CraftBukkit.
* Only filter data on block items, not all items.Travis Watkins2013-03-18-1/+1
|
* Add /testfor command support to command block. Adds BUKKIT-3813Travis Watkins2013-03-18-2/+23
|