Commit graph

1350 commits

Author SHA1 Message Date
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
modmuss50
7ff56885cc Bump version 2021-11-17 19:25:04 +00:00
modmuss50
1f9ce76e8c 1.18-pre4 2021-11-17 19:05:40 +00:00
modmuss50
526dc1ac4f Change SimpleSpriteProviderAccessor to use a direct class reference.
Had a report of issues of this failing when using mojmap, hopefully this "fixes" it.
2021-11-17 18:44:04 +00:00
modmuss50
03d159cf68 1.18-pre3 2021-11-17 18:06:43 +00:00
shartte
c15ca33535
Fixes double-invoking of the client start event. (#1839)
This is due to vanilla now calling thread.setPriority (thus accessing the field twice).
2021-11-17 17:01:22 +00:00
Player
3ac43d9577 Revert Mixin compatibilityLevel bump, bump versions 2021-11-17 03:29:11 +01:00
modmuss50
a02a69ff69 Bump version 2021-11-16 19:20:45 +00:00
modmuss50
216c649428 Fix release 2021-11-16 19:18:58 +00:00
modmuss50
80db5db266 Bump version 2021-11-16 19:04:36 +00:00
modmuss50
a217a6d0d4 Fix post merge/port biome api 2021-11-16 18:57:46 +00:00
shartte
0f02669fd0
Restored the state of the biome api to what it was during the snapshots. Migrated from accessors to AWs. (#1834) 2021-11-16 18:45:37 +00:00
modmuss50
e77d3ea62f 1.18-pre2 & Java 17 2021-11-16 18:41:10 +00:00
modmuss50
e899b67a68 Update mappings. 2021-11-16 13:01:16 +00:00
modmuss50
713ff39cb4 Work around a loom bug causing empty jars to be pushed to maven local. 2021-11-16 13:00:59 +00:00
Shnupbups
6f7198934d Update .editorconfig (#1830) 2021-11-16 12:48:32 +00:00
modmuss50
e55132959f Fix trying to run the gametest server twice.
Caused by a bad merge
2021-11-12 16:58:15 +00:00
modmuss50
31860a91ee Fix crash when loading resources from a UNC (windows) network share.
See: https://bugs.openjdk.java.net/browse/JDK-8178726
2021-11-12 16:49:44 +00:00
modmuss50
b4f4f6cda4 Update Loom and Loader. Cleanup/improve buildscript. 2021-11-12 15:02:54 +00:00
modmuss50
2e160e0f26 1.18-pre1: without the biome api 2021-11-11 19:01:49 +00:00
modmuss50
c3150579ea Bump version 2021-11-06 20:31:21 +00:00
modmuss50
15efb8834c Target the void world in the DimensionalRenderingTest
It's a bit too obnoxious for the overworld.
2021-11-06 20:12:52 +00:00
modmuss50
8a8e3d81de Ensure that API implementations can never be null. 2021-11-06 20:12:45 +00:00
Juuxel
5521a561ea Fix shears being the ultimate mining tool (#1809)
* Add detail about default value to MiningLevelManager jd

* Fix shears being the ultimate mining tool

In more technical terms, fix an invalid
comparison in TaggedToolsModdedBlocksToolHandler.
The code was supposed to check if the tool's
mining level was at least the block's minimum
mining level. Instead, the check succeeded
whenever the block required a tool
(min level >= 0).

* WIP fixing tool attribute api bugs

* Fix mostly everything

* Simplify to (== 0) with explanation
2021-11-06 20:04:19 +00:00
modmuss50
65d505fc8a Bump versions
All of the version need to be bumped due to fabric-api-base being updated, this highlights the need for a better solution.
2021-11-05 17:09:48 +00:00