Commit graph

1305 commits

Author SHA1 Message Date
apple502j
83a865928d
Make static-only classes final and unconstructible (#2421)
The following classes have been made final and unconstructible:

- All convention tags classes
- `FluidVariantAttributes`
- `FluidVariantRendering`

The following classes have been made unconstructible:

- `BiomeModifications`
- `ClientEntityEvents`
- `ClientTickEvents`
- `LootTableEvents`
- `FabricDefaultAttributeRegistry`
- `MinecartComparatorLogicRegistry`
- `StorageUtil`

The following classes have been explicitly marked as final. Note that actually extending such class has always been impossible due to missing public constructor:

- `VillagerInteractionRegistries`
- `VillagerPlantableRegistry`
- `ModelHelper`
- `StoragePreconditions`

While the first two are technically breaking changes, there is no actual or observed usage for any of those.
2022-08-06 19:04:11 +01:00
apple502j
e6ea5984c7
ModResourcePackUtil: Properly handle special chars in mod name (#2407)
* ModResourcePackUtil: Properly handle special chars in mod name

* Add tests

* Fix NPE in testmod
2022-08-06 19:02:42 +01:00
Deximus-Maximus
b35fea83d3
Add client tags module (#2308)
* Add client tags module

* Fix not actually returning the tag eval. for dynamic registry fallback

* Use dynamic registry where needed

* Make ClientTags uninititializable

* Resolve feedback

* Change package

Co-authored-by: deirn <deirn@bai.lol>

* Change package

Co-authored-by: deirn <deirn@bai.lol>

* Remove unused dep. block

Co-authored-by: deirn <deirn@bai.lol>

* Fix imports

* Move the files to match new package

* Apply feedback

* Apply feedback

* Add test mod

* Fix CME

* Fix checkstyle

* Apply feedback

* Apply feedback

* Apply feedback

* Fix checkstyle

Co-authored-by: deirn <deirn@bai.lol>
2022-08-06 19:02:27 +01:00
Deximus-Maximus
6718a028fc
Add TagUtil (#2307)
* Add TagUtil

* Allow for the registry manager to passed in allowing for dynamic tags to be used

* Update JD

* Remove redundant fallback

* Make TagUtil final

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

* Make TagUtil uninititializable

* Add test mod

* Fix spotless for test mod

* JD indent

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>

* Apply suggestions

* Fix checkstyle

* Apply feedback

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
2022-08-06 19:02:01 +01:00
Technici4n
1e232e13ae
Move a few object builders to transitive AWs (#2154)
* Move a few object builders to transitive AWs

* Remove outdated access widener

* Remove controversial deprecation of FabricBlockEntityTypeBuilder
2022-08-06 19:01:41 +01:00
modmuss50
5eb68ef24d 1.19.2 2022-08-05 15:20:07 +01:00
Technici4n
417b986df1
Add development guidelines (CONTRIBUTING.md) (#2377)
* Add development guidelines (CONTRIBUTING.md)

* Fix typos

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Address remaining TODOs, a few formatting changes

* Apply feedback

- Add links to sections in summary
- Add note about thread-safe caching
- Functionalities added by vanilla MC don't need to be ported to new module versions
- Do not use deprecated to generate compiler/IDE warnings
- TAW updates
- Interface injection indents
- A few more fixes

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

* Apply suggestions from code review

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

* Apply suggestions from Juuz

* Remove mention of self types

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2022-07-29 18:30:02 +01:00
modmuss50
5cda40cfe1 Bump version 2022-07-27 20:30:36 +01:00
modmuss50
6be91f4124 1.19.1 2022-07-27 20:29:47 +01:00
Gegy
4e0178f48a
Fix: broadcast message headers when chat event is cancelled (#2426)
This resolves an issue where the chat signing chains for players would be broken when the server cancels a signed player message. This could lead to clients disconnecting after receiving any following message due to the broken chain.
2022-07-27 20:26:56 +01:00
modmuss50
308233144b Fix accidental breaking change made to PacketSender in rc3 port. 2022-07-27 00:01:05 +01:00
modmuss50
40efc82b2b Checkstyle. 2022-07-26 21:04:42 +01:00
modmuss50
8e190802a5 1.19.1-rc3 2022-07-26 20:53:20 +01:00
modmuss50
aab4069d66 Bump version 2022-07-26 12:49:29 +01:00
apple502j
0c17ea96b8
Fix 1.19.1 client command API bugs (#2425) 2022-07-26 12:47:54 +01:00
modmuss50
d4b7bd1caa Bump versio 2022-07-24 16:08:37 +01:00
apple502j
e6c0642c7f
Message API: 1.19.1 changes (#2411)
* BREAKING: Add server param to game message events

* Update javadocs

* Update testmod

* Fix param name in testmod

* Update ServerMessageEvents.java
2022-07-24 16:07:05 +01:00
modmuss50
c558657297 Bump version 2022-07-21 20:41:35 +01:00
modmuss50
4f30a9cf7a 1.19.1-rc2 2022-07-21 20:25:12 +01:00
modmuss50
437c2eec0b Merge remote-tracking branch 'origin/1.19' into 1.19.1 2022-07-21 20:20:45 +01:00
deirn
5f1a85e065
fix custom dimension not loaded on world preset other than default (#2387) 2022-07-21 20:08:20 +01:00
Technici4n
35a03c43c2
Fix inconsistent ordering of item attribute modifiers by using a linked hashmap (#2380) 2022-07-21 20:08:00 +01:00
apple502j
442de8b862
Fix incorrect check in GlobalReceiverRegistry (#2363) 2022-07-21 20:07:48 +01:00
deirn
c54bb47e4e
Make disconnected screen reason text scrollable (#2349)
* Make disconnected screen reason text scrollable

* Remove redundant mixin.

* wrong unique

* fix max scroll having additional line-sized gap

* turns out it's the testmod fault for having an extra new line

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-07-21 20:07:37 +01:00
PepperCode1
5187d39fe0
Fix Indigo AO calculation (#2344)
* Fix AO calculation

- Ensure calcFastVanilla and computeFace have parity with vanilla
- Ensure BlockStates are not queried more than once for the same position
- Replace deprecated FabricLoader#getConfigDirectory call with FabricLoader#getConfigDir

* Revert opaque sides fix

* More AO fixes and optimizations
2022-07-21 20:07:20 +01:00
modmuss50
25a4c8239c 1.19.1-pre6 2022-07-20 19:47:52 +01:00
modmuss50
240720a216 1.19.1-pre4 2022-07-08 18:49:07 +01:00
modmuss50
64e495f64a Enable parallel builds by default.
Update remotesign to a parallel capable version.
Set org.gradle.parallel.threads in actions as we are IO bound.
2022-06-30 18:20:40 +01:00
modmuss50
d5533c01e6 1.19.1-pre2 2022-06-30 18:19:22 +01:00
modmuss50
bdca8858a1 Bump version. 2022-06-28 19:47:24 +01:00
apple502j
f05effaf73
Make screen API crash easier to debug (#2338)
* Make screen API crash easier to debug

* Update fabric-screen-api-v1/src/client/java/net/fabricmc/fabric/mixin/screen/ScreenMixin.java
2022-06-28 19:26:44 +01:00
deirn
a6d2f785a8
Fix custom dimension not getting loaded on first world load (#2345)
* re-enable custom dimension test

* port ServerBugfixMixin to 1.19

* fix custom dimension not loading on first load on client
2022-06-28 19:25:50 +01:00
Shnupbups
07df213ec3
Sculk Sensor Frequency Registry (#2279)
* Sculk Sensor Frequency Registry

- Mixin'd to `SculkSensorBlock` to make its `FREQUENCIES` map modifiable.
- Created `SculkSensorFrequencyRegistry` with a dedicated method for registering these frequencies, with all necessary checks to avoid issues, and javadoc to assist in understanding.
- Added tests to the test mod, as well as a block that emits a test event, to ensure it all works.

Unfortunately, the mixin currently uses a Redirect. If this is undesired, feel free to suggest other ways of achieving the end result of being able to modify the frequencies map.

* Update SculkSensorFrequencyRegistry.java

* cleaner javadoc

* Update fabric-content-registries-v0/src/main/resources/fabric-content-registries-v0.mixins.json

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

* Final touches

...get it?

(oh and removed that Dynamic because tech didn't like it)

* Whoops

Forgot to remove the Dynamic import
Also restored the actual contents of the dynamic, as javadoc.

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-06-28 19:21:04 +01:00
Juuxel
03a4e5689e
Add FabricLootTableBuilder.modifyPools (#2314)
* Add FabricLootTableBuilder.modifyPools

* Fix typo in javadoc
2022-06-28 19:20:54 +01:00
Player
f11b62ad06 Bump versions 2022-06-24 05:53:35 +02:00
Player
1f92344eb5 Clarify Indigo TextureHelper BAKE_NORMALIZED use 2022-06-24 05:51:57 +02:00
Player
b29f2732f8 Revert "Fix the bitwise comparison for BAKE_NORMALIZED (#2353)"
This reverts commit d0a4acbdc1.
2022-06-24 05:51:48 +02:00
modmuss50
cbf27fce51 Bump version 2022-06-23 20:20:29 +01:00
RichieSams
d0a4acbdc1
Fix the bitwise comparison for BAKE_NORMALIZED (#2353)
The bitwise comparison is doing the opposite of what we want. It's currently checking for the *absence* of the BAKE_NORMALIZED flag. And if the flag is absent, it is normalizing. This should do the opposite.
2022-06-23 20:17:51 +01:00
apple502j
23c4cfef68
Fix registry sync namespace check (#2356)
* Fix registry sync namespace check

* Remove bad test.

* Fix wrong comment

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-06-23 20:16:58 +01:00
modmuss50
ea0f1265a7 Bump version. 2022-06-19 19:46:45 +01:00
Technici4n
82552130ba Fix #2108: FlammableBlockRegistry ignores tags unless /reload (#2326) 2022-06-19 19:21:06 +01:00
modmuss50
db8596f1f3
Optimise file exists check in ModNioResourcePack (#2339) 2022-06-19 19:18:40 +01:00
PepperCode1
c57dbccabe
Defer Indigo item rendering (#2336)
- Move ItemRenderer injection point from head to before isBuiltin check to allow model replacement to run
2022-06-19 19:18:26 +01:00
mooz
0d55f58579
Fix icon path (#2327) 2022-06-19 19:18:15 +01:00
Shnupbups
a680b9b44b
Add some more TAWs to the Datagen Module (#2322)
- Added transitive-accessible wideners for `BlockStateModelGenerator$TintType`, `BlockStateModelGenerator$BlockTexturePool`, `BlockStateModelGenerator$LogTexturePool`, and `BlockStateModelGenerator$BuiltinModelPool` classes
- Added transitive-accessible widener for `TexturedModel#makeFactory` method
- Moved transitive-accessible wideners for `ItemModelGenerator` methods to the generate run, so it covers the 2 new methods and any future ones
- Fixed `generateAccessWideners` task so it can now find the jar
- Tweaked the whitespace in the accesswidener file a bit
2022-06-19 19:17:44 +01:00
modmuss50
1c5dd50b65 Bump version 2022-06-13 20:41:17 +01:00
modmuss50
4a3ec38482 Fix build. 2022-06-13 20:17:48 +01:00
apple502j
b2a4a6244a
Fix Biome API bugs (#2282)
* Fix loading data pack biomes

* Add command to help test.

* Fix custom end biomes crash
closes #2292

* add plains biome to the end

* remove unnecessary field prefix

* End biomes now generate properly

* Remove test logging

* Remove test command (was barely functional)

* Fix checkstyle

* Some small refactors

* Save the sampler directly on MultiNoiseSampler instance (#1)

Co-authored-by: modmuss50 <modmuss50@gmail.com>
Co-authored-by: deirn <deirn@bai.lol>
2022-06-13 20:08:44 +01:00
aws404
e8b09dcb10 Add registries for villager interactions to fabric-content-registries module (#2193)
* Add VillagerFoodRegistry

* Fix style

* Add VillagerCompostingRegistry and separate CollectablesRegistry from FoodRegistry

* Add VillagerPlantableRegistry

* Add warning when registering a non-compostable item as a villager compostable

* Rename some registries, use block placement sound

* Add VillagerHeroGiftRegistry

* Add javadoc

* Combined all registries into one API class

* Remove now redundant class

* Change registries to a static method

* Combine into VillagerInteractionRegistries class

* Fix typo

* Move ImmutableCollectionUtils to impl

* Add isEmpty check to plantables, prefix mixin methods with fabric_

* VillagerPlantableRegistry Rework

* Remove dangling comment

* notNulls, included vanilla items in plantable registry, checkstyle fix

(cherry picked from commit 6f01bfd847)
2022-06-13 20:00:17 +01:00