Commit graph

2437 Commits

Autor SHA1 Nachricht Datum
FeepingCreature
0e821e60c9 Implement getSpawnLocation(). 2011-01-20 08:58:08 +08:00
Dinnerbone
bded4fb316 Fixed CLI arguments 2011-01-20 00:41:35 +00:00
Dinnerbone
46e1b54a74 Fixed blockcache being inaccurate 2011-01-20 00:17:44 +00:00
Nathan Wolf
0284663aee Address Feature#105:Implement support for PLAYER_ANIMATION hook/event.
Requires corresponding Bukkit change.

NOTE: The email address of this commit used to be: "Nathan Wolf < <nteske@gmail.com>"
      This has been fixed but will cause all commits after to change.
2014-09-09 13:13:36 +02:00
Uristqwerty
55b619a39b Probable fix for Bug #231. 2011-01-20 10:34:08 +11:00
Andrew Ardill
8bbb0749ef fixes some explosion events to stop accessing null entities.
Placed some tags against some spammy events.
2011-01-20 07:01:45 +08:00
speakeasy
e93061be48 Fix up NPE's in EntityMinecart/CraftVehicle and removed a little un-needed code in EntityArrow 2011-01-20 05:52:36 +08:00
speakeasy
eabdc7ffa9 Fix for NPE with dispenser+arrow bug. 2011-01-20 04:17:38 +08:00
speakeasy
bdd3c4dabe Change block ignite in flint and steel to be seperate from item use 2011-01-19 09:00:56 +08:00
Tahg
abb3c5eee6 reverted # from server console 2011-01-18 19:42:49 -05:00
Andrew Ardill
eace2d0f8a Further fixes to fire events
Moved lava ignition event into the correct position.
Spam should be reduced significantly.
2011-01-19 07:51:28 +08:00
speakeasy
abc4b35bcd Fix BlockIgniteEvent after someone updated it and missed some stuff. 2011-01-19 05:04:50 +08:00
Erik Broes
90c52739c4 Fixed getChunkAt and usage. 2011-01-18 12:38:41 +01:00
Andrew Ardill
3143e503fe Fix to slow fire spread hook, to check if a block is on fire before
trying to set it on fire.
2011-01-18 19:44:32 +11:00
Andrew Ardill
e99980983d Merge branch 'EntityDamageEvent_bugFixes' into HEAD 2011-01-18 19:43:50 +11:00
Andrew Ardill
e275f727d0 small change to block event with lava and cactus, to improve
readability and consistency
2011-01-18 18:29:41 +11:00
Andrew Ardill
26a590f030 fixed imports on all Entities 2011-01-18 17:16:05 +11:00
Andrew Ardill
73cbfcb6b6 Fixing some entity damage events 2011-01-18 13:53:14 +08:00
Andrew Ardill
d7d7a68f91 fixes to combust event so that it is raised only once on combustion.
minor fixes to imports
2011-01-18 16:30:01 +11:00
Andrew Ardill
ddc30dd6e3 Fixing some entity damage events 2011-01-18 13:49:33 +11:00
VictorD
8088a329cd Updated plugin commands to allow for aliases and fallback on name collision. 2011-01-18 01:13:45 +01:00
Erik Broes
73d6070d88 Fixed: http://redmine.bukkit.org/issues/204 - fixed armor-slot order. 2011-01-18 00:46:03 +01:00
Tahg
19e98ffc71 fixed exact name matching 2011-01-17 16:55:48 -05:00
Tahg
1b7279b7c6 Merge branch 'master' of https://github.com/Bukkit/CraftBukkit 2011-01-17 16:46:40 -05:00
Tahg
c20a40a581 fixed health 2011-01-17 16:45:20 -05:00
Tahg
42099e7379 allowed partial name matching 2011-01-17 15:50:37 -05:00
speakeasy
14d412e82c EntityExplodeEvent commit for craftbukkit. 2011-01-18 04:16:50 +08:00
Tahg
ca9d523646 moved built in command namespace, fixed EntityItem 2011-01-17 14:35:42 -05:00
Andrew Ardill
c862626c02 Depreceated getCraftEntity() as it has been superceded by
getBukkitEntity()
2011-01-18 00:13:34 +08:00
Andrew Ardill
6a3b096fb8 Addition of all Entity classes.
Each Entity creates a corresponding instance of a Craft Entity, to be
used whenever sending instances to an event handler with
getBukkitEntity().
2011-01-18 00:13:33 +08:00
Andrew Ardill
431f2f62cf New Entity Classes implementing the new Bukkit interfaces. 2011-01-18 00:13:33 +08:00
Andrew Ardill
5209e17e1b Adding all Entities into CraftBukkit.
These are needed to properly allow for determining class type, in
accordance with current practice.
2011-01-18 00:13:32 +08:00
Andrew Ardill
5f2c8108b7 Updates to all Entities to use getBukkitEntity() any time an event is
raised.
Similar update to CraftVehicle and CraftLivingEntity
2011-01-18 00:13:32 +08:00
Andrew Ardill
3400eafaf1 added handling of powered and storage minecarts 2011-01-18 00:13:32 +08:00
Andrew Ardill
2de3e2e7e4 created getBukkitEntity() in minecraft.server.Entity
This returns a protected field that is set in the constructor of each
minecraft.server.Entity to a new CraftEntity of some specific type.
2011-01-18 00:13:31 +08:00
unknown
95cb03b50e Fixed melee knockback/sheep shearing 2011-01-17 09:48:35 +08:00
Erik Broes
80a59397cb Updated CraftInventory to make use of the proper generics in the Inventory interface.
Updated loads of return values to now return actual Craft* objects.
Added a shitton of constructors to CraftItemStack so you can now finally properly make your ItemStacks.
2011-01-17 01:55:53 +01:00
Erik Broes
0c492912de Updated CraftHumanEntity to refresh the inventory on death, should fix odd behavior around that. 2011-01-17 01:55:18 +01:00
sk89q
74d746b6c5 Fixed error in CraftInventory.setContents(). 2011-01-16 13:29:43 -08:00
Erik Broes
d048167d16 Fixed removeItem implementation 2011-01-16 16:39:11 +01:00
VictorD
7ea93a1105 Added registration of plugin commands on plugin load. 2011-01-16 16:35:37 +01:00
Erik Broes
78cd77ef71 Implement removeItem(ItemStack...) 2011-01-16 16:09:59 +01:00
Erik Broes
d85a28e97e Remove some debug messages, again, last time >.> 2011-01-16 14:52:55 +01:00
Erik Broes
0ae550a11c Fixed NPE while clearing a slot 2011-01-16 14:34:31 +01:00
Andrew Ardill
ceaf94d5bb Implementation of the EntityDamage*Events.
Many files were added to enable the correct hooking of these events, and a new
event EntityDamageByProjectileEvent. EntityDamageByProjectileEvent adds the
ability to get the projectile entity (such as an egg) and also set if the
projectile 'bounces'. Only two projectiles currently respond to bouncing, Arrow
and Fish - were if the fish bounces it means the fish is not hooked. Bouncing
is independent of any damage caused via the event. In addition, the changes to
EntityDamageEvent that enable setting post-event damage were implemented in all
hooks.

Finally, a bug in CraftArrow was fixed, where the constructor was not declared public.
2011-01-16 14:14:30 +01:00
sk89q
807de6ee22 Moved the source block definition higher in BlockFlowing to ensure its accuracy. 2011-01-15 21:11:26 -08:00
sk89q
9e65c243e4 Fixed an issue where the block cache became out of date and events were giving erroneous block information. 2011-01-15 21:10:24 -08:00
sk89q
c62e387879 Added Block.getRelative(BlockFace). 2011-01-15 19:33:45 -08:00
sk89q
5d93ab3e54 Added item-in-hand related API. 2011-01-15 19:33:28 -08:00
sk89q
44ae0531e7 Added CraftInventory.setContents(); made CraftInventory.setItem(), CraftInventory.getItem(), and CraftItemStack() damage-aware. 2011-01-15 14:56:35 -08:00