Commit graph

1218 commits

Author SHA1 Message Date
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
modmuss50
33fbc73844 Add SyncDataPackContents and TagsLoaded lifecycle events (#2265)
* Add SyncDataPackContents and TagsLoaded lifecycle events

* tagsLoaded -> onTagsLoaded, isClient -> client

* Compile error in testmod

* Make SyncDataPackContents fire for every player

* syncDataPackContents -> onSyncDataPackContents

(cherry picked from commit cc71601c72)
2022-06-13 19:59:24 +01:00
modmuss50
e1dbfca1b3 Bump version
All modules updated due to loom bump.
2022-06-08 19:53:51 +01:00
modmuss50
dc39553a61 Fix FabricParticleTypes being incorrectly marked as client only. Closes #2297 2022-06-08 19:44:33 +01:00
modmuss50
44cddb4e00 Update curseforge version. 2022-06-07 20:34:37 +01:00
modmuss50
24270b779d Bump version 2022-06-07 19:51:28 +01:00
apple502j
cda9839ba0
Mark ArgumentTypeRegistry as final (#2291) 2022-06-07 19:46:40 +01:00
Technici4n
e8d1ecd4c1
Fix #2237: Allow registering argument types without interacting with the class map (#2252)
* Fix #2237: Allow registering argument types without interacting with the class map

* Add testmod :)
2022-06-07 19:44:12 +01:00
apple502j
59c610c9f3
Make sure only render thread can call onGameJoin (#2290) 2022-06-07 19:43:41 +01:00
modmuss50
fd0cc9858a Bump version 2022-06-04 21:37:30 +01:00
modmuss50
2a5b9210c6 1.19-rc2 2022-06-04 21:32:33 +01:00
Daomephsta
767db26ed9 Make getKnockbackResistance() work for all materials (#2129)
* Make getKnockbackResistance() work for all materials

* Add missing license to ArmorItemMixin.java

* Fix all build failures

* Document ArmorItemMixin

(cherry picked from commit 6c4e5d0990)
2022-06-04 21:10:14 +01:00
Technici4n
123f0c73d5 A few datagen fixes (#2250)
* Include datagen in the production fatjar. Closes #2228

* Allow exclusion of block loot tables from strict validation. Closes #2241

* Auto-generate item models even when strict validation is disabled. Fixes #2240

(cherry picked from commit 4d962b4e9e)
2022-06-04 21:09:22 +01:00
Justsnoopy30
7fe9740985 Fix errors not showing up in disconnect messages (#2266)
* Fix errors causing disconnects during server connection not showing up in the disconnect message

* Replace unnecessary inject with the throwable provided in the redirect

(cherry picked from commit e6b169ebca)
2022-06-04 21:07:46 +01:00
ThalusA
37622d24c5
Add all missing tags for SAVANNA, TAIGA, OVERWORLD and END (#2273) 2022-06-04 21:06:29 +01:00
modmuss50
9d709c192c Bump versions. 2022-06-02 16:04:52 +01:00
apple502j
513f4a5977
Fabric Message API v1 (experimental) (#2220)
* Initial skeleton

* Fabric Chat API v1 (experimental)

* Run checkstyle

* Fix checkstyle (testmod)

* Support 1.19-pre1

* Fix spotless

* Fixes

* Remove caching of messages
This is hard to maintain and has several edge cases. Mods should cache themselves when needed.

* Make constructor private

* Add ServerChatEvents

* Update mappings

* Prepare for the rename

* Include chat decorator in exception

* Add support for blocking messages

* Rename to fabric-message-api-v1

* Update to 1.19-pre2

* Use fabric namespace

* Rename ChatDecoratorEvent

* Rename events and add more javadoc

* Rename ServerChatEvents

* Rename ChatDecorator

* Only block bad respawn point death in testmod

* Fix wrong word in javadoc

* Improve javadoc

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-06-02 16:00:15 +01:00
modmuss50
e62f51a37f 1.19-rc1
Only mapping updates.
2022-06-02 15:41:09 +01:00
modmuss50
d27d619843 Bump version 2022-05-31 13:48:09 +01:00
modmuss50
ba8b587cad 1.19-pre4 2022-05-31 13:29:38 +01:00
Juuxel
9e7660c677 Loot table API v2
- Deprecates all classes and methods that use outdated Yarn names.
- Adds FabricLootTable and FabricLootTableBuilder to replace
  the LootSupplier naming variants.
- Deprecates LootEntryTypeRegistry and LootJsonParser
  as their functionality is exposed in vanilla now.
- Adds methods to FabricLootPoolBuilder for working
  with collections as builder parameters.
- FabricLootPool and FabricLootTable/Supplier now return immutable lists
  instead of modifiable fixed-size ones.

  Co-authored-by: i509VCB <i509vcb@gmail.com>
2022-05-31 13:09:54 +01:00
apple502j
14b3ae007b
Load mod-provided data packs and DRM entries (#2261)
* Load mod-provided data packs and DRM entries in CreateWorldScreen

Fixes #2225

* Fix ModifyArg target

* Fix injection failure

* Fix again

* checkstyle

* Fix it once again

* Add data pack load test to biome api testmod

* Also fix this for the dedicated server

* Fix TestServer not loading data packs

* Load dynamic registry in TestServer
2022-05-31 12:11:41 +01:00
Jason
d51ff45ef2
Change client command api to use registration event (#2264)
* wip client command changes

* Move field and add javadoc

* Switch to jetbrains annotations and add missing annotations

* Add note about integrated servers

* Rename DISPATCHER field
2022-05-31 12:11:27 +01:00
modmuss50
bb4e3b8e47 Bump version 2022-05-24 15:19:55 +01:00
modmuss50
72da3b3d5e
Handle teleporting within the same dimension better. (#2249) 2022-05-24 15:10:52 +01:00
Technici4n
21a5acaa63 Fix #2206: Client chunk cache grows unbounded (#2248)
* Fix missing some chunk unloads events leading to a possible memory leak. (#1820)

* Update fix for 1.18.2. Fixes #2206

Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit 23d88c8099)
2022-05-24 15:06:51 +01:00
modmuss50
899286998c
Create fat testmod jar (#2256) 2022-05-24 15:04:30 +01:00
modmuss50
92cf9a3ec2
Sync new 1.19 registries as required. Closes #2205 (#2247)
* Sync new 1.19 registries as required. Closes #2205

* Comment fixes.
2022-05-24 15:04:15 +01:00
modmuss50
1899036145 1.19-pre2
All mapping changes.
2022-05-23 17:20:40 +01:00
modmuss50
ee704c941e Bump version 2022-05-23 14:57:40 +01:00
qouteall
28d4ab27e2 Fix the issue of uninstalling a dimension mod or datapack (#2078)
* Fix the vanilla bug of uninstalling dimensions.

* fix license

* fix style

* Rename LevelStorageMixin and some minor changes.

(cherry picked from commit 01a4d43dcd)
2022-05-23 14:50:43 +01:00
altrisi
bd0a0d4a7b
Restore printing the mod name in crash reports (#2235) 2022-05-23 14:49:56 +01:00
modmuss50
5c0f936b6f Bump version. 2022-05-21 23:15:13 +01:00
modmuss50
0ba6bb52f5 Apply process resources to all sourcesets. Fixes #2236 2022-05-21 23:11:44 +01:00
modmuss50
bb070d73e0 Bump versions 2022-05-21 16:36:59 +01:00
modmuss50
9ff28f4026
Split client only code into its own sourceset. (#2179)
A common source of crashes on modded Minecraft servers comes from modders accidently calling client only code from the client, this PR is another large step towards elimitating that.

This PR has been months in the making and years in the planning, requiring major changes to Loom & Loader. In recent Minecraft versions Mojang has made it easier than ever to cleanly split the jar, going against the status-quo of merging the client and server into one jar.

From the start we have designed Fabric to have a very clear split between client and common (client & server) code. Fabric has always encoraged keeping client only code seprate from the server, this can be seen at a fundamental level with the entrypoints in Loader. Fabric API's have all been designed with this mind.

This PR provides a compile safety net around Fabric API using client only code on the server. Even though there are almost 400 changed files, minimal changes beyond moving the files were required to achieve this in Fabric API, thanks to the effort of all contributors in the past.

These changes should not affect modders or players in anyway, a single "universal" jar is still produced. Im happy to awnswer any questions.
2022-05-21 16:26:46 +01:00
modmuss50
daa69e8a8b Bump version 2022-05-20 19:18:33 +01:00
modmuss50
b3eea543b7 Bump version 2022-05-20 19:08:21 +01:00