Commit graph

196 commits

Author SHA1 Message Date
Christian
da00985e5f Another difference 2012-11-15 21:54:19 -05:00
Christian
5a72d49359 Fix fillLiquidContainer - return null, not the empty container for
previous API compatibility
2012-11-15 21:46:38 -05:00
Christian
0f7811624b Change name to LiquidContainerRegistry. Fix up missing API. This better be it now! 2012-11-15 06:43:16 -05:00
King Lemming
213fb9bd1a Fixed oversights in liquid registry, added functionality for instant checks as requested by CJ.
Liquid list return is now secure.

Signed-off-by: King Lemming <kinglemming@gmail.com>
2012-11-15 02:43:35 -05:00
Christian
223aca8a28 Rename some liquid stuff for more sensible naming. Tweak API slightly. 2012-11-14 21:22:44 -05:00
King Lemming
73a2a5d78a Liquid Manager Rewrite - slightly more memory usage, loads more efficient at runtime.
Added default Lava and Water registrations to Liquid Manager.
Removed method which relied on flawed assumption that a given liquid only had a single type of container.

Signed-off-by: King Lemming <kinglemming@gmail.com>
2012-11-14 20:27:47 -05:00
Christian
a759353afa Add in the basic IBlockLiquid interface. The actual block implementation
will follow.
2012-11-13 21:54:57 -05:00
Christian
2fb5ea1008 Change getLeft to getRotation, around any axis. 2012-11-13 15:05:49 -05:00
Christian
1072a8f0ae Some new stuff on the liquid API for better RP2 interaction. Coming soon: blocks! 2012-11-13 14:27:31 -05:00
Christian
52ac3c1af8 Tweak liquidcontainer API for sidedness capability 2012-11-12 21:41:46 -05:00
LexManos
95ec601569 Fix breaking despite cancel in creative mode for PlayerInteractEvent OR #247 2012-11-12 17:34:26 -08:00
LexManos
9803c9e83e Added saplings and leaves to the ore dict. PR: #242 2012-11-12 17:07:33 -08:00
Christian
58fc306bf2 As agreed, liquid API from BuildCraft has been migrated to minecraft forge. There will be cleanups to follow,
including sided handling and client rendering tweaks. Stay tuned!
Tweak forgedirection for a couple of naming constants
2012-11-10 21:27:08 -05:00
Christian
477e9bfc2b Add toLeft rotational data to ForgeDirection 2012-11-09 22:51:37 -05:00
LexManos
ba55660dc8 New field in ForgeDirection to hold just the valid directions. And made getOrientation a bit more efficient. 2012-11-09 18:00:03 -08:00
LexManos
c8753aa104 Bumped version number for 1.4.4 2012-11-08 20:44:17 -08:00
LexManos
e73cbd088f Update to 1.4.4 2012-11-08 20:19:12 -08:00
LexManos
955683349d Ore Dictionary Improvements, replaces vanilla recipes with OreDict recipes for some vanilla items. Thanks Covert. 2012-11-05 16:15:43 -08:00
LexManos
207843e279 Made Item constructor public, and made setTextureFile chainable, requires mods to recompile, but as this is for 1.4.3 i'm not concerned. 2012-11-04 15:42:04 -08:00
LexManos
2f0dcebbf9 Readdaed teleporter sensitive versions of the teleport function
Added per-world list of custom teleporters, Modders, use World.Load to populate this list.
Changed the definition of our version schemes.
2012-11-02 22:16:32 -07:00
Christian
0f3b030a1d Temporary update for 1.4.3
Update FML: bd2123c
bd2123c Clean up some patch fuzz
c2a603c Update joined.exc file from latest conf
db12af4 Update to 1.4.3
2012-11-02 18:40:43 -04:00
LexManos
c19ae55885 Update FML: Updated MCP mapings, and fixed StartServer 2012-10-31 10:16:46 -07:00
LexManos
bcc8dcd30c Merge pull request #232 from CovertJaguar/patch-7
Added vanilla wood + dye to the Ore Dict
2012-10-28 07:45:48 -07:00
LexManos
820d61d56d Added Stonghold, Village, and Spawn biome management helpers for PR 207 2012-10-28 07:38:38 -07:00
CovertJaguar
9bb6726d31 Added vanilla wood + dye to the Ore Dict
Should help simplify interaction between mods that add similar items.
2012-10-28 07:24:01 -07:00
LexManos
f72f6ab7b0 Exposed functions for adding superflat presets. 2012-10-28 06:38:44 -07:00
LexManos
d7de1e8be2 Remove some debug code 2012-10-28 05:42:55 -07:00
LexManos
887b083782 EntityLiving.experianceValue private->public for Issue #225 2012-10-28 05:21:58 -07:00
MinecraftForge
eb96aa9d04 Merge pull request #231 from ShadwDrgn/master
ServerChatEvent
2012-10-28 04:53:10 -07:00
ShadwDrgn
24cec145ca Add event to cancel or change chat messages sent from server 2012-10-28 07:50:57 -04:00
ShadwDrgn
77bd22d3c1 Add event to cancel or change chat messages sent from server 2012-10-28 07:31:53 -04:00
LexManos
5650ae7ee9 Added system to place all configs that use Forge's Configuration function into a single file on disc. Optional config to enable this. Blame MattaBase for this idea.. 2012-10-28 04:18:12 -07:00
LexManos
dc7db59f74 Pickblock will new compare NBT data, should allow mods to refine there result better. 2012-10-28 04:15:53 -07:00
LexManos
c689a982b5 Added a per-world MapStorage feature that provides a method to store data files associated with a specific world, as well as fixes the issue with villagers loosing there village. {Where villagers wouldn't go inside at night} 2012-10-26 22:37:41 -07:00
Christian
efcda1a946 Fix the accessor and type on World.getPersistentChunksFor()
Update FML: 8bd98c3
8bd98c3 Fix a small problem with the new MCP container- it can cause NPEs. Nice.
34cc42d Fix up some javadoc complaints
2012-10-26 21:13:56 -04:00
LexManos
0cb74abe8b Update to 1.4.2, obf stayed the same, so only small revision. 2012-10-24 13:55:04 -07:00
Christian
8489ca051d Add an access transform for Block.setBlockBounds - should help a lot of code that uses this.
Update FML: d915f39
d915f39 Fix typo in access transformer
346691c Fix the merge for forge
6dadc1d Fix up references to minecraftDir in obf code
8a55f68 Update FML for Minecraft 1.4.1
5645fa5 First update to 1.4.1, patches need updating.
ff0f00f Add some null checks, and throw descriptive exception when SideTransformer prevents a class from loading.
2012-10-23 21:53:45 -04:00
LexManos
043f570ff9 Update to MC 1.4.1 and Forge 6.0.0 2012-10-23 16:04:58 -07:00
LexManos
5ca845f069 Fix up the setHandeled/setHandled for events, it is now a generalized setResult, the meaning of which is defined by each event. 2012-10-22 00:29:28 -07:00
LexManos
ad51183584 Cleanup mirrored things in ShapedOreRecipe to address issue 208 and issue 210 2012-10-21 23:19:11 -07:00
LexManos
a09ea82fc7 Remove deprecated code. 2012-10-21 23:18:09 -07:00
LexManos
2e4a43e875 Updated Forge version to 5.0.0, for 1.4 2012-10-21 10:27:07 -07:00
LexManos
6127c113b8 Remove final from 'villageCollectionObj' to allow for delayed setup of Map source objects. 2012-10-21 10:00:43 -07:00
LexManos
4a4166fe7e Update for new names in 1.4 2012-10-21 10:00:02 -07:00
LexManos
bf14aefd28 Update Forge's AT for 1.4 names. 2012-10-21 05:46:23 -07:00
LexManos
8ce75c4ab5 Bump version to 4.3, final for 1.3.2 2012-10-19 18:57:24 -07:00
Christian
f3443d3e02 Fix classloading issue preventing JRockit from running forge 2012-10-19 09:30:31 -04:00
LexManos
30f74ac44c Make Item.createEntity only call when its specifically a EntityItem, not a subclass of it. 2012-10-18 16:55:35 -07:00
Christian
8d5b8a81fe Reorganize the forced chunks a bit- offload the cost of immutable map building to the mods, rather than the chunk tick 2012-10-14 12:30:33 -04:00
LexManos
5514bd39c9 Add some accessors to teh ChunkLoader tickets. 2012-10-11 18:27:51 -07:00
Christian
8e92472409 Use weak references to the worlds in our maps. WorldClient would otherwise
leak all over the show.
2012-10-06 21:32:41 -04:00
Christian
72c19f335b Expose RenderGlobal.field_72738_E (breakingBlocks) and fire OnBreak for items broken in itemUseFirst on the server. Both for Elo 2012-10-04 18:05:58 -04:00
Christian
641a7b033f Fix problem with spawning custom entities in hotloaded dimensions. 2012-10-04 17:35:22 -04:00
Christian
b82a462f64 Fix a problem with re-entering worlds too quickly- the worlds will now *always* save before the menu re-appears. 2012-10-04 00:07:59 -04:00
Christian
c5f74a8ba0 Update forge to 4.2 2012-10-03 02:00:19 -04:00
Christian
0162519347 Remove dead WorldInfo patch. Tweak dimension code a bit for better naming, and use the new FML world loading facilities
Update FML: d0e7c9e
d0e7c9e Update patches *sigh*
f3e1cac Add in a savehandler strategy for reading and writing data to the world save. This service is only available to coremods via the WorldAccessConta
51fb513 Add in some bukkit supporting code. Most of this is unimplemented until the bukkit coremod is complete.
65c9fdd New stuff on the ModLoader! Risu has been busy. Closes #114
c1d4458 Mods can now declare a range of minecraft versions they will run against
2012-10-03 01:54:40 -04:00
XCompWiz
32ca2b4fb0 Improves DimensionManager
Adds handling for unloading and hotloading of worlds, fixes some typos,
allows for dimensions to be unregistered (allowing save specific
dimension registrations), general changes to match these features.
2012-10-03 02:34:50 +03:00
LexManos
92923a3521 Expanded DungeonHooks to allow for adding of custom DungeonLoot values directly, allowing for better control over the generated items. 2012-09-30 01:01:00 -07:00
LexManos
33a6ec9a70 Made PlayerEvent.BreakSpeed fire when a player cannot harvest the block. Issues #191 and #188 2012-09-30 00:48:22 -07:00
Christian
b227d7ce73 Dormant chunk cache might actually work now, and not mix chunks across worlds 2012-09-28 17:04:26 -04:00
LexManos
d373632275 Fix vanilla bug where the player would load chunks outside its range that would be 'abandoned' and never unloaded. 2012-09-27 23:58:40 -07:00
Christian
fbae118a2f A few requested features of ForgeChunkManager. Mods can specify a
chunkloading config directly in the config file, including chunk
loading overrides if they wish (and the config allows them).
Also added "player" tied tickets that bind to the player and not the
mod's quota.
2012-09-27 23:38:27 -04:00
LexManos
0e5c0be23e Added preliminarty Player Interact event heavily based on the bukkit event. 2012-09-26 21:18:18 -07:00
LexManos
a421e51805 Fix bug in last commit that caused block to not break. 2012-09-26 21:17:26 -07:00
LexManos
63aa706dcf Add PlayerEvent.HarvestCheck and PlayerEvent.BreakSpeed for dealing with things related to a player harvesting a block. 2012-09-26 17:54:15 -07:00
Christian
5fb999fa22 Add in an "EntityEvent.EnteringChunk" event. Useful for your entity chunkloading stuff. 2012-09-26 08:52:40 -04:00
LexManos
1df9b144cd Merge remote-tracking branch 'origin/master' 2012-09-26 01:45:26 -07:00
LexManos
34ac4f5cec Support for no BOM. 2012-09-26 01:30:22 -07:00
Christian
384f795d52 Some more tweaks to the chunkloading code. The world.load event fires slightly later- once the entity watcher is
set up, so entities can actually load into the server world. Also, tickets actually save and load properly
and null entities don't break the server
2012-09-25 19:12:10 -04:00
LexManos
5d3371ab3b Fix Configuration.getItem to return pre-shifted values suitible to pass into Item constructors. 2012-09-25 05:04:56 -07:00
LexManos
27e4c3c3d5 Changed Configuration to use overloaded methods, and changed the order of arguments to be Category, Key, Value instead of Key, Category, Value to hopefully help cleanup some peopels code.
Added function to get a free Item id. Will only accept values that are not in the block space. Needs testing.
Marked all the old getOrCreate* functions as deprecated.
2012-09-24 22:33:56 -07:00
LexManos
1804f22182 Configuration will now attempt to detect the encoding of the file using the Byte Order Mark. 2012-09-24 20:56:52 -07:00
Christian
8c74d81103 Fix up some config file handling to be even more resilient. 2012-09-24 23:15:36 -04:00
Christian
93e7ac7b55 Support quoting in property and category names for almost all possible characters allowed 2012-09-24 23:15:22 -04:00
Christian
76f3b26aa3 Fix some errors if the config is unparseable. It should log an exception and carry on with defaults. 2012-09-24 23:03:31 -04:00
Christian
a776afe1bf More modifications to the ticket callback handling system. There are up to two callbacks during world loading now. One to allow
selective preference for ticket types. The other to actually allow the mod to force chunks.
2012-09-24 22:07:39 -04:00
Christian
595d3e9e79 Some changes to the ForgeChunkManager.
Null modData is allowed now.
The entity id is actually properly persisted in the ticket now.
There is a new "orderedLoadingCallback" that allows you to provide a preferred ticket loading order in case of "excess tickets". Also, tickets
that are not in the returned list are now unregistered.
There is a way to resort the chunks in the forced chunklist on a ticket now.
Log the dormant cache configuration
2012-09-24 17:38:41 -04:00
Christian
0fd2b137ac Some more fixes for chunkloading code. Works very reliably now. 2012-09-23 23:08:38 -04:00
Christian
3022d556a8 Delete some debug code 2012-09-23 23:08:38 -04:00
Christian
56a87604f6 Simple chunk caching capability for the chunkloader. This will store "dormant" chunks in a
configurable cache, potentially saving the cost of reloading them from disk.
2012-09-23 23:08:38 -04:00
Christian
0b68cf93ff And a concurrentmodificationexception in the same code 2012-09-23 23:08:38 -04:00
Christian
0ac8d6ad3e Fix NPE in ForgeChunkManager 2012-09-23 23:08:38 -04:00
Christian
9640c5dcf9 A lot of tweaks to the chunkloading for entity behaviour. Entities are now bound by a new
persistent id they *all* have, on the server side.
2012-09-23 23:08:38 -04:00
Christian
c684360f51 Working cross dimensional implementation of chunkloading for Forge. 2012-09-23 23:08:38 -04:00
Christian
d21e3ae218 Simple chunkloading implementation 2012-09-23 23:08:38 -04:00
LexManos
28d2460611 New Plant API that allows for custom plants/soils. 2012-09-20 19:53:43 -07:00
LexManos
c3f9fed484 Added new hooks for modifying the items generated in chests during world gen. 2012-09-20 18:45:33 -07:00
LexManos
de24eea885 Fix potential NPE in Custom item entity span code caused by item id misconfigurations. 2012-09-17 04:56:26 -07:00
LexManos
61c21218e2 Fix recursion issue with new special item entity code. 2012-09-17 04:40:46 -07:00
LexManos
62700fa7a8 96537dc - Fixup Item in hand rendering of textures > 16x
e88ddc5 - Make the exception print for headless servers if the Downloader cant initalize.
f24ff07 - Remove a bunch of warning about javadoc, not a real fix, but no more warning.
3420ea7 - Update MCP Mapings
87104f0 - Makes GetModSrc check the common folder when attempting to extract source files
640446b - Tie parent/child containers together again. Should close #96
2cf4917 - Village mating produces added villagers, and the egg should place added villagers too. Closes #97.
6394ee8 - Clean up stale references to the Player stored in the NetworkRegistry, closes #100
7299e05 - Merge pull request #99 from CovertJaguar/patch-1
c4bd040 - More readable init logs
2012-09-15 19:36:08 -07:00
LexManos
12d4e39bdd Bump version to 4.1.2 to mark the end of todays changes. 2012-09-11 19:16:54 -07:00
LexManos
72bba82150 Read/Write config files as UTF-8 instead of ANSII, should fix issue with Turkish people. 2012-09-11 18:00:51 -07:00
LexManos
de47895e02 Fix potential issue with custom events where the constructor is not visible from the EventBus class, Should never arise but meh. 2012-09-11 17:49:21 -07:00
LexManos
aeebb6e9f9 Add ability for Items to create custom Entities for themselves when added to the world, PR: #151 2012-09-11 17:35:53 -07:00
LexManos
96be8c4f19 Move Forge init message to MinecraftForge.initalize 2012-09-11 17:34:58 -07:00
LexManos
65ddfd49af Make EntityJoinWorldEvent Cancelable properly 2012-09-11 17:34:37 -07:00
LexManos
03d1e51764 New EntityItem related events
Fixed player death event in SMP
Added Player specific drops event
Added generic EntityJoinWorldEvent
2012-09-11 15:27:34 -07:00
LexManos
da501613ac Clean up some javadoc warnings. 2012-09-11 13:11:17 -07:00
Christian
66b60bc85e Remove all references to ModLoader 2012-09-09 10:02:21 -04:00
LexManos
03b3017e51 Bump version to 4.1.1 2012-09-08 21:47:14 -07:00