LexManos
6da8a19094
Merge pull request #1219 from Lunatrius/master
...
Prevent client only commands from bleeding through to the server.
2014-10-06 14:50:47 -07:00
bloodshot
37f91681d9
Added PlaceEvent and MultiPlaceEvent which fires before placing a block.
...
Before calling "ItemStack.tryPlaceItemInWorld", a recording flag is turned on for
setBlock to capture a blocksnapshot for each block that attempts to be placed.
If 1 block is captured, a "BlockEvent.PlaceEvent" is fired to notify mods.
If 2 or more blocks are captured, a "BlockEvent.PlaceEvent" is fired first with the first block
captured followed by a "BlockEvent.MultiPlaceEvent" with all captured blocks. This extra event
is required for items that have the ability to place 2 or more blocks such as a BlockBed.
If either event is cancelled, the recorded block snapshot(s), item stacksize, and item meta will
revert back to the captured snapshot(s).
If the events are not cancelled, a notification will be sent to clients and block physics will be updated.
What this means for mods is Forge will be able to capture all player block placement automatically and fire
a PlaceEvent and/or MultiPlaceEvent.
If for whatever reason your mod does not use the standard placement methods then you will need to fire the
appropriate placement events in order to notify mods/servers.
This commit also includes a new utility class called BlockSnapshot which is serializable. This new class is used in conjunction with
both PlaceEvent and MultiPlaceEvent in order to record a snapshot of block space before it is altered. This
allows us to restore the block(s) if an event is cancelled. The class also provides the ability to restore a snapshot
to any location using the restoreToLocation method. This should be helpful to many mods that are looking to be able
to capture block data then restore it to back to any location required.
2014-10-02 11:33:25 -04:00
Lunatrius
7cff6f4c80
Prevent client only commands from bleeding through to the server.
2014-09-17 01:48:44 +02:00
Michael Lawrence
71cb9dfe52
check for IFluidBlock (in addition to Material.liquid) when
...
determining render height so that non-liquids (gases) render correctly
2014-09-08 05:51:34 -07:00
cpw
24989689b3
GIANT FML UPDATE! Bump forge revision number, and fix patches for ItemStack changes. More to come on this branch I expect.
...
MinecraftForge/FML@7c5cf21904 Implement STDOUT/STDERR redirection.
MinecraftForge/FML@bc78e31cb7 added support for \n in tooltip strings added \n test tooltip localization fixed int/double conversion error in slider entry added test slider scenario that highlighted conversion error
MinecraftForge/FML@a2908e5c59 Clean up a bunch of compiler warnings.
MinecraftForge/FML@7f67523d87 Update realms to 1.3.2
MinecraftForge/FML@73f23c24b8 Merge branch 'std-redir' of github.com:Emberwalker/FML
MinecraftForge/FML@1c6b25df74 If an IO exception comes from the datawatcher, spew it all over the console don't discard it silently. Should stop pixelmon blaming forge for their mistakes.
MinecraftForge/FML@e77da9eb2f And fix the read side too, incase someone is trying to bitbang and failing.
MinecraftForge/FML@305d8950c9 Make LogContext optional. This can be useful for debugging mod issues, but Apache's implementation in log4j2 is responsible for a very significant % of the overall runtime. Quite frankly this is shockingly bad performance from what is supposed to be a high performance logging framework. Anyway, until we can figure out if we can fix it, we're turning it off by default.
MinecraftForge/FML@bdfca1c8ed Make more noise when people screw up mod downloading and put .jar.zip in their mod folders.
MinecraftForge/FML@2108494112 Add a custom version range factory method. Should hush skyboy's complaints. Closes #486
MinecraftForge/FML@7c1e6aaa40 Add a delegate to every item and block. this should help with renaming fun stuffs. Also, fix all the tabs from my previous commits. *sigh*
MinecraftForge/FML@61fcb4df06 Tweak Itemstack patch to always delegate to the method call. Set the field, so it's in sync.
MinecraftForge/FML@eb8c5ab146 Fix nested directory for language resources. Closes MinecraftForge#1264
MinecraftForge/FML@7c05e5f70d Default collections, so that we don't crash if useDependencyInfo is true. Closes #485
MinecraftForge/FML@9729fe2332 Kill net.minecraft.src warning. It hasn't served a purpose in a long time now. Closes #313
MinecraftForge/FML@21e875ef22 AllowPlayerLogins only after the server has completed the core init tasks. Closes #372
MinecraftForge/FML@46cfeade80 Add a constructor to CustomModLoadingDisplayException. Closes #387
MinecraftForge/FML@a6eab2683a Update README.txt
MinecraftForge/FML@f75838461c Last part is the itemstack transformer. Itemstacks should now only be loosely coupled with the items within.
MinecraftForge/FML@51f24e9e6d First draft of add alias. It is probably not properly persistent atm.
MinecraftForge/FML@2a4c642470 Finally fix stupid NPE error caused by FML trying to parse the super of Object in IDEA envs.
MinecraftForge/FML@c1b1417ee1 FML now supports passing a json formatted modlist as an argument, as well as a comma separated argument list. These facilitate modpacks mostly, by meaning you don't need to duplicate mods. The modlist is arranged in the maven style, with mods referenced maven-like.
MinecraftForge/FML@3d42cda2a2 Build.Gradle Patch
MinecraftForge/FML@20c7add845 Merge pull request #484 from bspkrs/master
MinecraftForge/FML@26ed4b992e Clear button list on FML fatal error screens. The hidden cancel button should not be there. Closes #497
MinecraftForge/FML@ebe4f5c5e2 Merge pull request #494 from AntonBoch1244/patch-1
MinecraftForge/FML@ad0da05f5c Fix the ItemStack transformer to find the method and field so it works with srg and mcp naming.
MinecraftForge/FML@65d380181a Extend timeout for client to 5 seconds. Should fix Forge #1322
MinecraftForge/FML@45486a0b6d Fix almost invisible NPE in TerminalTransformer when loading a non-existant class
MinecraftForge/FML@13da3efce0 Allow a clean way to exit the game without big ugly warnings, but with logging information available if needed. Closes #496
MinecraftForge/FML@fda305edfe Some more tidying up of the exit handling
MinecraftForge/FML@b087f60c33 More cleanup of exit handling, also add a couple more noise classes to the list of things ignored.
MinecraftForge/FML@d6358a466b Cleanup override warnings
MinecraftForge/FML@af7a58b9e5 Update to legacylauncher 1.10 and asm 5.0.3
MinecraftForge/FML@e6d00440a6 ItemStack swapping
MinecraftForge/FML@8597e45a0e Fix NPE from a boolean
MinecraftForge/FML@b9b9daa8a9 Fix ups from feedback.
MinecraftForge/FML@d89165021f Mark the promise a success in the outbound handler.
MinecraftForge/FML@2e5ccf7988 Update for launchwrapper 1.11. Fixes java 6 compatibility.
MinecraftForge/FML@641250d853 Fix java 8u20. Closes #501 and a bunch of other bugs too.
MinecraftForge/FML@292be72639 Allow client handshake to be reset by server to support BungeeCord.
MinecraftForge/FML@092873fbe5 Merge branch 'bungeecord' of github.com:bloodmc/FML
MinecraftForge/FML@134f2f8e88 Fix bug with entityspawn - if the entity doesn't extend livingbase, it fails to write a headyaw byte, and everything will be derped for that packet.
MinecraftForge/FML@4852de81e0 Wrap the server description box a little bit shorter. Stops the overlapping. Closes #489
2014-08-30 00:16:46 -04:00
Bernhard Bonigl
53294b843b
Write the correct default value for StringList comments in the config
2014-08-15 15:57:44 +02:00
Lex Manos
ba69a1a6fd
Fix AIOOB in BiomeDictionary. Closes #1326
2014-08-14 20:33:23 -07:00
LexManos
261ba628df
Merge pull request #1217 from Glassmaker/patch-1
...
Adds getLocalizedName and getUnlocalizedName to FluidStack
2014-08-10 01:42:24 -07:00
ShetiPhian
22609b1d54
Legacy Liquid Load Fix
...
nbt.getString("FluidName") no longer returns null, it returns an empty string.
This patch allows legacy liquids to be resolved once again.
2014-08-05 21:08:53 -04:00
DemoXin
68fd0049fb
* Added AT for ContainerRepair.stackSizeToBeUsedInRepair (Now public)
...
* Added ability to AnvilUpdateEvent to alter stackSizeToBeUsedInRepair (vanilla behavior is now reproducable)
* Added AnvilRepairEvent, fired when the player removes an ItemStack from the output slot of ContainerRepair, and allows the chance to damage the anvil to be altered.
2014-08-04 16:54:35 -04:00
LexManos
224987aa83
Merge pull request #1128 from skyboy/patch-fishingapi
...
Add API for fishing results, I'm tired of this, If shit breaks, Blame Skyboy and King_Lemming.
2014-08-03 16:28:32 -07:00
rwtema
eeb701cb16
Fixed ItemFluidContainer always draining the maximum amount, regardless of the amount remaining.
2014-07-31 20:52:52 +01:00
zarathul
7a1de8c13d
- Added drainFluidContainer() and getContainerCapacity() helper methods.
2014-07-30 13:23:52 +02:00
Adubbz
2affeae979
Added an event for fog rendering
2014-07-28 17:01:38 +10:00
skyboy
cc169c3ea1
Update FishingHooks
2014-07-25 06:42:17 -04:00
skyboy
906dcb999d
Add FishingHooks
2014-07-24 04:12:45 -04:00
Lex Manos
b2dddf545b
Fixed NPE that happens sometimes when exiting the game witout fully loading a world {main a dev-time thing}
2014-07-16 18:36:12 -07:00
bspkrs
e35755c3e3
Fixed missing assignment of constructor arg (thanks @Lunatrius)
...
I must have edited this out when I was cleaning up my formatting commit spam.
2014-07-15 09:47:01 -04:00
Glassmaker
ff2696dff8
Adds getLocalizedName and getUnlocalizedName to FluidStack
2014-07-10 15:25:53 +03:00
cpw
27d5dc0a25
Add a system property for the stencil, in case config is not available..
2014-07-09 10:59:33 -04:00
Lex Manos
af9229d3bc
Add ability for modders to designate custom biome types. And remove note about automatically registering. Closes #1167
2014-07-07 21:29:37 -07:00
LexManos
7d24c2259b
Merge pull request #1199 from Adubbz/master
...
Enhanced the Biome Dictionary
2014-07-07 19:50:56 -07:00
LexManos
a6b7ba06c6
Merge pull request #1163 from TheCountryGamer/master
...
Added RenderBlockOverlayEvent
2014-07-07 19:50:04 -07:00
Lex Manos
f6471c3c08
Added World to ChunkProviderEvent.ReplaceBiomeBlocks, and exposed metadata to End and Nether generation events. Close #1201
2014-07-07 19:47:50 -07:00
Adubbz
8d2ebdf25f
Enhanced the Biome Dictionary with tags based on temperature, vegetation, moisture, trees and others
2014-07-08 12:09:44 +10:00
TheCountryGamer
7e7870026e
Added RenderBlockOverlayEvent.java
...
Adds a Forge event which controls whether an overlay is rendered.
Overlays include: First-person fire, Block (when inside a block)
and water when a player is inside a water block.
Patched for easier manipulation of event
Fixed for Lex
To be squashed
Removed Contructor
Added block XYZ parameters
TODO, the second block overlay event’s XYZ might not be correct
2014-07-07 21:49:51 -04:00
LexManos
53ce6f69e7
Merge pull request #1200 from tterrag1098/master
...
Add AchievementEvent
2014-07-07 18:37:53 -07:00
LexManos
7c016d9ee8
Merge pull request #1210 from Ghosrec35/master
...
Added Javadoc comments for Forge Event documentation.
2014-07-06 17:16:46 -07:00
Lex Manos
d35098ab9e
Remove the BLEND enable in rendering damage bars. And exclicitly fix blend states in some GUI elements.
2014-07-06 16:25:14 -07:00
Alex
c410a2d9fc
Added Javadoc comments for Forge Event documentation.
2014-07-06 18:41:11 -04:00
LexManos
d889765b10
Merge pull request #1159 from ganymedes01/master
...
Added FluidStack sensitive version for Fluid's localised name
2014-07-06 12:06:58 -07:00
tterrag1098
a3c268b577
Add AchievementEvent
...
Allows modders to react to players receiving achievements, and cancel
them.
Fix indentation
More shortening
Down to one line...
Remove newline
2014-07-02 20:18:53 -04:00
Gerard Bruwn
aca429f17b
Add RenderItemInFrameEvent
2014-07-01 09:58:44 -07:00
Lex Manos
63d3fd2e84
Add config option to specify the default spawn fuzz factor for the overworld. Closes #1190
2014-06-29 18:56:22 -07:00
Lex Manos
219f5adf61
Add config option to disable attempting to creat screen with Stencil Bits.
2014-06-29 18:42:48 -07:00
bloodshot
2bfda259fa
Fixed wrong method call in ChunkIOProvider.
...
When a chunk fails to load async, we fallback to the original sync method.
In this case, it was calling the async method twice which ended up causing
a stackoverflow.
2014-06-29 14:27:37 -04:00
bspkrs
f8be9a237c
fixed compounding quotes issue with category names that require quotes when save is called more than once
2014-06-26 16:31:27 -04:00
cpw
ebf0e7617a
Update to MC 1.7.10, bump to 10.13.0
...
MinecraftForge/FML@bc420dcb0b Fix Eclipse launching attribute
MinecraftForge/FML@1e0134a1ca Merge pull request #455 from rumickon/feature
MinecraftForge/FML@1c5db211af Update for release 1.7.10
MinecraftForge/FML@79a0c5e559 Merge branch 'mc179'
2014-06-26 15:07:51 -04:00
cpw
32e577d5bf
Fix API incompatibilities. Should mean mods will work with new config changes.
2014-06-26 14:45:43 -04:00
luacs1998
23c6d0ef55
Update mc version string
...
Or was I not supposed to?
2014-06-26 09:03:22 +08:00
cpw
fcd13f5e71
Merge branch 'master' into prerelease
2014-06-25 20:18:42 -04:00
cpw
24c05a73ce
Merge branch 'master' of github.com:bspkrs/MinecraftForge into bspkrsgui
...
Conflicts:
src/main/resources/assets/forge/lang/en_US.lang
2014-06-25 20:13:36 -04:00
Lex Manos
256d865db6
Update to 1.7.10-pre4.
2014-06-23 21:55:16 -07:00
Christian
1275aa732e
Null check the Item in the supplied stack as well as the stack itself.
2014-06-22 14:47:24 -04:00
Christian
4778c33902
And fix firing for single player loading.
2014-06-22 14:39:23 -04:00
Christian
127605ec3e
Fix derpity derp.
2014-06-22 10:11:32 -04:00
Christian
f7736e9a0a
Fire an event when a player loads or saves from disk. Mods that want to load an additional
...
player related file from the players dir can now do so in that event.
2014-06-21 17:38:21 -04:00
Thog92
a905fe578b
Add missing 1.7 biomes to BiomeDictionary
2014-06-19 19:06:27 +02:00
ganymedes01
85497cbf6e
Added FluidStack sensitive version for Fluid's localised name
...
Would be helpful for determining names for more complex FluidStacks (with tag compounds for example)
2014-06-18 15:26:14 +01:00
Zarathul
e68cfa9f72
Fixed ArrayIndexOutOfBoundsException in getOreName
...
Added sanity check to prevent ArrayIndexOutOfBoundsException in getOreName for negative ids.
2014-06-16 23:00:40 +02:00