48 Commits

Author SHA1 Message Date
afforess
446dfee6d5 Entity.isDead returns true if the entity has been marked for removal 2011-04-02 17:20:05 +02:00
Dinnerbone
88771cac97 Added Wolf creature interface 2011-03-31 22:10:28 +01:00
Erik Broes
08e33ad0c6 Add 'MONSTER' to CreatureType 2011-03-29 23:09:44 +02:00
Erik Broes
57b1b50610 Move passenger-handling to Entity 2011-03-29 23:09:44 +02:00
Dinnerbone
32b3c77165 Line endings, consistency! 2011-03-27 21:27:27 +01:00
Celtic Minstrel
3be580aa61 Add setSheared() to Sheep and setSize() to Slimes. 2011-03-26 18:28:28 +01:00
Erik Broes
48a7ac18da Add: player.getCompassTarget 2011-03-25 21:01:55 +01:00
Erik Broes
adfeb9c819 Add CreatureType.GIANT 2011-03-24 22:50:36 +01:00
Erik Broes
c1d9eac987 Long overdue LivingEntity maximumNoDamageTicks, noDamageTicks, lastDamage 2011-03-24 00:31:59 +01:00
Byron Shelden
fbbae50ba0 Replaced void teleportTo(Location) with boolean teleport(Location).
- The return value indicates if the teleport was successful.
 - void teleportTo(...) should delegate to the new teleport(...).
2011-03-23 18:38:48 +01:00
Dinnerbone
7867b27965 All previous deprecated methods removed (OH GOD EVERYTHING BROKEN) 2011-03-14 15:05:46 +00:00
sk89q
653df54406 Added Player.sendRawMessage(). 2011-03-12 01:06:02 -08:00
Andrew Ardill
e8d72030c8 Added LivingEntity.getEyeLocation() for getting the eyes location. 2011-03-09 19:12:10 +00:00
Dinnerbone
1de6f5bef8 Purged deprecated MobType and MobSpawner 2011-03-07 16:29:03 +00:00
Forsaken
90460b879f Added damage(int) and damage(int, Entity) for LivingEntity 2011-03-07 16:01:57 +00:00
Dinnerbone
ac7c369966 Deprecated momentum on player (remove tomorrow), added velocity 2011-03-05 18:48:32 +00:00
Dinnerbone
97d2adb536 Added entity.get/setMomentum 2011-03-04 14:24:09 +00:00
sk89q
a69e19a9f7 Added Item.(get|set)ItemStack(). 2011-02-23 10:03:33 -08:00
Dinnerbone
86aa75c3b5 ConsoleCommandSender no longer has a default constructor, use ConsoleCommandSender(server). Added entity.getServer 2011-02-23 11:33:03 +00:00
Tahg
dbab772ca8 refactor Items 2011-02-21 19:57:06 -05:00
sk89q
5e7a59167d Added Entity.remove() which marks an entity for removal. 2011-02-19 17:47:48 -08:00
sk89q
eaddcfc675 Added slime as a possible creature type. 2011-02-19 17:47:47 -08:00
Raphfrk
52954911bd Added target block ray trace functionality. 2011-02-18 20:47:59 -05:00
Protected
85a4bbce35 Added setFireTicks(), getFireTicks() and getMaxFireTicks(). 2011-02-18 17:34:58 -05:00
Andrew Ardill
ac68b8594e Renamed MobType->CreatureType and MobSpawner->CreatureSpawner.
This is to bring the names in line with the rest of bukkit.

Deprecated code has been left in to ensure nothing breaks as
a result of refactoring MobType.
This will be removed after 1 week, to give plugin devs time to
migrate
2011-02-17 18:01:25 +11:00
sk89q
eb150b642f Added Player.chat(). 2011-02-16 21:47:04 -08:00
EvilSeph
ae628136a7 Exposes the recently added updateInventory method.
We've decided to expose updateInventory as a temporary work-around for
 the inventory not updating issue we're aware of. The reasoning behind
 this is that addressing it properly will take some time and work and
 as this is clearly a roadblock for some plugin authors, the delay is
 not really acceptable.
