Andrew Ardill
60a2d12250
CraftItemStack: Make sure this.item is not null when cloning.
...
Fixes BUKKIT-424
2011-12-29 22:44:58 +11:00
Andrew Ardill
fb8a45b648
Teach CraftServer.getOfflinePlayers to also give all online players.
...
This method is most useful when it gives all the players who have ever
logged on to the server. Previously, it was not distinguishing between
players who had previously logged on, and were currently logged in,
and those who had previously looged on and were not currently logged in.
A distinction was made, however, between those currently logged in,
but who had not logged in previously.
This commit ensures that all players who have ever logged in (and are
listed as either logged in, or they have a player .dat file) will be
returned by the mentioned method.
Fixes BUKKIT-404
2011-12-27 16:48:09 +11:00
Erik Broes
834c420257
Update for cleanup in Bukkit
2011-12-25 15:35:12 +01:00
Nathan Adams
246d07482b
Fixed world.getHighestBlockYAt(x,z) returning 0 for existing but not loaded chunks. This fixes BUKKIT-327. Thanks for dredhorse for the pull request!
2011-12-19 16:30:26 +00:00
Nathan Adams
3648fb571d
Make rcon .sendMessage each write on a new line. This fixes BUKKIT-353. Thanks to ks07 for the pull req.
2011-12-19 16:22:59 +00:00
Andrew Ardill
1c6adc1587
Fix error when cloning enchanted ItemStacks.
...
The existing method for cloning a Bukkit ItemStack fails to correctly copy
the underlying enchantments. Fix this by overriding .clone() in
CraftItemStack, cloning the underlying nms ItemStack correctly.
Fixes BUKKIT-360
2011-12-20 00:30:54 +11:00
Nathan Adams
52faa415ef
Fixed clients not seeing EXP update immediately after using .setTotalExp and level methods
2011-12-12 19:44:57 +00:00
Nathan Adams
b653ce3c1c
Implemented (offline)player date methods
2011-12-12 17:39:52 +00:00
Nathan Adams
91ff0b059d
Made OfflinePlayer and Player share the same .equals and .hashcode
2011-12-12 15:34:49 +00:00
Andrew Ardill
82965eb10f
Stop converting ItemStack to nms ItemStack by hand
...
This should fix many issues with enchantments being lost, as the method used takes care of enchantments.
Additionally, use the new nms ItemStack constructor in places where appropriate.
Fixes (at least part of) BUKKIT-7. Need to identify any further places to fix.
2011-12-13 01:46:55 +11:00
Andrew Ardill
d7d48d8229
Teach CraftWorld.spawn how to spawn a Giant
...
Fixes BUKKIT-235
2011-12-12 14:36:13 +11:00
Nathan Adams
b2af70e5c7
Implemented getKiller in LivingEntity
2011-12-11 16:05:27 +00:00
EvilSeph
32a913a222
Linked thundering and storming.
2011-12-10 12:20:24 -05:00
Erik Broes
f7649724fe
Implemented CraftServer.getAllowEnd(). Thanks codename-B!
2011-12-09 18:55:36 +01:00
Nathan Adams
5e43c61fad
Implemented onStructureGrow event, thanks to md-5.
2011-12-09 16:11:56 +00:00
Andrew Ardill
a25151306c
Fix NPE as described in BUKKIT-245. Thanks snowleo
2011-12-08 10:26:39 +11:00
Andrew Ardill
b08b85bd26
Teach EnderDragon how to throw EntityExplosionEvents when it breaks blocks
...
We also teach CraftWorld how to explode an event, taken from
Explosion.a(boolean) (the code that breaks blocks and drops them on the ground).
The EnderDragon has a flag that slows it down when it hits unbreakable blocks:
Obsidian, White Stone or Bedrock. It might be useful to extend the event so that
plugins can set this.
Letting the API set the default yield for an explosion event has been
deprecated, so we now set the default yield using the appropriate constructor.
2011-12-08 00:31:21 +11:00
Andrew Ardill
4e318dd1c8
Implement new interface ConsoleCommandSender.
...
Also use abstracted ServerCommandSender to reduce complexity! Yay!
2011-12-07 17:46:30 +11:00
Andrew Ardill
93a4a9ba8c
Teach MinecraftServer how to handle Remote Console commands.
...
This fixes BUKKIT-220. Thanks for the help bawoodruff!
2011-12-07 17:45:50 +11:00
Tahg
e4a839cbbc
Fix for entity spawning and some code cleanup
2011-12-06 19:21:10 -05:00
Tahg
bc8f02788f
Performance update to remove several very high counts of temp object creation
2011-12-06 08:52:45 -05:00
Tahg
eead44a692
fix NPE issue with CB inventory
2011-12-06 08:48:45 -05:00
Andrew Ardill
b1a3aa602a
Clean-up some events to maintain general style
2011-12-05 19:23:40 +11:00
Nathan Adams
8363eadcab
CraftInventory.remove shouldn't care about amount (BUKKIT-138)
2011-12-05 01:51:33 +00:00
Nathan Adams
dbd3ff71fc
Implemented server.getOfflinePlayers
2011-12-04 17:57:00 +00:00
Nathan Adams
c6d182286c
Fixed some various CraftInventory bugs related to dropping Enchantments
2011-12-04 13:22:50 +00:00
Nathan Adams
1185ca75fc
Fixed player teleporting not working with a certain method. This fixes BUKKIT-198
2011-12-04 13:22:31 +00:00
Nathan Adams
55a532c251
Indicate when a teleport event was triggered by ender pearls or unknown internal teleports
2011-12-04 11:04:14 +00:00
Andrew Ardill
c298c104ea
Remove unused import
2011-12-02 21:38:50 +11:00
Nathan Adams
6ea3cec762
Made world.spawnCreature just delegate to world.spawn. This fixes BUKKIT-57
2011-12-01 21:50:23 +00:00
Erik Broes
da6b412fd2
Fix CraftBlock toString.
2011-12-01 21:03:23 +01:00
Nathan Adams
d02a2eb49d
Fixed rare NPEs with CraftItemStack. This fixes BUKKIT-51
2011-12-01 05:21:03 +00:00
Nathan Adams
a513406005
Fixed exp methods returning wrong values
2011-11-30 22:31:03 +00:00
Nathan Adams
8fbe78a2c3
Updated to use mc-dev rename revision 1
2011-11-30 21:46:19 +00:00
Erik Broes
8665161eaa
Fixed multiworld loading of some worlds, yay for 1 letter fixes :D
2011-11-30 21:48:16 +01:00
Andrew Ardill
c6af919114
Fix CraftEnderCrystal so that it implements EnderCrystal, not EnderSignal.
...
Thanks zhuowei!
2011-11-30 09:21:54 +11: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
Andrew Ardill
0c88f05c0d
Fix CraftVillager constructor to only take an EntityVillager
2011-11-29 09:46:20 +11:00
Andrew Ardill
89338db181
BUKKIT-57 Fix using Bukkit interface instead of nmc Entity for type check.
...
Thanks nidefawl!
2011-11-29 09:42:09 +11:00
Nathan Adams
fe3756f7a0
Fixed Enchantments being lost on inventory.setItem
2011-11-28 05:17:05 +00:00
Nathan Adams
99771b7b72
Fixed magma slimes from being nonspawnable
2011-11-28 05:08:28 +00:00
Andrew Ardill
4b87704c5a
Add new Entity types to CreatureSpawnEvent
2011-11-28 11:21:43 +11:00
Andrew Ardill
c0073e466d
Add CraftMagmaCube
2011-11-28 11:17:04 +11:00
Nathan Adams
8d49f500ec
Fixed NPE in CraftPlayer.getBedSpawnLocation
2011-11-27 04:09:34 +00:00
Nathan Adams
402e3c26e1
Clone item enchantments unchecked
2011-11-27 03:58:43 +00:00
Nathan Adams
894ab9f949
Fixed issue with enchantments reseting under certain conditions
2011-11-27 02:45:34 +00:00
Nathan Adams
eb7bd5f23b
Implemented Enchantment API
2011-11-27 01:37:00 +00:00
Nathan Adams
ef75a286ac
Implemented world.getWorldFolder
2011-11-25 03:47:12 +00:00
Nathan Adams
20a0b0a9be
Changed Entity.isDead to be aware of health for living entities
2011-11-25 00:32:44 +00:00
Nathan Adams
e31cedf583
Fixed NPE in player inventory + don't ignore the cancel state of world unloads
2011-11-24 20:27:16 +00:00
Nathan Adams
a7664a104f
Implemented new age methods in animals, and made spawned animals via eggs properly age back to children
2011-11-24 20:16:43 +00:00
Nathan Adams
47b4406b7e
I've either fixed going to The End, or made it worse. I'm sure we'll find out soon!
2011-11-24 20:00:55 +00:00
Nathan Adams
61edd36378
Made BlockStates inform playes upon update
2011-11-24 18:48:23 +00:00
Nathan Adams
c6beae8872
Fixed allow-nether being ignored
2011-11-24 18:48:01 +00:00
Nathan Adams
929e5ff6c7
Implemented new biome values
2011-11-22 21:21:33 +00:00
Nathan Adams
a83fc1d6a2
Implemented new EnderCrystal entity class
2011-11-21 22:39:33 +00:00
sunkid
0a8bd56f16
fixed spawn method for projectiles
2011-11-20 18:21:21 -08:00
Erik Broes
345ea36c7b
Update for 1.0.0
2011-11-20 00:01:33 -08:00
Nathan Adams
589f66bd1b
Added new --noconsole command argument, thanks to mkurzeja for the idea
2011-11-05 20:15:19 +00:00
Nathan Adams
b1671be875
Implemented bukkit versioning
2011-10-31 04:03:47 +00:00
Erik Broes
2f1513cae0
Add missing CraftBlock hashCode()
2011-10-20 23:20:26 +02:00
Tahg
8c02599256
fixed mapping of Art <-> EnumArt in Paintings
2011-10-12 14:13:11 -04:00
Nathan Adams
75d9b04deb
Added new bukkit.yml entry (settings -> world-container) to control the directory worlds are stored in
2011-10-12 04:25:03 +01:00
Nathan Adams
f4229fcadd
Implemented getPlayer of OfflinePlayer
2011-10-11 14:52:07 +01:00
Nathan Adams
af1838305c
Implemented entity age methods
2011-10-11 02:23:10 +01:00
Nathan Adams
7e005474b6
Added hashCode and equals to CraftWorld
2011-10-10 22:45:52 +01:00
Nathan Adams
1195944c90
Removed deprecated ConcurrentSoftMap
2011-10-10 22:05:35 +01:00
Nathan Adams
c818414fd5
Updated to the new Configuration api
2011-10-10 21:10:48 +01:00
Erik Broes
255778b388
Fix CraftBlock.equals as they are not singletons anymore
2011-10-07 11:48:14 +02:00
Tahg
696349884b
don't store weak references for EmptyChunks or cache CraftBlocks
2011-10-05 11:36:03 -04:00
EvilSeph
9177c205b4
Revert "Added callback line of sight methods. Thanks xZise!"
...
This reverts commit 49cf586f969626bdb59632bb2fd5adfe79d38057.
2011-10-03 15:17:34 -04:00
EvilSeph
11b388ff39
Fixed multiworld difficulty.
...
World difficulty was incorrectly being set to 0 or 1 on reload depending
on spawn-monsters instead of the difficulty server property.
2011-10-03 10:53:17 -04:00
EvilSeph
7c5007c016
Added Difficulty API.
2011-10-03 10:29:24 -04:00
EvilSeph
3b2347093f
Added missing call for WorldUnload event.
2011-10-02 23:16:58 -04:00
EvilSeph
aaefd4ecb5
Added callback line of sight methods. Thanks xZise!
2011-10-02 23:04:03 -04:00
Dinnerbone
80c2bc266a
Minimal diffs! Move methods for the new list-name away from nms
2011-10-03 00:37:44 +01:00
EvilSeph
22baa13894
Painting improvements. Thanks CelticMinstrel!
...
Implement get/setArt and facing direction for paintings; expanded painting break causes; added painting support to World.spawn
2011-10-01 13:37:03 -04:00
Mike Primm
aa66851119
Correct biome data in ChunkSnapshot - wrong API used
2011-09-30 23:31:37 -04:00
Dinnerbone
935313dea7
Fixed players not receiving broadcasts (and other similar issues) after signing out and in rapidly
2011-09-27 23:14:53 +01:00
sk89q
afd95b7e30
Added server list ping event.
2011-09-26 15:32:05 -07:00
sk89q
87494d46f8
Added Player.get/setListName to change the name of the player on the player list.
2011-09-26 15:10:35 -07:00
Tahg
d226e551ae
data improvements
2011-09-26 03:07:46 -04:00
sk89q
b7c43fbff1
Boat get/set (double) occupied acceleration, (double) unoccupied deceleration, (boolean) work on land. Good values to maximize boat utility: 0.6 (fast accel.), 0.99 (no loss of boat), true/false, respectively.
2011-09-25 11:20:51 -07:00
Dinnerbone
8f8c62b71b
Ensure there's only one OfflinePlayer object per actual offline player
2011-09-25 04:21:35 +01:00
Celtic Minstrel
aece687d01
Implementation of the Jukebox BlockState
2011-09-25 03:54:51 +01:00
Dinnerbone
6c6eef8759
Implemented get/setPickupDelay on Item entities, thanks robin0van0der0v
2011-09-25 03:40:28 +01:00
Dinnerbone
ceba082703
Implemented getOperators
2011-09-25 03:28:00 +01:00
Dinnerbone
cb49379b24
Adds a method that returns the File representation of the update folder. Thanks raphfrk
2011-09-25 02:22:06 +01:00
Dinnerbone
fad2656c63
Implemented world.getSeaLevel, made getHeight load from world instead of hardcoded
2011-09-25 01:05:55 +01:00
Dinnerbone
1fbd439dc5
Implemented new createWorld method
2011-09-25 01:05:10 +01:00
Dinnerbone
44136f2e7d
Blocked access to ColouredConsoleSenders constructor, implemented getConsoleSender
2011-09-24 23:14:13 +01:00
Dinnerbone
0118a20d6a
Update to mcdev rename revision 01 for 1.8.1
2011-09-24 22:05:22 +01:00
Rigby
e6e9cec1e9
Added PlayerToggleSprint event and sprinting related API.
2011-09-21 16:25:26 -04:00
Rigby
1da2d1f5b6
Implements the ability to customise and remove Player death messages.
2011-09-21 16:55:27 +01:00
Dinnerbone
20ddc944bb
Refactored a bunch of death code into the event factory
2011-09-21 15:41:24 +01:00
EvilSeph
905b977670
Added getBedSpawnLocation to CraftPlayer. Thanks fernferret!
2011-09-20 23:44:44 -04:00
Dinnerbone
a0216584b0
Return OfflinePlayer for offline wolf tamers. Thanks robinjam
2011-09-20 19:10:06 +01:00
Wizjany
2ae6b431b3
Added event for endermen picking up and placing blocks and methods to get/set what an enderman is holding.
2011-09-20 18:49:47 +01:00
Dinnerbone
914a8a0c04
Nullchex!
2011-09-19 14:26:46 +01:00
sunkid
af6ba0f026
implementation of PlayerGameModeChangeEvent call
2011-09-18 11:19:08 +02:00