Erik Broes
df69047324
Port to new mc-dev format.
2011-01-30 13:24:39 +01:00
sk89q
d98c8e2100
Revert "Entity's bukkitEntity field now holds a CraftEntity by default."
...
This reverts commit 7a64e864fc481f001812d78cc4d767872c458706.
2011-01-21 18:35:32 -08:00
sk89q
3931be421e
Entity's bukkitEntity field now holds a CraftEntity by default.
2011-01-21 16:21:19 -08:00
Andrew Ardill
1cbde901ba
Entity audit. Adds checks for null entities, and adds conformity.
2011-01-21 16:54:30 +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
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
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
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
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
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
Dinnerbone
9150e8d85d
All entity stuff in org.bukkit.craftbukkit moved to org.bukkit.craftbukkit.entity
2011-01-15 21:24:07 +00:00
Erik Broes
8c8f53fd44
Events should be present tense, not paste tense.
2011-01-15 21:26:52 +01:00
Dinnerbone
2761b59845
Update to Minecraft Server 1.2
2011-01-14 13:31:10 +00:00
Erik Broes
22dab8e985
Updated against new mc-dev format, takes out quite some casting troubles at the cost of extra ()'s
2011-01-11 09:27:35 +01:00
sk89q
c9efe94545
Added passenger methods to Vehicle/LivingEntity.
2011-01-07 16:26:08 -08:00
angelsl
d6aff66290
Direct fire exposure event
2011-01-03 16:20:36 +00:00