2011-02-13 00:36:38 -05:00
afforess
18bbb73cd0 Added MaxSpeed methods to minecards. Added MaxSpeed methods to boats. Added SlowWhenEmpty, FlyingMod, and DerailedMod methods to minecarts.
Signed-off-by: afforess <afforess@gmail.com>
2011-02-12 03:18:29 -05:00
Andrew Ardill
7e5e89b744 Added Colorable interface, and made Sheep, Wool and Dye implement it.
Inspired by xpansive
2011-02-12 12:28:38 +11:00
Dinnerbone
f35b3e98f9 Added Creature.getTarget 2011-02-09 13:44:57 +00:00
James Logsdon
3f60ba1f91 Adding Creature.setTarget() per jlogsdon 2011-02-09 13:17:31 +00:00
Alexander Hesse
6ba990ecfd Added Sneaking Event 2011-02-08 17:09:11 +01:00
Erik Broes
01988e8f6b General cleanup (deprecated+whitespace) 2011-02-02 00:28:41 +01:00
Dinnerbone
3a1f5647e6 Added setItemStack(ItemStack stack) to ItemDrop 2011-02-01 10:43:31 +00:00
Dinnerbone
c6d4cbda5d Added getRemainingAir/setRemainingAir/getMaximumAir/setMaximumAir on LivingEntity 2011-01-31 01:23:21 +00:00
stevenh
39c4a5a2e9 merge with head 2011-01-29 17:18:32 +00:00
stevenh
a89a96416b Refactored event calling so its front loading avoiding the lookup for each event call.
This now uses an annoymous class implementing IExecutor that facilitates direct event method handler calling

Changed commands from being executed exclusively by a player to by a CommandSender to facilitate external command callers such as rcon

Fixed CustomEventListener

Merged in additional events

Added getFullName to PluginDescriptionFile which returns the combination of Name and Version

There's also a few bits of reformatting as it seems someones been editing with either tabs or dos eol :(
2011-01-29 16:23:56 +00:00
Dinnerbone
fb5ab3b5d6 Added player.performCommand(String) 2011-01-28 09:15:43 +00:00
sk89q
9a6bdd039d Added squid as a valid mob type. 2011-01-23 13:16:57 -08:00
sk89q
1f63ea78bb Added full tile entity data support for all block types that use it, including chests, dispensers, furnaces, mob spawners, and note blocks. 2011-01-23 00:37:36 -08:00
sk89q
c036295d7f Added compass setting methods. 2011-01-20 02:10:35 -08:00
Tahg
0a2f2c7b45 added isOp api 2011-01-18 22:32:05 -05:00
Andrew Ardill
06d99445d9 Added interfaces for every entity type. Most (if not all) are empty.
These are place holders at the moment, to be used when determining
entity type. Further functionality could be added to these interfaces
later.
2011-01-18 00:20:05 +08:00
Andrew Ardill
db5d43c2a9 Implementation of the EntityDamage*Events.
A new event EntityDamageByProjectileEvent was created. EntityDamageByProjectileEvent
adds the ability to get the projectile entity (such as an egg) and also set if
the projectile 'bounces'. New interfaces were created to facilitate all kinds
of projectile entities. Changes were made to facilitate the new event, and
enable other events, for plugins and event listeners.
2011-01-16 14:13:44 +01:00
sk89q
757fc26e4a Added item-in-hand related API. 2011-01-15 19:33:19 -08:00
sk89q
3fd9f09e01 Moved org.bukkit.Vector to org.bukkit.util. 2011-01-15 13:43:09 -08:00
Dinnerbone
ec69ae1033 All inventory stuff in org.bukkit moved to org.bukkit.inventory 2011-01-15 21:27:40 +00:00
Dinnerbone
4764962cf9 All entity stuff in org.bukkit moved to org.bukkit.entity 2011-01-15 21:20:59 +00:00