LexManos
0d2a0deef3
Cleanup IForgeTagBuilder code style.
2020-04-01 11:34:36 -07:00
tterrag
559bacbd98
Add support for optional tag values to Tag.Builder
...
Add optional tag values to data gen test
Fix data gen test not running by correcting gui_light value
2020-03-31 20:15:09 -04:00
tterrag
19444ffa18
Fix a few issues with BufferBuilder
...
Fix vanilla bug that caused the byte order of the buffer from getNextBuffer to be incorrect
Fix missing modification to nextElementBytes in putBulkData
2020-03-31 19:55:09 -04:00
tterrag
db3d202c4e
Deprecate ModelBuilder#gui3d, add ModelBuilder#guiLight
2020-03-30 00:15:08 -04:00
naqaden
2f5172f907
Add renderer to RenderNameplateEvent ( #6562 )
2020-03-27 16:22:01 -07:00
dags
f6cb5268a2
Defer writing the server.properties file until after mods have loaded to prevent config loss ( #6545 )
2020-03-27 16:19:34 -07:00
cpw
dd1d8737ad
Fix cycle happening in noteblock even though we're setting the new value as well..
...
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2020-03-20 20:05:23 -04:00
Managarmr
0d16042705
Remove ArrowEntity patch, vanilla fixed MC-107941
2020-03-17 02:41:36 -07:00
Nightenom
202ae50820
Add projection matrix to RenderWorldLastEvent ( #6536 )
2020-03-11 00:00:21 -07:00
Draco18s
58e5f33fad
Global Loot Functions ( #6401 )
2020-02-26 22:13:36 -08:00
DaemonUmbra
2ce4f5ece5
Updated ForgeDev MCP Mapping Version ( #6532 )
2020-02-25 19:45:14 -08:00
DaemonUmbra
daff482092
Fixed Conduit and Beacon Activation on Vanilla Servers ( #6438 )
2020-02-17 11:01:38 -08:00
Richard Freimer
a740044e21
Fix ITeleporter being ignored when teleporting from the end to the overworld ( #6505 )
...
* Fix custom teleporters triggering end credits when returning from the end
* Fix setdimension command ignoring position
2020-02-17 17:16:46 +01:00
Vincent Lee
1a4955f9fd
Fix missing call to itemstack TER ( #6445 )
2020-02-14 22:43:31 +01:00
Vincent Lee
2c4042c17c
Fix missed modeldata passing in BlockModelRenderer ( #6442 )
2020-02-14 22:33:27 +01:00
Robert Skalko
e95ba8a3dc
Fix NPE when players rejoin the server in a dimension that was deleted ( #6511 )
2020-02-14 12:34:41 -08:00
Rigner
63cb030cba
Fix a wrong RenderState name MC-167447 ( #6501 )
2020-02-14 12:12:52 -08:00
Daniël Goossens
743fc70a7f
Fix client not informing server when it attempts to interact with things, and is canceled by a client side handler.
2020-02-14 12:04:38 -08:00
ewewukek
c14ffa3264
Fix wrong arguments passed to ForgeHooksClient.renderSpecificFirstPersonHand() ( #6496 )
2020-02-14 12:03:08 -08:00
malte0811
3f292d5d42
Fixed ChunkWatchEvent.(Un)Watch not firing correctly ( #6453 )
2020-02-14 12:02:47 -08:00
Joseph Tarbit
977428e42c
Fixed Food not using effect suppliers, to better support delayed initialization and registry replacements. ( #6411 )
2020-02-14 12:00:40 -08:00
Parker Hawke
1c02312ae6
Fixed displaying item names when only more sensitive version changes ( #6402 )
2020-02-14 11:55:27 -08:00
Richard Freimer
f93289e01c
Allows custom blocks to define if they should use the fluid overlay instead of the flowing texture when in a fluid ( #6493 )
2020-02-06 23:53:37 +01:00
LexManos
982ed69776
Fix a small patch misalignment.
2020-02-03 13:21:18 -08:00
Richard Freimer
7bac75f370
Make Minecarts work with modded powered/activator rails. ( #6486 )
...
Re-adds functionality for rails to have different maximum speeds.
2020-02-03 12:45:36 -08:00
ichttt
06d9b6531c
Revert game data to frozen on disconnect from a remote server or when terminating a local server. Closes #6487 ( #6497 )
2020-02-03 12:21:10 -08:00
David Quintana
a901d80dd5
Implement fluid overlay texture rendering for custom fluids.
2020-02-02 23:02:56 +01:00
Vincent Lee
0ad574257e
Clean up a bunch of render events ( #6444 )
...
* Delete RenderHandEvent as RenderSpecificHandEvent can do everything it does and more. Rename RenderSpecificHandEvent to RenderHandEvent as it's now the only hand rendering event.
* Pass MatrixStack and IRenderTypeBuffer into the event whenever they are available. If they're available, that means we're in a batching environment and the modder should not be using the tessellator or other buffers on their own, or they risk "Already building" crashes.
2020-01-30 00:46:22 +01:00
Vincent Lee
e539e7ecbb
Fix incorrectly ported patch for restoreBlurMipmap ( #6450 )
2020-01-29 13:13:08 -08:00
Daniël Goossens
1b618fae90
Fix RightClickBlock code differences between client and server implementation ( #6451 )
2020-01-29 13:11:50 -08:00
Yamahari
f12a93fe1e
Defer material getting for ChestTileEntityRenderer into seperate function ( #6465 )
2020-01-29 13:05:12 -08:00
LexManos
c72d6e9122
Fix ChunkDataEvent.Load not firing, it now fires in the aync thread. Be careful. Closes #6471
2020-01-29 12:18:13 -08:00
LexManos
69ae178bf4
Fix incorrect keybinding modifiers patch. Closes #6478
2020-01-29 11:57:10 -08:00
LexManos
d391299340
Fix PlayerChangedDimensionEvent using incorrect from dimension argument in ServerPlayerEntity.teleport. Closes #6457
2020-01-29 11:56:38 -08:00
LexManos
40091678a8
Fix default mod resources loosing it's sort order.
2020-01-29 11:31:31 -08:00
LexManos
2b43aa6301
Fix WakeupEvent patch misalign. Closes #6474
2020-01-29 11:31:02 -08:00
mcenderdragon
44d9fff2b4
[1.15] Reimplemented the ITeleporter interface ( #6404 )
2020-01-29 09:18:07 -08:00
David Quintana
509a28efd3
Hook "gui_light" value from the model into the IBakedModel implementations.
...
Apply some of the suggestions from the 1.14 models PR.
2020-01-23 22:54:54 +01:00
LexManos
c4e000dbe7
1.15.2 Initial Update
2020-01-22 13:44:03 -08:00
ichttt
0bcc2e3fbd
Cleanup fml packages removing old deprecated classes related to GUIs/Configs and fix HoverChecker ( #6437 )
...
Fixed ModListWidget name to avoid confusion and collision.
Delete CheckBox, as vanilla has it's own CheckBox now which looks much better
Rename ModConfigEvent.ConfigReloading to ModConfigEvent.Reloading
2020-01-22 14:09:58 -07:00
Daniël Goossens
e6c440a4f7
Fixed parameter name issue in ISTER rename. #6461 ( #6468 )
2020-01-22 13:38:13 -07:00
LexManos
575af22cee
Fix default widget foreground color.
2020-01-22 11:56:05 -08:00
Daniël Goossens
dea08be906
Updated method names referencing ItemStackTileEntityRenderer ( #6461 )
2020-01-22 12:26:34 -07:00
Cadiboo
0f27975f77
Fix Widget Foreground Color not allowing pure black ( #6460 )
2020-01-22 12:25:35 -07:00
Wyn Price
2d30419a31
Fixed rounding issue with entity navigation fix ( #6455 ) ( #6456 )
2020-01-22 12:24:20 -07:00
Brennan Ward
68ce113c5b
Fixed RenderTypeLookup loosing mappings for registry replacements. ( #6452 )
2020-01-22 12:23:42 -07:00
Take Weiland
ad7e4e95ae
Use extended version of getLightValue in all places ( #6433 )
2020-01-22 12:22:35 -07:00
Scotteh
345387645e
[1.15.x] Added entity nameplate rendering event hook ( #6416 )
2020-01-22 12:22:04 -07:00
tterrag
380366e25f
Remove emissive items hook, add small utility for bakedquad lighting
2020-01-20 22:44:26 -05:00
David Quintana
1936eb1f36
Fix breaking overlay weirdness. applyBakedNormals was not transforming the baked normals when applying them. Fixes #6432
2020-01-16 03:29:46 +01:00
Daniël Goossens
088fc6b67f
[1.15] Add new InputEvent.ClickInputEvent, addresses #5802 ( #6047 )
2020-01-15 16:30:01 -08:00
David Quintana
983a47a7d6
Fix dark spots in fullbright quad rendering.
...
Fix multi-layer model not declaring dependency on the particle texture.
Fix mistake in 2c054fca
which I didn't intend to push when I did.
2020-01-13 23:20:46 +01:00
tterrag
d5b94aa9c8
Add constructor for FishBucketItem that accepts suppliers
2020-01-09 17:26:11 -05:00
Richard Freimer
ca62702ff9
Add support for custom nether portal frame blocks ( #6389 )
2020-01-07 14:20:37 -08:00
RANKSHANK
0d50b4c39f
InputEvent.RawMouseEvent fix ( #6395 )
2020-01-07 13:19:46 -08:00
DaemonUmbra
c37e44efb6
Fixed Big Mushrooms not generating ( #6390 )
...
Removed vanilla negation from Forge logic that negated the vanilla logic it was replacing
also ran datagen to update the dirt tag to reflect changes that were previously made in the datagen code
2020-01-07 13:15:11 -08:00
tterrag
90035ab084
Remove custom vertex format from BakedQuad
2020-01-04 23:36:56 -05:00
David Quintana
4b9920bcb3
Cherry-pick ca819e09 from the 1.14.x branch. Removes a patch from NativeImage which was invalid.
2020-01-04 17:18:27 +01:00
LexManos
1e053298be
Fix the particle renderer not setting GL state between each type. MC-168672
2020-01-02 19:02:42 -08:00
tterrag
53747b0cb5
Apply baked-in lightmap data to rendering
...
- Fix ForgeHooksClient.fillNormal injecting data to lightmap
- Fix OBJModel not filling lightmap data
- Fix NewModelLoaderTest blockitem not linking with block
2019-12-30 16:12:14 -05:00
David Quintana
fc189c9aaf
More model/rendering fixes:
...
- Breaking change: Change ClientRegistry.bindTileEntityRenderer to a factory, so mods don't have to manually specify the dispatcher.
- Breaking change: Delete obsolete SimpleModelState (the class was duplicated by mistake, see SimpleModelTransform) and ICustomModelState (part of the old loader API).
- Breaking change: Rename getTextureDependencies to getTextures, for consistency.
- Reinstate the getRenderLayer method, fixed appropriately to return the new RenderType value.
- Fix OBJ loader applying the model transform in the wrong reference frame.
- Fix vanilla bug in TransformationMatrix#func_227986_a_
- Fix QuadTransformer logic.
- Added new method to IModelConfiguration to retrieve the owner IUnbakedModel, needed in order to construct ItemOverrideLists when baking custom models.
- Reintroduce multi-layer model through the new model loader system.
2019-12-29 02:13:58 +01:00
David Quintana
e8ce61d4cd
New batch of Model/rendering fixes:
...
- PerspectiveMapWrapper did not pass IModelData through to the wrapped model.
- CompositeModel did not store the returned textures from getTextureDependencies.
- VertexFormat used COLOR instead of UV to detect UV presence.
- QuadTransformer would crash due to index out of bounds.
- Small cleanup of TransformationHelper
2019-12-24 13:12:38 +01:00
David Quintana
ac61018806
Fix obj models having all faces in the same mesh, breaking material assignments and visibility in the process.
...
Reintroduce lost patch from the model loader, which would cause the custom values to be missing from generated models.
2019-12-20 18:14:09 +01:00
tterrag
18e97a487d
Fix diffuse lighting being baked into models, fixes dark items
2019-12-19 23:13:28 -05:00
David Quintana
c3b1f47754
Fix item quads not using the existing vertex color when applying tint colors.
2019-12-20 04:50:40 +01:00
David Quintana
503d277033
Fix bucket model. Some mask textures were not added to the repository, and the bucket override generation was broken.
...
Fix OBJ loading crash due to a float value being parsed as int.
Fixes 6377
2019-12-20 02:44:27 +01:00
bl4ckscor3
40de19f16e
Fix game crashing when modded entities are present ( #6364 )
2019-12-19 00:56:01 -05:00
Richard Freimer
47a1f7529a
Fix capabilities becoming inaccessible on returning from end ( #6368 )
2019-12-18 20:40:36 -08:00
tterrag
30b530836a
Fix MainMenuScreen patch
2019-12-17 21:10:49 -05:00
David Quintana
599a754b60
Fix items in ground being too small, we were applying perspectives twice.
...
Restore forge patch and fix a tiny mistake in it.
2019-12-18 00:46:29 +01:00
Tobias Hotz
eaac0c17a4
Fix keybinds not loading/saving correctly
2019-12-17 18:30:51 -05:00
tterrag
faaebe7a07
Remove uvlock hook, fixes broken stair/fence/etc models
2019-12-17 17:37:39 -05:00
tterrag
5987d917b8
Update to 1.15.1
2019-12-17 14:37:34 -05:00
David Quintana
738abbb360
Finish converting the code from javax.vecmath to the vanilla vector classes. Forge is now vecmath-free!
2019-12-17 19:14:52 +01:00
tterrag
5b67354e24
Fix incorrect item lighting
2019-12-16 23:46:45 -05:00
tterrag
dec91dec68
Revert fluid change to use Material, fixes server crash
2019-12-16 23:22:13 -05:00
LexManos
1933d05e36
Update to 1.15
...
Due to the massive rendering changes, certain features, such as emissive item rendering and the forge block rendering/lighting pipeline are currently disabled.
Co-authored-by: David Quintana <gigaherz@gmail.com>
Co-authored-by: tterrag <tterrag1098@gmail.com>
Co-authored-by: Unnoen <theunnoen@gmail.com>
2019-12-17 03:38:12 +01:00
King Lemming
9e5ecaaf75
Added a couple of raytraceresult.getType() != MISS checks in places where they were absent. This corrects a couple of vanilla oversights and also greatly reduces Forge bus event spam for arrows and llama spit. ( #6355 )
...
Signed-off-by: King Lemming <kinglemming@gmail.com>
2019-12-15 14:39:41 -08:00
Luke Tonon
3701ec06d0
Restored canRiderInteract boolean in IForgeEntity ( #6347 )
2019-12-10 11:56:07 -08:00
tterrag
3ba78225c3
Fix swapped yaw/pitch in camera setup event
2019-12-02 19:10:59 -05:00
liach
d8e6181058
Restore camera setup render event ( #6335 )
2019-12-02 14:54:46 -08:00
Luke Tonon
68b0075fe6
Added FENCES_WOODEN and FENCE_GATES_WOODEN tags as fuels in AbstractFurnaceTileEntity ( #6327 )
2019-12-02 14:36:30 -08:00
Paul Becker
f9686cf098
New SleepFinishedTimeEvent allowing control of world time when waking up. ( #6043 )
2019-12-02 14:08:14 -08:00
tterrag
ca28877fd5
Fix EntityLootTables not calling addTables
2019-11-25 01:49:24 -05:00
tterrag
c18d26c7d8
Make EntityLootTables reusable for modders
2019-11-25 01:03:24 -05:00
Richard Freimer
0e65f20f22
Add hooks to make it easier to add custom TNT blocks ( #6290 )
2019-11-20 19:19:34 -08:00
DaemonUmbra
d8d70e8b35
Add tags supports_beacon and supports_conduit and modify Beacon and Conduit to use these tags ( #6266 )
2019-11-20 19:15:13 -08:00
Richard Freimer
a72b774acf
Fix DyeColor referencing incorrect Tag path. Fixes #6301 ( #6303 )
2019-11-12 15:11:43 -08:00
DaemonUmbra
b1042f2c3c
Modify StonecutterContainer to allow shift-click insertion of any block with a valid recipe rather than limiting to blocks in an Immutable List ( #6268 )
2019-11-12 15:10:52 -08:00
tterrag
124c78b926
Fix #6305 lighting optimization using the wrong method
2019-11-07 16:56:54 -05:00
tterrag
7332bf91d5
Add support for modded warm ocean biomes in bonemeal code
2019-11-07 10:39:33 -05:00
tterrag
33307fb1bd
Optimize SectionLightStorage#cancelSectionUpdates loop
2019-11-05 14:55:43 -05:00
Daniël Goossens
1ef8b75cbb
Add LeftClickEvent trigger to onPlayerDamageBlock ( #6046 )
2019-11-05 11:12:02 -08:00
Wyn Price
1ebfef5ec9
Fixed vanilla bug in entity navigation to stop entities spinning (MC-94054) ( #6091 )
2019-10-28 14:13:14 -07:00
Paul Becker
ff7a2fe4d6
Reimplement usage of Item#doesSneakBypassUse() ( #6114 )
2019-10-28 13:24:15 -07:00
cpw
862289cf56
Handle logging during shutdown better on the server, by not
...
closing the logfile before the server itself has shutdown.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-10-26 16:55:15 -04:00
LexManos
3484200f80
Make Loot Table data generators more reusable for modders.
2019-10-24 22:09:08 -07:00
tterrag
acaa470dea
Add Blockstate and Model data providers ( #6241 )
2019-10-24 22:33:24 -04:00
Wyn Price
ebf489be8c
Fix shouldCauseReequipAnimation not affecting anything ( #6256 )
2019-10-22 15:08:06 -04:00
cpw
51d08ad8ab
Fix clientside chunk load event spam. Was an offset patch.. Also fire unload on the client side too.
...
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-10-18 00:03:09 -04:00
Daniël Goossens
8e74ba8c24
Fix #6244 RightClickBlock#getUseBlock and #getUseItem being ignored ( #6246 )
2019-10-17 19:13:16 -04:00
ichttt
6c8342b74e
Fixed loading error/warning screen not showing ( #6218 )
2019-10-15 14:59:41 -07:00
James Mitchell
c345dfb0c6
Fixed MC-162953 bounds checks in NativeImage
( #6216 )
2019-10-15 14:58:16 -07:00
bl4ckscor3
886de4ee43
Fix shear sound not playing ( #6202 )
2019-10-15 14:55:26 -07:00
ichttt
c98abaaa42
Fix some config checks still using the old fields ( #6193 )
2019-10-15 14:54:47 -07:00
Philipp
a8bd5e7ece
Add onCropsGrow event to KelpTopBlock ( #6171 )
2019-10-15 14:33:07 -07:00
FireController1847
94cbf72e39
Re-add PlayerGiveXpEvent & PlayerChangeLevelEvent ( #6165 )
2019-10-14 10:37:44 -07:00
Max Becker
8248eb6ea1
Skip background for hidden effect instances ( #6197 )
2019-10-14 10:33:45 -07:00
Wyn Price
5978670897
Fixed IModelData not being cleared when tile entity is removed ( #6115 )
2019-10-10 23:07:52 -04:00
Vincent Lee
01d14004a9
Allow modded IParticleRenderTypes to be rendered ( #6221 )
2019-10-10 23:05:16 -04:00
Vincent Lee
7070bd0340
Make customClientFactory optional again ( #6191 )
2019-10-10 11:23:27 -07:00
David Quintana
5e9380ab85
Fix forge blockstates and custom model loading ( #6154 )
...
* Reimplement forge blockstates variant through the use of a pseudo-model that handles the model loading, retexturing, custom data, etc. on behalf of the blockstates loader. This model gets injected into the model registry with an autogenerated unique name, to not collide with other model locations.
* Fix model loaders not being properly initialized by calling the reload method from the loader register function. In 1.12, registering a reload listener caused the listener to be called right away from the register method. This is not true anymore.
2019-10-08 00:18:29 +02:00
cpw
9c759294c6
Add a super early GUI for showing pre-game launch messages from FML. NOTE: this cannot show on MAC because MAC can't handle
...
off-thread GUIs in any way shape or form, and we need the main thread to do real work.
Fix forge fading in wrongly.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-10-05 17:03:02 -04:00
David Quintana
b294f4d894
New round of fluid system fixes: ( #6175 )
...
- Fix race condition lazy-initializing flowing fluid block data.
- Fix typo in ItemTextureQuadConverter that prevents certain animated textures from being used in the fluid bucket.
- Fix calls to onContentsChanged in FluidTank.
- Fix FluidUtil.tryEmptyContainer logic when simulating.
- Fix EmptyFluidHandler.fill returning the wrong number.
2019-10-05 19:49:26 +02:00
tterrag
4f12261080
Move OnlyIn patches on DyeColor to SAS file
...
Also fix broken cobblestone stairs recipe
2019-10-04 02:26:54 -04:00
tterrag
fbdfc0f95c
Expose DyeColor#colorValue, remove OnlyIn from all DyeColor methods
2019-10-04 01:40:28 -04:00
cpw
48735c3946
Properly propagate the DimensionType information from server to client
...
at client connection time. This means the client now knows about the
dimensiontype properly and can access the ModDimension information on
the client.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-10-02 21:54:02 -04:00
Matthew Messinger
48ff897ed1
Move opening initial screen to after startup and events are enabled ( #6139 )
...
This allows events to be fired for the initial opening of the main menu
Also fixes MC-145102
2019-10-01 19:56:03 -07:00
Wyn Price
9db568d49d
Changed all calls of BlockState#getSoundType
to use the sensitive version. ( #6120 )
2019-10-01 19:54:23 -07:00
Draco18s
896e785994
Patch Sweet Berry Bush to have Crop Growth Event Hook ( #6094 )
2019-10-01 19:52:24 -07:00
tterrag
78cdb705d4
Allow structure processors to process entities
2019-09-28 18:18:24 -04:00
tterrag
b3631b707c
Make patched-in StairsBlock constructor public
...
Also fix supplier generic being too narrow in DeferredRegister#register
2019-09-27 17:56:30 -04:00
tterrag
2392a4c184
Fix new flower pot ctor not being usable with deferred register
2019-09-25 18:01:43 -04:00
tterrag
d510978446
Add constructor to StairsBlock that accepts a state supplier
2019-09-24 21:05:23 -04:00
tterrag
01a862db30
Fix sea level not being available on client, move hook to Dimension
2019-09-23 13:08:26 -04:00
tterrag
dfbd61436b
Add template arg to StructureProcessor#process
2019-09-22 23:35:12 -04:00
tterrag
0492b25335
Allow modded dimensions to customise World#getSeaLevel
2019-09-22 16:47:56 -04:00
tterrag
6d9cb0a646
Fix jigsaw blocks not mirroring properly
2019-09-22 16:47:44 -04:00
tterrag
dee844e232
Add IExtensibleEnum#init, extend FillerBlockType/PlacementBehaviour
2019-09-21 15:57:32 -04:00
tterrag
6fda1e968d
Make FlowerPotBlock extensible and reusable for mods
...
- Change static lookup map to an instance variable
- Add an instance variable for the "empty pot" for the current block
- Keep one instance of the lookup map between the empty pot and all its full versions
- Convert everything to use delegates
2019-09-17 19:57:58 -04:00
Brennan Ward
af8074cc39
Post tag event directly from reloader thread ( #6164 )
2019-09-17 14:39:36 -07:00
Brennan Ward
79ce18ac3e
Update furnace fuels to not recreate it's list every query, and update when tags are reloaded. Add Tag update events. ( #6140 )
2019-09-16 14:04:32 -07:00
MrCrayfish
f4215d121c
Reimplemented "MouseEvent" as RawMouseEvent for 1.14.X ( #6144 )
2019-09-16 13:03:10 -07:00
Take Weiland
60eecb98a6
Fix patch for vanilla spawning in WorldEntitySpawner ( #6130 )
2019-09-12 11:10:51 -07:00
LexManos
3cc76a3f60
Fix Entity.getPersistentData function name. Closes #6131
...
Bump spec version for first 1.14.4 RB.
2019-09-12 09:12:30 -07:00
Justin
ffdeeb95b7
Fix ParticleFactoryRegisterEvent not firing ( #6126 )
2019-09-12 09:01:43 -07:00
David Quintana
58335d7bc0
Minor fixes to the fluids ( #6150 )
...
* Fixed vanilla rendering of fluids to take into account the alpha bits of the color, and fix usages accordingly.
* Fixed missing texture derp.
2019-09-12 17:33:19 +02:00
David Quintana
b0c9d7cce9
Some (sadly breaking) improvements to the Fluid API ( #6110 )
...
* Some (sadly breaking) improvements to the API, after feedback and concerns provided by users:
- Moved calculation of the translation key to the FluidAttributes constructor, so that builders can be shared between still & flowing sub-fluids.
- Moved biome-based coloring to a dedicated FluidAttributes.Water variant, which is not used by default.
- Added logic to automatically gather fluid textures into the list of textures to bake.
- Patched BucketItem and FlowingFluidBlock to avoid eager access to the fluid objects.
- Added a ForgeFlowingFluid class, as a more user-friendly way to construct a new FlowingFluid.
2019-09-11 16:00:32 +02:00
LexManos
9183c2fa0d
Delay Block loot table name generation until needed, as calling early will result in an empty name as the block is not registered yet.
2019-09-10 16:00:57 -07:00
LexManos
389751beae
Fix slimes splitting more times then they should. Closes #6138
2019-09-09 15:30:11 -07:00
tterrag
2b4e3bcf54
Fix a couple places not calling forge getLightValue
2019-09-08 23:32:27 -04:00
tterrag
3dce85c49f
Properly fix missing attribute issue, add vanilla bug ID
2019-09-08 02:23:16 -04:00
tterrag
185ce79a68
Fix vanilla typo causing errors when client is missing entity attributes
2019-09-08 02:05:01 -04:00
tterrag
f777aba227
Remove StructureArgument to work around vanilla issue, clean up custom arguments
2019-09-08 02:01:17 -04:00
tterrag
5efa373d7f
Fix SCommandListPacket underflowing buffer when encountering a missing argument type
2019-09-08 01:33:21 -04:00
cpw
b6cd19b4ae
Fix problem with network connections timing out frequently. Turns out
...
there's a race condition - and the extra work forge does causes it to
happen much more frequently than vanilla (though I'm sure it's a vanilla
issue). Closes #6124 , #5767 and probably lots more.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-09-07 18:42:50 -04:00
tterrag
fc5573333d
Make /locate command support modded structures
2019-09-07 01:09:42 -04:00
tterrag
55fe7c470f
Make STRUCTURE_FEATURE registry a slave map of the FEATURE registry
...
Also convert Feature.STRUCTURES to a slave map
2019-09-06 23:42:19 -04:00
LexManos
e1863383ff
Fix naming conflicts with official names.
2019-09-04 22:33:17 -07:00
LexManos
2c8c022034
Add a bunch of tags from the omnibus.
...
Fix test imports. And update patches for line numbers.
2019-09-03 18:51:09 -07:00
bl4ckscor3
b5b43a5a36
Add spawn reason to spawn events ( #6096 )
2019-09-03 15:15:48 -07:00
Wire Segal
c09fe57031
Add collisionExtendsVertically hook to allow modded blocks that extend collision into the block above similar to fences. ( #6092 )
2019-09-03 14:50:27 -07:00
Daniël Goossens
68524ddde9
Fixed PlayerInteractEvent.LeftClickBlock useItem/useBlock ( #6045 )
2019-09-03 14:41:46 -07:00
Daniël Goossens
55bdd4d937
Readded IForgeItem#getHighlightTip hook. ( #6036 )
2019-09-03 14:30:41 -07:00
mcenderdragon
3f089e3add
Added gravity as attribute to Entities ( #5630 )
2019-09-03 13:20:44 -07:00
cpw
a4aa85259e
Add in some client only player connectivity events. Closes #5536
...
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-08-31 13:55:46 -04:00
cpw
ea1c7a7339
Add in MC REGISTER nonsense. Shut up #5730
...
Tweak network a bit to fix initialization order stupidity. (Constants don't
load classes!)
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-08-31 13:55:46 -04:00
David Quintana
68ff1afac1
Hookup BlockEvent.FluidPlaceBlockEvent ( #6103 )
2019-08-31 14:15:08 +02:00
David Quintana
d9f6659f2c
Fluid rework derp fixes. ( #6098 )
...
* Fix nulls returning from non-null methods, and null-check of non-nullable values.
* Fix missed computation of the isEmpty flag in FluidStack
* Cleanup getAmount/isEmpty calls.
* Remove redundant suppliers. That info is readily available from the vanilla Fluid / FluidState.
2019-08-29 21:09:42 +02:00
Vincent Lee
bae2ee0420
Minor model system cleanup/documentation ( #6089 )
2019-08-28 21:33:49 -07:00
ichttt
799e864d93
Fix Digging particle sometimes using the wrong block pos to get additional model data ( #6077 )
2019-08-28 21:33:15 -07:00
bl4ckscor3
d5e20b13b9
Restore PotionShiftEvent ( #6042 )
2019-08-28 21:15:55 -07:00
Daniël Goossens
c83d4d29e4
Added new InputEvent.MouseScrollEvent, fixes #5811 ( #6037 )
2019-08-28 21:13:31 -07:00
valoeghese
56857cf5e7
Added hook to allow biomes to specify custom river variants. ( #5969 )
2019-08-28 20:12:52 -07:00
Vincent Lee
838998b885
Add particle factory registration event ( #6018 )
2019-08-28 18:42:17 -07:00
David Quintana
b7e1cc5f6b
Fluid API rework ( #5983 )
...
- Moved forge fluids into FluidAttributes companion object to the vanilla Fluid. By gigaherz
- Redesigned the Fluid API to be closer to the Items API. By King Lemming
Co-authored-by: King Lemming <kinglemming@gmail.com>
2019-08-29 03:18:41 +02:00
LexManos
e784a7f606
Recipe system cleanup. ( #6014 )
2019-08-29 03:18:41 +02:00
Managarmr
3e9bc3c434
Fix regular arrows giving off particles after a world reload (MC-107941) ( #6061 )
2019-08-28 18:12:47 -07:00
ichttt
dd340b8ef2
Fix coremod not redirecting to the correct method ( #6078 )
2019-08-28 17:49:46 -07:00
LexManos
7deb479676
Fix blocks being placed in adventure mode. Closes #6085
...
Add early error for setting invalid world directory. Closes #6084
Fix PlayerTickEvent not firing when dead, even if player isn't removed from world yet. Closes #6074
Fix PlayerDestroyItemEvent not firing for some cases. Closes #6067
2019-08-28 12:57:25 -07:00
LexManos
283c3d1664
Prevent worlds from unloading while players are in out-of-world states by tracking all worlds references by every player in the server's player list.
2019-08-20 15:31:08 -07:00
LexManos
0c1c1b65e1
Sort server.properties while writing.
2019-08-20 15:27:31 -07:00
LexManos
b0787e9f40
Fix chunk load failure when entering End portal Closes #6068
2019-08-19 19:46:00 -07:00
Vincent Lee
8c04651301
Add hook to load custom mrls/rls not attached to a block or item. ( #6010 )
2019-08-15 11:03:57 -07:00
bl4ckscor3
94621fecd1
Cover more cases for RightClickBlock event and restore onItemUseFirst ( #6009 )
2019-08-15 10:34:59 -07:00
its_meow
50e411b82a
Add piston events ( #5798 )
2019-08-02 14:12:21 -07:00
henkelmax
e83e00520f
Fixed PlayerInteractEvents not working ( #5976 )
2019-08-02 13:44:17 -07:00
LexManos
48fa2f458c
Make Villager profession unlocalized name use modids when not 'minecraft' Closes #5977
...
Fixed trees able to be generated through water. Closes #6000
Change Block#toString to use getRegistryName instead of getNameForObject Closes #5937
Allow Cooking Recipes to deserialize results with stack sizes. Closes #5960
2019-08-02 13:37:02 -07:00
LexManos
318fc6ffe8
Fixed DimensionType.getRegistryName() returning null Closes #5992
...
Fixed RegisterDimensionEvent not firing for new worlds. Closes #5987
2019-07-31 22:43:46 -07:00
LexManos
b009cedc0c
Introduce new Side Annotation Stripper system to semi-automate the shipment of Sided methods and cleanup patches.
...
New forge:checkSAS task to validate this config file. Closes #5995
2019-07-31 21:15:39 -07:00
ichttt
c6dd475610
Move world unload patch to tick function to prevent duplicate unloading, fix log message in dim manager, fix javadoc for unload method ( #5964 )
2019-07-30 16:39:05 -07:00
bl4ckscor3
61285a098a
fix melon and pumpkin seeds being peaceable on more than just farmland ( #5980 )
2019-07-30 16:35:23 -07:00
Paul Becker
995a8b8d35
Fixed possible ClassCastException with dye-able armor. ( #5985 )
2019-07-30 16:30:12 -07:00
cpw
283ece29e8
Fix vanilla bug that hardcore death doesn't clean up properly, leaving
...
a running server and a broken GUI. Vanilla bug MC-148865
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-07-27 12:47:59 -04:00
LexManos
1918148b8e
Fixed network ticking player entity while it is dead. And explicitly prevent overworld from unloading. Closes #5978
2019-07-27 02:35:06 -07:00
LexManos
57d4d60a33
Fix Slimes not splitting on death Closes #5973
2019-07-25 17:59:57 -07:00
LexManos
731e1920d2
Fix @ObjectHolderRegistry not properly detecting vanilla class level references. Closes #5958
2019-07-25 17:59:08 -07:00
LexManos
7411b444d3
Fixed missed patch causing blocks to not dropping EXP and BreakEvent to not fire.
2019-07-24 11:15:23 -07:00
David Quintana
ae3d002ac6
Fix & Improve state comparison when checking vanilla block replacements ( #5922 )
2019-07-22 19:23:20 -07:00
LexManos
1bd70ac5ab
Keep player cap data until they have revived. Closes #5956
2019-07-22 15:45:38 -07:00
cpw
fcd9582133
Fix datafixer exception catch: Closes #5951
...
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-07-20 19:59:08 -04:00
JoJoModding
2f83234ccb
Fix spam during startup ( #5957 )
2019-07-20 14:55:21 -07:00
LexManos
00fc29d40d
Fix javac compile issues.
2019-07-19 23:27:31 -07:00
cpw
27afdc8a27
Provisional update to 1.14.4. Missing a lot of playerinteractionmanager patches because everything moved and I'm tired.
...
Fix up immediate problems.
bump to 28.
2019-07-20 00:35:40 -04:00
CJ Miller
9f5ce12754
Remove OnlyIn Client Distribution from Effect and EffectType methods. ( #5925 )
2019-07-18 14:15:31 -07:00
LexManos
cb21e95e0b
Change default BrewingRecipe to use an Ingredient for the input instead of ItemStack. Closes #5944
...
Add AT for GameRules.register Closes #5946
Fix Forge Blockstate loader model path is inconsistent with vanilla blockstates Closes #5892
Fix client crashing when opting not to load a world when there's missing blocks Closes #5886
2019-07-18 14:13:20 -07:00
LexManos
e6f032db1b
Fix CheckSpawn event logic for natural spawns.
2019-07-16 22:38:11 -07:00
LexManos
86e9425638
Fixed item breaking particles not capturing current state of the ItemStack. Closes #5934
2019-07-16 16:02:52 -07:00
ewewukek
53ac33a84c
Fix RenderSpecificHandEvent firing with wrong hand stack ( #5927 )
2019-07-16 12:42:33 -07:00
LexManos
a46b7cb67a
Fixed PlayerSleepInBedEvent pos is always null Closes #5936
...
Fixed decompile error causing Endless Loop in ModelBackery if model errors exist.
Fixed NPEs related to teleporting players without portals.
2019-07-16 11:52:51 -07:00
LexManos
3d78f30d18
Add simple concurrency protection to Server world list. Closes #5938 and #5739
2019-07-16 09:59:33 -07:00
LexManos
ce28c5794d
Cleanup Forge's Access Transformer, and add ATs for Block.Properties#noDrop, and AxeItem/PickaxeItem. Closes #5866 and Closes #5921
2019-07-10 17:39:19 -07:00
LexManos
e55c7c889b
Fix race condition in client mouse handler. Closes #5888
2019-07-10 17:35:53 -07:00
LexManos
0633e8218f
Added LootPool.Builder#bonusRolls setter. Closes #5887
2019-07-09 18:21:05 -07:00
LexManos
0fdfe1fd59
Implemented Item.get/setDamage hooks. Closes #5899
2019-07-09 18:03:19 -07:00
LexManos
2cc264645b
Implement Item.isRepairable in Crafting and Grindstone. Closes #5917
2019-07-09 18:02:47 -07:00
LexManos
983e0a93db
Re-implement state.onBlockExploded() Closes #5914
2019-07-09 17:07:09 -07:00
Vincent Lee
d88e4fbf36
Add general damage hook for items. Closes #5502 ( #5670 )
2019-07-08 20:43:02 -07:00
LexManos
8742d74e93
Pass tick counter to custom render handlers ( #5744 )
2019-07-08 19:55:47 -07:00
ichttt
06a30e9f23
Adds some explanatory javadocs and check world in ModelDataManager ( #5762 )
2019-07-08 19:47:18 -07:00
ichttt
d41fad51c2
Add IModelData to getParticleTexture ( #5756 )
2019-07-08 19:46:32 -07:00
LexManos
61bea2bfda
Fixed EntityJoinWorldEvent not being fired when player is added to ServerWorld. #5827
...
Fixed wrong example path for the access transformer in the MDK build.gradle. #5891
Added getters for mouse x/y velocity and if the middle-mouse button is being held down. #5776
Modify issue template for better clarity. #5874
Fixed grindstone not using ItemStack-sensitive getMaxDamage. #5831
Added ParticleManager.registerFactory to Forge's AT. #5896
Fixed NPE in SidedInvWrapper when side was null. #5787
Moved EndermanEntity.setAttackTarget super call to allow LivingSetAttackTargetEvent the ability to override default behavior. #5778
Added field to make "Looking at" debug info maximum distance configurable #5714
2019-07-08 18:42:12 -07:00
DaemonUmbra
bed266f310
Fixed #5895 : Shearing via Displenser drops Shears ( #5906 )
2019-07-08 15:47:34 -07:00
Suppergerrie2
3992ea5c59
Added harvestLevel and harvestTool setter to the Block.Properties. ( #5916 )
2019-07-08 15:45:53 -07:00
m00nl1ght-dev
7a8ae9f56b
Fix old entity not being removed on dimension change ( #5833 )
2019-07-04 13:03:45 -07:00
primetoxinz
765efc3c72
Update TextureStitchEvent.Pre to give access to the list of ResourceLocations that will be loaded as textures. ( #5870 )
2019-07-03 12:26:51 -07:00
David Quintana
87e2fcb4e5
Redirect a method to the recipe book container, to allow modded screens to have a recipe book. ( #5873 )
2019-07-02 13:05:03 -07:00
Take Weiland
478b7e7ccc
Fix WorldEvent.Unload not firing on the client ( fixes #5880 ) ( #5884 )
2019-07-02 12:58:45 -07:00
Take Weiland
0574db134c
Fix TickEvent.PlayerTickEvent firing twice for tick end ( fixes #5878 ) ( #5885 )
2019-07-02 12:57:06 -07:00
cpw
c8e5007913
Remove legacy StartupProgress.
...
Implement properly scalable progress thanks to @gigaherz. Closes #5863 .
Implement API for pushing messages to the startup screen from mods.
Add memory display.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-06-30 23:48:54 -04:00
LexManos
13ae8e41ee
Fix duplicate WorldEvent.Unload call in client key handler.
...
Add recipe generator to replace vanilla recipes with Forge tags.
2019-06-27 17:23:23 -07:00
LexManos
ac8b196b8c
Fix dimension save data invalid cache being to aggressive.
2019-06-27 10:57:03 -07:00
MajorTuvok
7915397377
Add extension to write entry id's to PacketBuffer's ( #5812 )
2019-06-25 13:55:24 -07:00
LexManos
f4598a97f7
Fix vines and scaffolding not being climbable.
...
Fix powered rails not spreading power correctly. Closes : #5854
2019-06-24 20:05:50 -07:00
LexManos
c90d42973d
Fix misaligned ServerWorld initCapabilities patch.
2019-06-24 19:37:02 -07:00
LexManos
ff0bb8c83c
Initial 1.14.3 update.
2019-06-24 19:01:03 -07:00
tterrag
216b536967
Remove OnlyIn on TagCollection#getOwningTags
...
Fixes Block#getTags crashing on servers
2019-06-23 18:36:27 -04:00
cpw
0a819da0e7
Reorganize sided event dispatch slightly. Dispatch model and entityrenderer
...
functions at more appropriate times.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-06-23 16:01:20 -04:00
cpw
448d996a45
First pass of adding text to the loading progress UI. It deliberately uses the very primitive STB
...
generated font, so can only render basic ASCII text, and also only renders pre-defined strings,
as translations aren't available either.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-06-22 23:39:00 -04:00
cpw
89baeb3d5d
Fix StartupQuery, and put tests back.
...
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-06-22 19:58:10 -04:00
cpw
83a0dc2ef9
Merge remote-tracking branch 'origin/1.14.x' into 1.14.x
2019-06-21 22:42:33 -04:00
cpw
c10174d50d
Update mappings, move mod initialization to the async loader.
...
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-06-21 22:42:16 -04:00
tterrag
5a3b375147
Fix #5612 add entity to ISelectionContext
2019-06-21 21:15:56 -04:00
tterrag
19059b054e
Fix #5810 incorrect cullface on some models
2019-06-21 20:23:32 -04:00
tterrag
45bc487fc0
Fix #5686 ArmorLayer still calls deprecated getArmorResource
2019-06-21 19:48:00 -04:00
tterrag
9c74a31ca2
Fix bad patch breaking armor dyeing
2019-06-21 19:47:23 -04:00
tterrag
5fb948fb35
Fix #5805 ModelBakeEvent does not fire
2019-06-21 19:34:58 -04:00
LexManos
a14c2233e0
Fix lighting not being sent to client when large amounts of blocks change at once. Closes #5839
...
Remove RecipeType/VanillaRecipeTypes, as 1.14 has a vanilla system for this.
2019-06-19 18:10:02 -07:00
LexManos
f01b87fac7
Fix some compile errors in test classes.
2019-06-19 18:07:58 -07:00
LexManos
40bdde2043
Fix Vanilla resources loading from classpath, instead of the extra jar. Causing issues in dev time, and Forge replacements. Closes #5824
2019-06-17 14:08:16 -07:00
cpw
d821514372
Modify lex's data handler to use proper mod lifecycle event mechanisms
...
instead. New Lifecycle Event for requesting data harvesting. Mods will
be constructed, the registry will fire, and then a new Data event will
fire. Submit new data tag files to the data gatherer if you wish.
The game will shutdown after this. No other mod elements will happen.
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
2019-06-15 21:24:45 -04:00
LexManos
e1cdb2e558
Expose the data entry point and generate Forge's Tags using it.
2019-06-13 20:58:03 -07:00
LexManos
c30b27fcfe
Add reverse tag cache, to make looking up tags for items/blocks/etc.. less costly.
2019-06-12 19:28:10 -07:00
SquidDev
ed6ce87c22
Fix RenderSpecificHandEvent firing with wrong hand ( #5789 )
2019-06-12 01:05:27 -04:00
tterrag
0b1196db3f
Fix #5806 sheep drop shears instead of wool
...
lol
2019-06-12 00:57:27 -04:00
tterrag
b25ed7ef91
Fix incorrect method used in ShrubFeature patch
2019-06-12 00:51:45 -04:00
tterrag
dc95130526
Rework AbstractTreeFeature patches to reduce impact and avoid name conflicts
2019-06-12 00:48:11 -04:00
tterrag
d5ee80a70a
Add IContainerFactory for reading custom container data on the client
2019-06-10 18:14:49 -04:00
LexManos
5dc944c1c3
Fix Fishing and Mineshaft Minecarts loot tables erroring. #5785
...
Fix Client block breaking speed not matching the server. #5790
Fix Village Siege event location, and MC-154328 preventing Sieges starting. #5800
Fix EntityJoinWorldEvent not firing on client, or some server code paths. #5786
2019-06-10 14:03:51 -07:00
LexManos
1434419e47
Fix gameDir argument error on dedicated server.
2019-06-09 11:19:01 -07:00