Fix another NPE with Mystcraft lightning. Related #392.
Merge pull request #742 from nallar/hotload

Allow Forge dimension hotloading via DimensionManager.initDimension
Add support for non-enderdragon bosses (e.g. hydra). Fixes #125.

When the Twilight Forest hydra launched its explosive "mortar" attack,
MCPC+ would crash with a ClassCastException while trying to cast the
EntityTFHydra to EntityDragon. This occurred because CraftComplexPart
getParent() hardcodes EntityDragon in getParent().

This commit changes the cast to the more generic Entity class instead
of EntityDragon, adding support for other boss entities. getBukkitEntity()
is implemented in Entity so the same code is called in both cases. The
casting is from the vanilla IEntityMultiPart interface, only implemented by
EntityDragon in vanilla, but in any case will implemented by an
Entity subclass so this cast is safe. Should fix issue #125.
Don't call ChunkDataEvent.Load async. Fixes Xycraft ChunkDataEvent.Load handling.

Closes #604.
Signed-off-by: Ross Allan <rallanpcl@gmail.com>

Conflicts:
	src/minecraft/net/minecraft/world/chunk/storage/AnvilChunkLoader.java
Add option for warning on placing tile entities without entity tiles. See #689, #603, #470, #243

CraftBukkit logs and a warning and stack trace when setChunkBlockTileEntity()
is called on a block in the world which doesn't support tile entities. Vanilla
simply ignores this condition, without logging anything.

This commit adds a new configuration option to bukkit.yml, mcpc
warn-place-no-tile-entity, to switch between CraftBukkit and vanilla
behavior.

By default, this option is on (matching CB), since it can help detect
legitimate bugs where a tile entity is misplaced. But since vanilla doesn't
warn, you can set warn-place-no-tile-entity: false to reduce this log spam:

Attempted to place a tile entity ... where there was no entity tile!

See #603, #243, #303, #470, #407, #397, #596, #386, #34, #457, #689,
and #379, #153, #168, #6, #724.

Conflicts:
	resources/configurations/bukkit.yml
	src/minecraft/net/minecraft/world/chunk/Chunk.java
Force loadChunkOnProvideRequest to true for compatibility with many mods.

Disabled all non-ChunkProviderServer calls to this setting.
Add support for forge command aliases.
Added new config option 'load-chunk-on-request' in bukkit.yml.

This will be set to true by default until I fix all chunkloading issues
with this flag off.
Note: If you are experiencing performance issues and do not need any
chunks force-loaded, try disabling this setting.

* Added loadChunkOnProvideRequest for transferPlayerToDimension to fix
issues such as Twilight Forest's teleport not loading chunks properly
before spawn.
Don't get blockClicked in air click PlayerInteractEvent handling

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
Make PluginClassLoader threadsafe, fixes #817

Signed-off-by: Ross Allan <rallanpcl@gmail.com>