Commit graph

1277 commits

Author SHA1 Message Date
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
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