Commit Graph

190 Commits

Author SHA1 Message Date
mbax
6fb1647394 Add Scoreboard API and Command. Adds BUKKIT-3776, BUKKIT-3834
The implementation is designed around having both a main scoreboard and
numberous plugin managed scoreboards that can be displayed to specific
players.

Plugin managed scoreboards are active so long as a reference is kept by a
plugin, or it has been registered as a player's active scoreboard. Objects
specific to a scoreboard remain active until unregistered (which remove a
reference to the owning scoreboard), but quickly fail if accessed
post-unregistration.
2013-04-03 23:32:54 -05:00
Edmond Poon
409595c2a2 Pulling all pending Bukkit-JavaDoc changes 2013-04-02 00:11:22 -04:00
Andre LeBlanc
c84d619368 Allow fishing success rate to be adjustable. Adds BUKKIT-3837 2013-03-25 14:44:01 -04:00
Olof Larsson
f62fbdb34c Add ability to modify ThrownPotion properties. Adds BUKKIT-3197 2013-03-21 15:17:31 -04:00
AlphaBlend
62cc82ac8f Add method to get the source of a TNTPrimed. Adds BUKKIT-3815 2013-03-21 12:48:53 -06:00
T00thpick1
4a23f3f2d0 Add per-player Weather API. Adds BUKKIT-812 2013-03-18 13:09:11 -05:00
Michael Limiero
3091c16621 Make HopperMinecart implement InventoryHolder. Adds BUKKIT-3796 2013-03-18 12:13:28 -05:00
Travis Watkins
51798af209 No @Override here in Java 1.5. 2013-03-17 22:29:05 -05:00
Chad Waters
be85e48979 Add Entity.isOnGround(). Adds BUKKIT-3787 2013-03-17 22:24:22 -05:00
Wesley Wolfe
3645b38ea5 Moved all specific minecart entities to sub-package.
This change is breaking for the new API for 1.5, including the interfaces for
the three new Minecart types and the name of the previously TNT_MINECART
material.

This change also deprecates the two previous specific minecart types located
in the org.bukkit.entity package. This deprecation is not a breaking change
and will still be internally supported.

Each minecart type has new javadoc to be slightly more descriptive. Included
with this are specific references to the interface for each respective
EntityType entry. Another package-info.java file has been included as well.

All specific minecart types extend minecart, each with a more descriptive
name. The naming will also follow the old convention. In addition, the
minecart with no specific designation is now more closely referred to as a
rideable minecart.
2013-03-16 02:30:31 -05:00
Travis Watkins
f9917ef1c6 Use proper naming convention for boolean methods. 2013-03-15 14:25:18 -05:00
Travis Watkins
9b0ecdfc76 Update Bukkit for Minecraft 1.5 2013-03-15 13:26:46 -05:00
feildmaster
bbc75c4a68 Improve javadoc in 26 files.
Addresses:
BUKKIT-1643, BUKKIT-1868, BUKKIT-1846, BUKKIT-2632, BUKKIT-3196,
BUKKIT-3187, BUKKIT-3198, BUKKIT-3200, BUKKIT-3201 and BUKKIT-3417.
2013-01-22 16:41:00 -06:00
feildmaster
0f92972fe2 Add methods to set and reset max health. Adds BUKKIT-266 2012-12-23 07:28:37 -06:00
feildmaster
505d128c50 Add firework api to get and set Firework ItemMeta 2012-12-21 23:55:02 -06:00
Wojciech Stryjewski
73cabfbd0f 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.
2012-12-20 22:20:56 -05:00
feildmaster
70b440e189 Update Bukkit to Minecraft 1.4.6 2012-12-20 11:26:32 -06:00
feildmaster
5d6592e5d2 Add EntityEquipment API. Adds BUKKIT-3103 2012-12-10 19:09:58 -06:00
Travis Watkins
0700565d8b 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.
2012-12-07 21:18:31 -06:00
feildmaster
089ab8e525 Add API to get and set collar colors of wolves 2012-12-05 18:03:24 -06:00
Travis Watkins
f5a0cf0821 Add API for controlling mob despawn away from players. Adds BUKKIT-2986 2012-12-04 21:30:44 -06:00
James Clarke
95f68e9d36 Add API for getting and setting Skeleton and Zombie types. Fixes BUKKIT-2818 2012-11-17 10:05:53 -06:00
h31ix
ccd030487b Add API for ItemFrames. Adds BUKKIT-2668
As well as adding methods for ItemFrames, this moves some methods
previously contained in Painting to Hanging, as they are shared by both
classes.

An enum was added that represents rotations, similar to a clock-face.
This is needed as a contrast to cardinal direction based rotations.
2012-10-31 01:19:33 -05:00
EvilSeph
b9dda28b5b Update ExpCommand with levels support. Fixes BUKKIT-2683 and partially fixes BUKKIT-2671 2012-10-29 23:18:18 -04:00
feildmaster
d2df73a75e Revert FIREBALL being renamed to LARGE_FIREBALL 2012-10-29 19:59:53 -05:00
EvilSeph
e899b06d4d Expose setBedSpawnLocation with force option. Adds BUKKIT-2709 2012-10-29 04:58:51 -04:00
Travis Watkins
d5d1b41c02 Update Bukkit for Minecraft 1.4(.2) changes. 2012-10-27 22:15:59 -04:00
feildmaster
a32b392c00 Add API for Sound, and playing the sounds for Worlds and Players. Adds BUKKIT-1430, BUKKIT-1226 and BUKKIT-2019 2012-08-21 17:15:48 -05:00
feildmaster
4d2dbee97f Add API to retrieve a players EnderChest. Adds BUKKIT-2016 2012-08-20 16:01:35 -05:00
feildmaster
28031fe19b Add interface for spawning FallingBlocks and correctly spawn a FallingBlock with the spawn(Location, FallingBlock.class) method. Adds BUKKIT-2282
Also add FallingBlock and methods.

