Commit graph

924 commits

Author SHA1 Message Date
modmuss50
4ebd8b2d9f Reduce log level for message logged when a vanilla or outdated api client joins. 2022-02-02 18:50:34 +00:00
haykam821
d8c7b9aeb5 Fix Indigo rendering item models without transforms multiple times (#1982)
Fixes #1981
2022-02-02 18:35:21 +00:00
modmuss50
54e5b2eccb 22w05a
Remove 1.18.1 support.
2022-02-02 18:34:04 +00:00
modmuss50
cbff8a2d52 Bump version 2022-01-30 22:27:12 +00:00
modmuss50
d7c144a830
Migrate to SLF4j and update loom (#1960)
* Migrate to SLF4j and update loom

* Update loom

* Update to latest loom
2022-01-30 21:37:23 +00:00
TropheusJ
fb54d297bc
workaround mixin agent not correctly handling mixins in subpackages declared using '/' 2022-01-30 18:58:37 +00:00
shartte
b02b2d58e3
Move biome modification into the MinecraftServer constructor (#1966)
* Move biome modification into the MinecraftServer constructor to have access to the actual level generation settings for the level.

* Move biome modification into the MinecraftServer constructor to have access to the actual level generation settings for the level.

* Move biome modification into the MinecraftServer constructor to have access to the actual level generation settings for the level.

* Ensure the feature ordering in BiomeSource is updated after modifying biomes.

* Don't use var

* Use the opportunity to check the real chunk generators for
the specified structure.
2022-01-30 18:57:57 +00:00
modmuss50
e66b59e98c 22w03a
1.18.1 is also supported with this version.
2022-01-19 19:18:31 +00:00
modmuss50
1f66e6ce26 Bump version 2022-01-17 12:26:41 +00:00
deirn
13eda06580
Fix tags_populated conditions not working (#1957)
closes #1954
2022-01-17 12:11:19 +00:00
modmuss50
2b04e6acb7 Bump version 2022-01-14 15:39:09 +00:00
qolq
b0b66fc386
Fix Indigo UV rotation (#1945)
* Fix Indigo UV rotation

* Update MutableQuadView bakeFlags javadocs
2022-01-14 15:20:28 +00:00
frqnny
0a73a6c22b Structure Pool Callback (#1540)
* Structure Pool Callback

* Update build.gradle

* Update fabric-structure-api-v1/src/main/java/net/fabricmc/fabric/api/structure/v1/FabricStructurePool.java

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

* Update fabric-structure-api-v1/src/main/java/net/fabricmc/fabric/api/structure/v1/FabricStructurePool.java

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

* Fix certain concerns

* Expose identifier for easier access

* Final test mod thing

* fix access widener

* Fix a few things

* Fix a few things

* Fix license

* haha lets see if this works

* checkstyle was working after I did checkstyleMain so u bettar work

* i take too much time to do checkstyle fixes

* checkstyle fix testmod ugh amirite

* Fix a few concerns brought up <3

* Oops, forgot to add a mutanle there

* Let's test this one more time?

* Remove Access Widener woop woop

* rename to poolAccessor

* Simplify the pool modification a bit

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

(cherry picked from commit 48a9ad892d)
2022-01-14 15:20:08 +00:00
Technici4n
12540453db Fabric Resource Conditions (#1656)
* First completed draft

* Update PR, should be close to ready now

* Add fluid/item_tags_populated conditions

* Log processed resource with trace log level

* Use debug instead of trace log level

* Apply suggestions from code review

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

* Code review suggestions

* writeAdditional -> writeParameters

* Apply suggestions from code review
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

* CONDITION_ID -> CONDITION_ID_KEY
2022-01-14 15:10:43 +00:00
modmuss50
eb6d303987 Bump version. 2022-01-05 20:14:09 +00:00
KosmX
a1d9bbf544
Fix returning from the end always going to world spawn (#1946) 2022-01-05 20:05:38 +00:00
modmuss50
46dfd9a1b4 Bump versions. 2022-01-02 19:54:54 +00:00
kohanis
d8e20785fa
Preventing END special events with dimensional api (#1938)
* Preventing END special events with dimensional api

* Style errors fix
2022-01-02 19:36:31 +00:00
deirn
befed49ea3 Registry sync packet compression II (#1853)
* Optimize registry sync packet

* Make sure that the id map is sorted by the raw id
Send the difference of the first raw id and the last raw id from the bulk before

* Add packet size log prints

* Use Boolean.getBoolean
Don't send sync packet if the player is the server host

* Use generic Map

* Multiple raw id bulk test

* Group object namespace first before grouping raw ids

* Revert "Add packet size log prints"

This reverts commit fcb8b71e

* RegistrySyncPacket -> RegistryPacketSerializer
Move RegistryPacketSerializer singleton to the interface

* Packet size log prints

* Sort raw id on each namespace group

* Use Identifier.DEFAULT_NAMESPACE

* Slice to multiple packet if necessary

* Make MAX_PAYLOAD_SIZE configurable
Make testmod registry bigger
Print buffer size in equality test

* Move static packet handler instance to RegistrySyncManager
Release combinedBuf before discarding it
Discard syncedRegistryMap after it's accessed

* Use PacketByteBufs to create buffers
2022-01-02 19:36:03 +00:00
Jared
fb3b57b447
Fix attribute modifiers inject limiting other mixins. (#1928)
* Fix attribute modifiers inject limiting other mixins.

* Fix style
2022-01-02 18:56:14 +00:00
Jared
c5d03bcd0e
Use the correct information when throwing Exceptions for failed tests. (#1927)
* Use the correct information when throwing Exceptions for failed tests.

* Re-throw the exception if it is already a RuntimeException

* Use pattern matching instead of casting
2022-01-02 18:56:08 +00:00
modmuss50
9481101883 Bump version. 2021-12-22 19:41:11 +00:00
modmuss50
9b1557c1f3
Allow adding vanilla tags to FabricTagBuilder (#1926)
Co-authored-by: deirn <deirn@bai.lol>
2021-12-22 18:55:37 +00:00
deirn
c568f923d0
Add datagen support for dynamic registry tags (#1890)
* Add datagen support for dynamic registry tags

* Update according review

* Make FabricTagBuilder final

* Throw AssertionError if expected errors didn't happen
2021-12-22 18:25:57 +00:00
modmuss50
c2214d9892 Update minimum loader version to 0.12.12 and build against 1.18.1.
This is done to help promote people to use a loader version that has full mitigations against the log4j exploits.
2021-12-22 17:22:58 +00:00
Technici4n
17be577f67
Add id getter to ApiLookups and expose the BE in BlockApiCache (#1866)
* Add id getter to ApiLookups and expose the BE in BlockApiCache

* identifier() -> getIdentifier(), and add some query methods to BlockApiCache

* getId
2021-12-22 17:10:18 +00:00
Shnupbups
252fd7d614
Datagen Additions (#1911)
* Datagen additions

Now separated from #1889

* add throws javadoc tag, and test for copying a block tag that contains a block without an item form to an item tag

* linkplain

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

* Add javadoc note about copy filtering

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-12-22 17:09:51 +00:00
modmuss50
b71809b4fb
Fix missing test ArgumentTypes (#1904) 2021-12-22 17:09:32 +00:00
shartte
533be9ba91
Fixes #1921: Synchronize BlockEntityType to the client since mods use the Vanilla mechanism for block entity updates since 1.18. (#1923) 2021-12-22 17:08:02 +00:00
modmuss50
3f7d361425 Bump version 2021-12-03 14:51:34 +00:00
modmuss50
ded849a999 Revert "Add some useful worldgen transitive access-wideners. (#1844)"
This reverts commit c8c981c1db.
2021-12-03 13:49:32 +00:00
modmuss50
7242e9d77d 1.18 2021-12-03 13:49:24 +00:00
deirn
16d92c47a6 Entity API Lookup (#1836)
* Entity API Lookup

* Update fabric-api-lookup-api-v1/src/main/java/net/fabricmc/fabric/api/lookup/v1/entity/EntityApiLookup.java

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

* Update according to review

* Check for valid entity

* Use synchronized block on REGISTERED_SELVES accesses

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-12-03 13:38:35 +00:00
Technici4n
691a79b5ca Allow canceling the NBT update animation and block break reset (#1790)
* Allow canceling the NBT update animation

* Remove the event and introduce FabricItem instead

* Remove FabricItem and add an item setting instead

* Revert "Remove FabricItem and add an item setting instead"

This reverts commit a93205c927.

After some discussion, it was agreed upon internally that an interface is better than item settings for behavior extensions.

* Add allowContinuingBlockBreaking

* Update ClientPlayerInteractionManagerMixin comment and inject name
2021-12-03 13:38:32 +00:00
Vincent Lee
3b82842e3d Add ability for minecarts to specify their detector rail comparator value (#1321)
* Add ability for minecarts to specify their detector rail comparator value

Address comments

* Apply suggestions from code review

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

* Warn instead of debug

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-12-03 13:37:23 +00:00
modmuss50
3fec4ad922
Fabric Data Generation API (#1824)
* First look at datagen

* First pass on item/block models

* Tags

* Advancements + BlockFamilies

* Loot tables

* Cleanup

* Start on javadocs, and cleanup

* Update for new mappings.

* Added client-side entrypoint and more logging.

* Complete javadoc, add modid filter and misc fixes/cleanup.

* Minor fixes.

* Renames and misc changes.

* Strict validation fixes.

* Apply suggestions from code review

Co-authored-by: Shnupbups <shnupbups@gmail.com>

* Update fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/FabricDataGenerator.java

Co-authored-by: Shnupbups <shnupbups@gmail.com>

* Update fabric-data-generation-api-v1/src/main/java/net/fabricmc/fabric/api/datagen/v1/FabricDataGenerator.java

Co-authored-by: Shnupbups <shnupbups@gmail.com>

* Review fixes.

* Set generated dir as resources not sources.

Co-authored-by: Sebastian Hartte <shartte@users.noreply.github.com>
Co-authored-by: Shnupbups <shnupbups@gmail.com>
2021-12-03 13:35:29 +00:00
modmuss50
c8c981c1db
Add some useful worldgen transitive access-wideners. (#1844)
* Add a handful of useful transitive access wideners for world gen.

* Require loaded 0.12

* Add some more.
2021-12-03 13:35:07 +00:00
Technici4n
bfa23f17d3
Fix AttackBlockCallback on the client not sending a packet to the server (#1872) 2021-12-03 13:34:52 +00:00
modmuss50
63c0105ab0 Fix issue causing lesser version parts not getting reset to 0 when bumping versions. 2021-11-25 16:39:24 +00:00
modmuss50
acffa92f18 Bump versions 2021-11-25 16:01:23 +00:00
modmuss50
d154e2c6fb 1.18-rc1 2021-11-25 15:57:15 +00:00
modmuss50
6f8dfbb3f7
Update loom and misc buildscript fixes (#1864)
Fixes sources not being published to maven.
2021-11-25 15:06:25 +00:00
modmuss50
6f53a73db5 Bump versions 2021-11-23 18:54:18 +00:00
Stuff-Stuffs
c8aba2f392 Fix #1772 (#1777)
* Fix #1772

* Fix import order

* Update fabric-key-binding-api-v1/src/main/java/net/fabricmc/fabric/impl/client/keybinding/KeyBindingRegistryImpl.java

Co-authored-by: Player <sfPlayer1@users.noreply.github.com>

* Fix checkstyle

Co-authored-by: modmuss50 <modmuss50@gmail.com>
Co-authored-by: Player <sfPlayer1@users.noreply.github.com>
2021-11-23 18:27:34 +00:00
modmuss50
7de09f55c6 1.18-pre7 2021-11-23 17:33:00 +00:00
Technici4n
6b21378a26 Add AllowElytraFlight event (#1815)
Use explicit casts instead of .class.cast in mixins

Reorganize API class, and make it work for any living entity

add LivingEntityFeatureRenderEvents to disable cape rendering

Reorganize/rename hook, and add ALLOW event

Fix missing mixin return & cosmetic adjustements
2021-11-23 17:26:51 +00:00
Shnupbups
f7c1d59979 Oxidizable and Waxable Blocks registries (#1832)
* Oxidizable Blocks registry

* Allow waxable blocks to be registered outside of OxidizableFamilies

* Refactor

Separated OxidizableBlocksRegistry and WaxableBlocksRegistry
Separated OxidizableFamily and WaxableBlockPair
Added null check to WaxableBlockPair
Added several methods

* whoops lol

* Apply suggestions from code review

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

* Update ContentRegistryTest.java

* Refactor again lol

Now uses mixins to change the vanilla ImmutableBiMaps to HashBiMaps and adds to them instead of keeping separate maps and having methods of their own. Much cleaner!

* gutted everything lol

removed all the charm and character- uh, i mean, superfluous stuff and reduced the api to the bare basics
oh and also one-way methods which is neat i guess if you're into that sort of thing

* 🦀one way methods are gone🦀

all my homies hate one way methods
maps are linked again

* re-merged oxidizable and waxable registry classes

* Update ContentRegistryTest.java

* implement suggestions by @Juuxel

* Oxidization -> Oxidation

as per https://github.com/FabricMC/yarn/pull/2837

* Improve Dynamics

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
2021-11-23 17:23:55 +00:00
modmuss50
295197a789 1.18-pre6
Just some mappings in the tests, but nice to keep on top of it.
2021-11-22 18:37:29 +00:00
modmuss50
6bc49c5fa7 Bump version 2021-11-19 17:07:43 +00:00
modmuss50
43d295715f 1.18-pre5 2021-11-19 17:07:22 +00:00