Commit Graph
51 Commits
Author SHA1 Message Date
Sam Wilson a7744ac751 Prevent VehicleEnterEvent being sent when player exits vehicle.
Fix for BUKKIT-223.

Issue BUKKIT-223: When a player exits a minecart or boat, both a
VehicleExitEvent and a VehicleEnterEvent are fired.  Only the
VehicleExitEvent should fire.

Reason for bug: This occurs because the VehicleEnterEvent is fired in
EntityBoat.b and EntityMinecart.b *any* time a player right-clicks on
a vehicle, whether the right-click is to enter the vehicle or exit it.

Fix: By moving the creation of VehicleEnterEvents from EntityBoat.b
and EntityMinecart.b to Entity.setPassengerOf, we can create either a
VehicleEnterEvent or a VehicleExitEvent, depending on whether the
player is entering or exiting a vehicle.
2011-12-19 18:22:38 +11:00
Nathan Adams 8fbe78a2c3 Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
Andrew Ardill 2759809ecb Fix Craft Entity constructors and toStrings.
Also, standardise getHandle and clean up in general.
getHandle is now using the 'entity' member variable instead of
super.getHandle, as this reduces the number of chained calls needed.
2011-11-29 21:22:35 +11:00
Erik Broes 345ea36c7b Update for 1.0.0 2011-11-20 00:01:33 -08:00
Dinnerbone 2b5a61f03d Rename revision 2 2011-09-15 17:39:17 +01:00
Dinnerbone 53b32f43cc Fixed minecarts forgetting their purpose in life 2011-09-15 06:33:57 +01:00
Dinnerbone 5b2c774edc Update for Minecraft 1.8 2011-09-15 01:23:52 +01:00
Dinnerbone 2f218ba6b1 Update for 1.7.3 2011-07-08 13:25:53 +01:00
Erik Broes 1497eec04a Update for 1.7.2 2011-07-01 14:07:34 +02:00
Dinnerbone a679e7f380 Update to Minecraft 1.7 2011-06-30 15:19:25 +01:00
Erik Broes a98c7ba2c7 Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around.
2011-06-27 00:47:03 +02:00
Erik Broes 96b1b8a10c Generic cleanup 2011-06-12 00:30:52 +02:00
EvilSeph 4bdc752acd Fixed issues introduced by recent 'portal changes' commit. 2011-06-08 20:08:29 -04:00
Erik Broes 6dbd710bbf Update for 1.6.5 2011-05-30 22:37:34 -04:00
Dinnerbone 6903f20242 Implemented 1.6! 2011-05-26 13:48:22 +01:00
Erik Broes a6c8a36dce Update for 1.5_02. 2011-04-21 04:25:46 -04:00
Erik Broes 483a878b8b Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break. 2011-04-20 19:05:14 +02:00
Robert Sargant 39972530f2 Added VEHICLE_DESTROY event 2011-04-02 17:12:18 +02:00
Dinnerbone 87c36febeb Updated to Minecraft version 1.4 2011-03-31 21:40:00 +01:00
Erik Broes e24b10dfd9 Updated for the cleanups done in Bukkit 2011-03-26 22:32:56 +01:00
Tanel Suurhans 28c9439f94 Fixes minecart type reporting for VEHICLE_CREATE. 2011-03-15 07:39:22 -04:00
Erik Broes 09aa37fe4a Generic code cleanup 2011-02-23 14:12:33 +01:00
Dinnerbone f759e0b60d Update to Minecraft 1.3 beta 2011-02-23 02:37:56 +00:00
Dinnerbone f659231e34 N.M.S cleanup in preparation for update 2011-02-21 22:30:01 +00:00
afforess 5aa95ee469 Added MaxSpeed methods to minecarts. Added MaxSpeed methods to boats. Added SlowWhenEmpty, FlyingMod, and DerailedMod methods to minecarts. 2011-02-12 16:14:43 +01:00
Tahg 61b79e8f98 inventory fixes 2011-02-08 19:47:08 -05:00
Erik Broes 228b5e7ccd Added VEHICLE_COLLISION_ENTITY which vanished after porting the code 2011-02-06 11:51:35 +01:00
Erik Broes 001a45804e Clean vehicle code. 2011-02-02 00:29:37 +01:00
Dinnerbone 24f140d1f4 Implemented VEHICLE_UPDATE 2011-02-01 10:20:18 +00:00
Dinnerbone 2b0ab5a130 Fixed VEHICLE_MOVE 2011-02-01 10:14:59 +00:00
Erik Broes df69047324 Port to new mc-dev format. 2011-01-30 13:24:39 +01:00
tahg 8c91ee9c51 Reordered calls to fix use before assignment issue 2011-01-21 18:46:15 -08:00
Andrew Ardill 1cbde901ba Entity audit. Adds checks for null entities, and adds conformity. 2011-01-21 16:54:30 +11: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
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 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
sk89q 5dafc601db Moved org.bukkit.Vector to org.bukkit.util. 2011-01-15 13:44:22 -08:00
Dinnerbone 9150e8d85d All entity stuff in org.bukkit.craftbukkit moved to org.bukkit.craftbukkit.entity 2011-01-15 21:24:07 +00:00
Dinnerbone 80707c0a23 Various fixes; boats, minecarts, musicblocks 2011-01-14 21:22:14 +00: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
Dinnerbone d374bff8d0 Implemented BlockState.update(boolean), signs should now work, cleaned up some code a little 2011-01-08 01:22:17 +00:00
sk89q 6d6668aaeb Implemented World.spawnBoat(), added CraftMappable interface that defines a method to get an org.bukkit.craftbukkit.CraftEntity from implementing net.minecart.server.Entity entities, changed CraftWorld.toCraftEntity() to use this new interface for boats and minecarts. 2011-01-07 14:01:37 -08:00
sk89q 22c2fdeaf0 Implemented boat, fixed some event issues with minecarts, and implemented the events for boats that were implemented for minecarts. 2011-01-07 13:05:25 -08:00
sk89q 592f510228 Moved some minecart flags that don't belong in the event out of the event. 2011-01-07 12:27:06 -08:00
sk89q 544bd76b13 Implemented more minecart hooks. 2011-01-07 12:17:06 -08:00
Dinnerbone a0c449559a Show reason for invalid plugin 2011-01-05 22:56:31 +00:00
Erik Broes 25d519aaf2 Initial implementation of inventory stuff, (read-)only for StorageMinecart sofar 2011-01-05 01:00:57 +01:00