Commit graph

1464 commits

Author SHA1 Message Date
modmuss50
3ed6d97f7c Bump version 2024-05-30 09:49:55 +01:00
PepperCode1
85287f9fcd Fix model offset being ignored in non-terrain rendering (#3799)
- Add exception handling to BlockRenderContext#render to match vanilla

(cherry picked from commit 8d125e3b6f)
(cherry picked from commit d331d314d8)
2024-05-30 09:32:41 +01:00
modmuss50
1466179b97 Bump versions 2024-04-09 18:03:47 +01:00
Syst3ms
8dd72ea3fa
Fix jukebox state getting changed mid-transaction (#3693)
* fix jukebox state getting changed mid-transaction (#3517)

* fix mixin

---------

Co-authored-by: deirn <deirn@bai.lol>
2024-04-09 17:58:07 +01:00
modmuss50
1098aed821 Bump version 2024-02-13 19:09:23 +00:00
modmuss
de0fd6d132 Fix empty data attachments being saved. (#3588)
* Fix empty data attachments being saved.

* Checkstyle
2024-02-13 19:05:10 +00:00
Jochen Jacobs
41e516f9db Fix data attachment testmod (#3586)
* fix data attachment testmod: use marker file to determine first/second launch

* fix typos

* one more typo
2024-02-13 19:05:10 +00:00
Jochen Jacobs
7e2f48b4b4 Extend Data Attachment API to ProtoChunk (#3548)
* allow data-attachment on ProtoChunks

- moved interfaceInjection from WorldChunk to Chunk
- dataAttachment saving on ProtoChunks in ChunkSerializer
- copy attachment from ProtoChunk to WorldChunk on creation.
- make WrapperProtoChunk wrap attachment calls to WorldChunk

* add test for data-attachment on ProtoChunks, and extend testmod.

* code style and license headers

* fix typos in javadoc

* extend testmod to test setting attachment during worldgen.

* code formatting

* fix testmod: don't crash when feature isn't placed (i.e. on GameTest server)

* add warning when adding persistent attachment to chunk with status EMPTY.

* update javadoc

* update javadoc to reference ServerLivingEntityEvents#MOB_CONVERSION

Backport persistent state code
2024-02-13 19:05:10 +00:00
Syst3ms
efd4a353d0 Data Attachment API (#3476) 2024-02-13 19:05:10 +00:00
Syst3ms
1c78457f5d
[1.20.1] Backport mob conversion event (#3576)
* Add mob conversion event (#3511)

* Add mob conversion event

* spacing

* use a smarter mixin strategy

* add pig and villager lightning triggers

* tyop

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* handle tadpole -> frog conversion

- update javadoc to clarify the handled cases
- document keepEquipment parameter
- improve mixin handler names

---------

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* Loader dep

* Update mixins for loader

Incorporates the fix in 4ced059

---------

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
2024-02-10 21:27:08 +00:00
modmuss50
563d4c177b Bump version 2024-02-08 09:23:17 +00:00
modmuss
1802ada56f
Update Loom/Gradle and Fabric Loader (#3571) 2024-02-08 09:21:21 +00:00
modmuss50
9c89d33043 Bump version 2023-11-26 13:52:23 +00:00
modmuss
29de845de0 Fix registry resource conditions on loot tables. (#3432)
* Fix registry resource conditions on loot tables.

* assert we dont already have the DRM set on this thread.

* Use a sync map

(cherry picked from commit de5c6cca0a)
(cherry picked from commit 239dafd8f9)
2023-11-26 13:13:35 +00:00
Technici4n
c81d26314d Fix empty storage iterator returning views that become empty during iteration (#3423)
(cherry picked from commit aaf9c9690c)
(cherry picked from commit 9ab11d529d)
2023-11-26 13:13:30 +00:00
modmuss50
cff34500a0 Bump version 2023-11-02 12:49:49 +00:00
Technici4n
1bc31aeb60 Fix log spam with multiple calls to combinedItemApiProvider (#3387)
(cherry picked from commit d6f4a34e15)
(cherry picked from commit bb1ee60efb)
2023-11-02 10:35:42 +00:00
Estecka
ae9f657a88 Fix Doubles not being editable in the game-rule menu (#3397)
* Fix double gamerules rules not being editable in menu

* Updated `validate`'s javadoc

(cherry picked from commit a44e16a6dc)
2023-11-02 10:30:46 +00:00
modmuss50
050aeb47e8 Bump version 2023-10-22 14:46:00 +01:00
Shnupbups
4ee0bc6089 Fix FabricBlockSettings copyOf missing settings (#3373)
Fixes FabricBlockSettings' copyOf method missing several new settings introduced as a result of the removal of Materials.

Specifically, burnable, liquid, forceNotSolid, forceSolid, pistonBehavior, instrument, and replaceable. These are all copied by the vanilla `BlockSettings.copy` as well.
The emissiveLightingPredicate is also now copied in vanilla, so I moved the copy of that to reflect that change.

(cherry picked from commit 2ff98d3bac)
2023-10-22 13:46:36 +01:00
modmuss50
16a9bc783e Bump version 2023-10-08 13:34:37 +01:00
apple502j
215bbe96c2 Fix inconsistency of placed feature locations (#3369)
* Fix inconsistency of placed feature locations

`BiomeSource#getBiomes` mixin applies to all biome sources, including one for Overworld.
The return value is a set; however one caller in the worldgen code iterates over it: `PlacedFeatureIndexer`.
Using a hash set here randomizes the return value, affecting feature placement.
Use a linked hash set instead.

* Improve fix to only make changes when required.

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit 661cc8c6dc)
2023-10-08 13:14:49 +01:00
LLytho
96dfa9590d
Add LootTableEvents.LOADED event (#3352)
* Implement `LootTableEvents.LOADED` event

* Update for checkstyle

* rename event

* Update fabric-loot-api-v2/src/main/java/net/fabricmc/fabric/api/loot/v2/LootTableEvents.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2023-10-08 13:05:30 +01:00
modmuss
d7b148e0ec Make some experimental APIs stable. (#3354)
* Make some experimental APIs stable.

* Imports.

(cherry picked from commit e3d2bf3f57)
2023-10-08 13:04:49 +01:00
modmuss50
ee80040aaa Bump version 2023-10-01 12:48:14 +01:00
Technici4n
0889cb781a Fix bad interaction between FabricDynamicRegistryProvider and modded dynamic registries (#3353)
* Add reproduction test

* Fix the issue

(cherry picked from commit d19c412984)
2023-10-01 12:40:19 +01:00
apple502j
0737cd807b Biome API: javadoc fixes (#3348)
(cherry picked from commit d9a2869ba3)
2023-10-01 12:40:16 +01:00
apple502j
57aed33f27 Content Registries: javadoc and small refactor (#3347)
(cherry picked from commit 285022b3bc)
2023-10-01 12:40:13 +01:00
alexia
68c3a29b6b
Update link to Minecraft Wiki (#3336)
Minecraft Wiki has officially moved from Fandom to their own wiki. I updated a link I found in a comment.
2023-10-01 12:34:55 +01:00
modmuss50
8a234a4fd5 Bump version 2023-09-18 18:07:35 +01:00
Technici4n
39a511ba53
FRAPI improvements: context getters, full removal of fallback consumers, small enhancements (#3287)
* Add cull check and item transformation mode getter to FRAPI

* Terminally deprecate `fallbackConsumer` and `bakedModelConsumer`

* Fix uvs in octagonal column test mod

* Review comments
2023-09-18 16:13:11 +01:00
Technici4n
ecfd5a888d
Fix Random mismatch between vanilla and FRAPI baked models (weighted and multipart) (#3282)
* Fix Random mismatch between vanilla and FRAPI baked models (weighted and multipart)

* Review comments
2023-09-18 16:12:00 +01:00
ErrorCraft
0883a8d4d9
Add a method to data generator entrypoints to register custom keys with priorities (#3087)
* Add JsonKeySortOrderCallback

* Use an entry point rather than an event for sort keys and priorities

* Resolve static imports

* Add a bit of javadoc

* Check if a key is null and modify the javadoc

* Add a field reference in the javadoc

* Rename JsonKeySortOrderAdder to JsonKeySortOrderCallback
2023-09-18 16:11:50 +01:00
modmuss50
a51b242225 Bump version 2023-09-03 21:54:39 +01:00
PepperCode1
9f8c23c7dc
Implement RenderAttachedBlockView on ChunkRendererRegion (#3300) 2023-09-03 21:52:39 +01:00
modmuss50
f1861fd5a8 Bump version 2023-09-03 13:34:03 +01:00
PepperCode1
92a0d36746
BlockView API v2 (#3268)
* Fabric BlockView API v2

* Fix dependency on nonexistent module

* Add test for biome getter

* Improve getBiomeFabric documentation

* Simplify javadoc
2023-09-03 13:06:21 +01:00
deirn
195226a756
Mark SidedStorageBlockEntity's side as nullable (#3281) 2023-09-03 12:46:52 +01:00
modmuss50
8cafc14235 Bump version 2023-08-13 16:26:21 +01:00
PepperCode1
6bdb2ed00f
Improve Indigo and FRAPI Test Mod (#3208)
* Improve flat shade

- Use AO mode to make flat shade calculation consistent with shade applied by smooth lighting
- Use face normal to calculate shade if necessary
- Use normal shade even if no custom normals are set

* Improve FRAPI test mod

- Add octagonal column to test irregular face lighting
- Use obsidian sprite instead of missing sprite for frame mesh
- Simplify and organize registration
- Inline `simple` package

* Fix crumbling on 45 degree faces

- Fix checkstyle
- Give octagonal column a non-zero hardness

* Fix checkstyle

* Improve PillarBakedModel to fully support custom block appearance

* Explain OverlayVertexConsumer fix
2023-08-13 16:01:37 +01:00
qouteall
8536527b69
Make DFU error-tolerant to mod custom generator types (#3213)
* Make DFU error-tolerant to mod custom generator types.

* Fix license. Rename mixin.

* Fix license.

* Disable remap in Schema2832Mixin
2023-08-13 16:01:27 +01:00
modmuss
0d99377dd7
Make deprecated modules opt-out instead of opt-in (#3246)
* Make deprecated modules opt-out instead of opt-in

* Add comment

* Update build.gradle

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2023-08-13 16:01:17 +01:00
modmuss
eeb8eb36ff
Fix #3255 (#3257) 2023-08-13 16:01:02 +01:00
modmuss50
d9acd820fc Bump version 2023-07-25 14:55:57 +01:00
apple502j
1e61dba1a0
Fix data generation for custom dynamic registry (#3216)
* Fix datagen for custom dynamic registry

* Test datagen for custom dynamic registry

* Check if the dynamic registry is registered with Fabric API

* Cleanup testmod

* Don't apply to registries not added using the fabric api.

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2023-07-25 14:21:33 +01:00
PepperCode1
709a9871d4
Clarify nullability of ModelModifier.AfterBake (#3212)
* Clarify nullability of AfterBake modifier

* Fix documentation

Null baked models are cached, but only in the inner cache, which is not accessible after all baking is finished. The term "cache" is also ambiguous, so its use has been removed.

* Add breaks for v0 <0.4.0
2023-07-25 14:04:00 +01:00
modmuss
4df89eb2a6
Fix #3215 - Only add namespace to registries added using the Fabric API. (#3219)
* Fix #3215 - Only add namespace to registries added using the Fabric API.

* Cleanup
2023-07-25 14:03:45 +01:00
modmuss
23d91081b6
Sort item groups to ensure they are in a deterministic order between runs. (#3222) 2023-07-25 14:03:30 +01:00
modmuss50
e3d1b5f3d8 Bump version 2023-07-18 13:55:53 +01:00
Technici4n
cdf060b274
A few transfer API improvements and deprecations (#3204)
* A few transfer API improvements and deprecations

* Forward implementation of deprecated methods
2023-07-18 12:56:03 +01:00