Deprecated FallingSand to emphasize FallingBlock.
2012-08-14 07:39:44 -05:00
Wesley Wolfe
75d46314b6 Add API to set and get movement modifiers. Addresses BUKKIT-2205 2012-08-10 00:19:21 -05:00
feildmaster
ec51c24641 Add API to get a players experience to level (getExpToLevel). Implements BUKKIT-1906
This is the total experience one needs to gain a level.
2012-07-11 17:12:26 -05:00
TomyLobo
945ff9eebb Add an isValid() method to Entity. Addresses BUKKIT-810 2012-06-28 19:33:33 -05:00
TomyLobo
6525a30e74 Add LivingEntity.hasLineOfSight. Addresses BUKKIT-1255 2012-06-23 10:58:01 -05:00
feildmaster
537138e9b2 Javadoc updates
Fixes BUKKIT-1653, Fixes BUKKIT-1383 and Fixes BUKKIT-1644
2012-06-03 05:40:54 -05:00
Wesley Wolfe
5630ae217c Add getName() to AnimalTamer 2012-05-24 22:33:45 -05:00
Nathan Adams
153168d8bd Added player.isFlying|setFlying to check if a player is flying, or make them fly/not. This implements BUKKIT-1281. 2012-03-22 22:03:47 +00:00
aPunch
ff9aecf4be [Bleeding] Added Ageable interface for Villagers and Animals to extend. Addresses BUKKIT-1232 2012-03-21 15:43:19 -04:00
aPunch
12a411afb1 [Bleeding] Added way to get/set if an Iron Golem was player created. Addresses BUKKIT-1229 2012-03-20 05:13:22 -04:00
Celtic Minstrel
e783a03aa3 [Bleeding] Added Player.isBlocking(). Addresses BUKKIT-858 2012-03-13 19:41:33 -04:00
EvilSeph
4c2068702a Made Ocelot implement isSitting() and setSitting(). Fixes BUKKIT-993 2012-03-09 15:01:28 -05:00
Celtic Minstrel
99e1a92191 Fix incorrect entity ID for iron golem. Addresses BUKKIT-1088 2012-03-08 15:11:27 -05:00
Nathan Adams
94a61cc3a5 Added Villager API for getting/setting Profession. This adds BUKKIT-887 2012-03-03 01:58:30 +00:00
Nathan Adams
23aaa912a4 Fixed Ocelot.Type lookup - this fixes BUKKIT-952 2012-03-03 00:46:27 +00:00
Nathan Adams
25f303ccde Added a bunch of new 1.2 entities; this partially resolves BUKKIT-872 and BUKKIT-885. 2012-03-01 18:01:40 +00:00
rmichela
49c34510e3 [Bleeding] Added Conversations API. Addresses BUKKIT-864 2012-03-01 03:52:18 -05:00
Celtic Minstrel
18a4a25c8b Adding/expanding documentation 2012-02-29 21:31:33 -05:00
Celtic Minstrel
17403d617a Fix javadoc errors/warnings 2012-02-29 21:31:28 -05:00
EvilSeph
de1a89f90f Re-added launchProjectile lost due to incorrect conflict resolution. 2012-02-29 18:31:20 -05:00
Celtic Minstrel
0b77483c2f [Bleeding] Inventory framework and events. Addresses BUKKIT-856
New events:
- InventoryOpenEvent
- InventoryClickEvent - detects any clicks on a slot or outside the window
  - In the creative inventory view, only clicks on the quickbar are detected
- InventoryCloseEvent
- BrewEvent - when a potion finishes brewing
- CraftItemEvent (a subevent of InventoryClickEvent) - fired when taking the crafted item
- PrepareItemCraftEvent - fired just before updating the result slot
Changes to existing events:
- EnchantItemEvent extends InventoryEvent and also has a new whichButton() method
- PrepareItemEnchantEvent also extends InventoryEvent
- FurnaceBurnEvent and FurnaceSmeltEvent now extend BlockEvent (as does BrewEvent)
- PlayerInventoryEvent is deprecated (though it never did anything anyway)
New subclasses of Inventory:
- BrewerInventory
- CraftingInventory
- DoubleChestInventory
- EnchantingInventory
- FurnaceInventory
New methods in Inventory:
- getViewers()
- getTitle()
- getType()
- getHolder()
- iterator() - Yes, inventories are now iterable!
  - The iterator is a ListIterator that does not support add or remove
New methods in Player:
- getOpenInventory()
- openInventory()
- openWorkbench()
- openEnchanting()
- closeInventory()
- setWindowProperty()
- getItemOnCursor()
- setItemOnCursor()
Other changes:
- createInventory() methods in Server to make inventories not linked to an object
- ContainerBlock is deprecated in favour of InventoryHolder
- New InventoryView class gives direct access to an inventory window!
- Removed the Slot class which did nothing and was used nowhere

Some small credit goes to Afforess (initial conception of openInventory() methods) and Drakia (initial conception of InventoryOpenEvent and InventoryCloseEvent).
2012-02-29 15:18:56 -05:00