Commit graph

980 commits

Author SHA1 Message Date
Juuxel
474e4f796e
Fix convention bucket tag ID format (#2142)
* Fix convention bucket tag ID format

* Create plural fields, deprecate singular fields
2022-04-19 17:43:10 +01:00
Juuxel
227c2391ff
Fix #c:brown_dyes containing purple dye instead of brown (#2147) 2022-04-19 17:42:52 +01:00
modmuss50
b09aac60bc Bump version. 2022-04-17 20:10:34 +01:00
modmuss50
e19de87d6a Fix datagen failures not exiting with a none zero exit code. (#2141)
* Fix datagen failures not exiting with a none zero exit code.

* Checkstyle :)
2022-04-17 19:55:13 +01:00
PepperCode1
7faf0d8813 Modernize Indigo (#2110)
* Modernize Indigo

- Restructure ItemRenderContext to be more efficient and consistent with block rendering
- Remove unnecessary code including CompatibilityHelper
- Add Unique annotations to fields added by Indigo
- Fix typos
- Organize imports

* Remove unused import

* Fix bugs

- Fix enchantment glint not rendering on item models
- Fix QuadView#copyTo not copying enough data
- Make ItemRenderContext vertex consumer calculation mirror vanilla and be more efficient

* Clear the target quad's material

* Tweaks

- Retain material during copyTo instead of clearing it
- Standardize mixins

* Direct return

- Return from ItemRenderContext#quadVertexConsumer instead of assigning value to variable
2022-04-17 19:55:13 +01:00
Deximus-Maximus
bd8a4a1845 Add fabric-convention-tags-v1 (#2063)
* Add framework for common-tags-v1

* Add javadoc to fabric tool tags

* Fix wrong package arrangement

* Add some more tags

* Add more biome tags
Thanks to TelepathicGrunt for the suggestions

* Update fabric-common-tags-api-v1/src/main/java/net/fabricmc/fabric/api/tags/v1/CommonEnchantmentTags.java

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

* Update fabric-common-tags-api-v1/src/main/java/net/fabricmc/fabric/api/tags/v1/CommonEnchantmentTags.java

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

* Clarify enchantment tags

* Add no-shulker tag

* Add minecart tag

* Begin work on datagen and populating tags

* Add bucket tags

* First pass at populating biome tags

* Add boat tag

* Fix missing inclusion of f:shears into c:shears

* Hide fabric tool tags in datagen

* Add weapon damage enhancement tag

* Change impl package name to be inline with rest of fapi

* Rename enchantment tags

* Some cleanup

* Populate blocktag datagen
Remove crops tag

* Add javadoc links to vanilla counterparts

* Move datagen to its own sourceset

* Fix package names for checkstyle

* Populate more entries

* Remove exclusion tag

* Add license headers
Fix checkstyle

* Add missing nether quarts to ores tag

* Use `worldgen/biome` instead of `biomes` for biome tags

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

* Manually include all biomes for overworld

* Remove ancient debris from NetheriteOres

* Add and populate glass tags

* Add and populate movement enhancement

* Break up item tags

* Add armour damage reduction tag

* Add missing ore and related tags

* Fix quartz tags

* Add floral tag

* Add golden carrot

* Correct some biome tag issues

* Separate SNOWY_PLAINS and PLAINS

* Add SNOWY tag and remove snowy biomes from ICY

* Correct enchantment tag
Remove silk touch tag

* Fix more biome issues

* Add deep and shllow ocean tags

* Add no-move tag

* Remove netherite ores

* Add shulker tags

* Add raw ore

* Add dye tags

* Fif dye tags

* Fix typo

* Document some biome tags where the naming may not be clear

* Remove tag mirroring for blocks and items

* Rename module
Remove unused methods

* Rename impl package

* Rename packages and module

* Rename folder

* Rename api classes

* Add generateResources task to cover all resource generation tasks.

* Add generated tags to repo

* Fix ocean tag excluding shallow ocean

* Iterate registry to generate foods tag

* Remove cache, add to gitignore

* Rename generated folder

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-04-17 19:55:12 +01:00
modmuss50
640dbc8a5f Fix release. Works around: https://github.com/actions/checkout/issues/760 2022-04-13 19:43:28 +01:00
modmuss50
f79fc1d337 Bump version. 2022-04-10 18:06:09 +01:00
Technici4n
2373a54507 Transfer API improvements 3
- **(Slightly source-breaking change)** Change the return type of `Storage#iterator` and `Storage#iterable` from `Iterator<StorageView<T>>` to `Iterator<? extends StorageView<T>>` to allow returning a list directly. Most modders shouldn't be affected by this (this only broke one call site in the whole module).
- Precise that using the iterator or a view after the transaction is closed is "undefined behavior". Also specify that calling remove on the iterator is not allowed.
- Add `StorageView#getUnderlyingView` to be able to tell if some views are equal. This is useful to **compute the contents of multiple storage views without duplicates** (see testmod).
- Expose the lifecycle of the transaction manager cleanly with an enum.
- Definalize some methods in `SingleStackStorage` to allow custom implementations of some of them if needed.
- Add a note to `BlockApiLookup` to fix #1998.
- Play the composter empty sound when it is emptied through the transfer API, as a comment in the source code suggests.

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-04-10 16:42:38 +01:00
haykam821
fe4ddef067
Add methods to the FabricBlockEntityTypeBuilder class for adding additional blocks (#1699)
* Add methods to the FabricBlockEntityTypeBuilder class for adding additional blocks

* Fix the FabricBlockEntityTypeBuilder class creating a fixed-size initial blocks list

* Document the FabricBlockEntityTypeBuilder#addBlock method

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

* Document the FabricBlockEntityTypeBuilder#addBlocks method

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

* Add tests for the FabricBlockEntityTypeBuilder class

* Fix license violations in the BlockEntityTypeBuilderTest class

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-04-10 16:34:05 +01:00
Technici4n
91b7aa665b
Fix tags_populated resource conditions in 1.18.2 (#2099)
* Fix tags_populated resource conditions

* move gametest entrypoint further up before resource manager getting loaded

* Add maxShiftBy

Co-authored-by: deirn <deirn@bai.lol>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-04-10 16:33:09 +01:00
Algeseven
7b0f312611
Make @see refer to the right class (#2085) 2022-04-10 16:27:32 +01:00
Technici4n
4457765521
Add stack-aware getAttributeModifiers and isSuitableFor to FabricItem (#2090)
* Add stack-aware getAttributeModifiers to FabricItem

* Add stack-aware version of isSuitableFor

* Use the standard attack damage UUID
2022-04-10 16:27:23 +01:00
Florens Pauwels
91896a4963
Fix off-by-one error in item group tooltip (#2094) 2022-04-10 16:27:18 +01:00
Technici4n
dbb7b03f94
Add common (client/server) FluidVariant attributes (#2095)
* Add common (client/server) FluidVariant properties

* Remove density, move constants to FluidConstants, javadoc

* Javadoc, downgrade exception to LOGGER.warn

* attributes -> properties

* Property -> attribute

* Apply reviews

* Use optional sounds, mix into BucketItem

* Automatically implement Fluid#getBucketFillSound from the attribute

* Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/fluid/FluidConstants.java

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

* Tests, a few fixes

* Add gametest for viscosity, isLighterThanAir -> flowsUpwards

* flowsUpwards -> isLighterThanAir

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-04-10 16:27:13 +01:00
deirn
82a21997c3
Change PlayerInventoryStorage#drop to use PlayerEntity#dropItem (#2098)
* change `PlayerInventoryStorage#drop` to use `PlayerEntity#dropItem`

* at -> from

* remainder
2022-04-10 16:27:07 +01:00
Technici4n
81ea5b3c83
Add MiningLevelManager#getBlockTag (#2100)
* Add MiningLevelManager#getBlockTag

* Update fabric-mining-level-api-v1/src/main/java/net/fabricmc/fabric/api/mininglevel/v1/MiningLevelManager.java

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

* Update comment

* Update fabric-mining-level-api-v1/src/main/java/net/fabricmc/fabric/api/mininglevel/v1/MiningLevelManager.java

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

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
2022-04-10 16:27:01 +01:00
Juuxel
1f6558e8fb
Expose extended screen handler type creation in SH API (#2104)
* Expose extended screen handler type creation in SH API

* Update SHAPI test mod to use non-deprecated API
2022-04-10 16:26:54 +01:00
Xander
2d83e92c59
remove annoying warning shift BY (#2116) 2022-04-10 16:26:48 +01:00
modmuss50
08b1b79b17 Bump versions.
Add `allPatch` to automatically bump patch for all modules, used for buildscript changes that affect all modules.
2022-03-13 14:15:52 +00:00
modmuss50
5ceae78bef
Jar and PGP sign artifacts. (#2062)
* Jar and PGP sign artifacts.

* Fixes.

* Update remotesign and fixes.

* Update gradle.

* Revert "Update gradle."

This reverts commit 91b96ec2db.
2022-03-13 13:52:58 +00:00
Juuxel
40c91ec8c3
Create transitive AW module (#2044)
* Add transitive AW module with block constructors

* Add various registries to transitive AW module

* Fix module name in README, add skip flags to class reading

* Add reasons for TAWs, document Block ctor finding algorithm
2022-03-13 13:52:38 +00:00
deirn
ac596cd27a
add fabric-registry-sync-v0 to all testmods runtime classpath (#2054) 2022-03-13 13:52:18 +00:00
Justsnoopy30
2de5574501
Allow dots in namespaces to match vanilla behavior (#2069) 2022-03-13 13:52:07 +00:00
Deximus-Maximus
6d3e56363a
Fix optional tag from tagkey generation (#2070) 2022-03-13 13:51:58 +00:00
modmuss50
57ba8ec078 Bump version. 2022-03-05 18:12:17 +00:00
modmuss50
0d9ab37284
Fix a vanilla bug causing missing structures to reset chunks when upgrading a world from previous versions. (#2045) 2022-03-05 18:10:57 +00:00
modmuss50
f88a7f1a6a Bump version. 2022-03-03 18:50:18 +00:00
modmuss50
801ec85b51 Fix checkstyle issues missed after merging. 2022-03-03 18:36:57 +00:00
modmuss50
ca4be9c944
Fix MC-197259 - Modded blocks not present in debug world type. (#2037)
Closes #2031

* Fix MC-197259 - Modded blocks not present in debug world type.

* Remove un-used method.
2022-03-03 18:17:21 +00:00
CyborgCabbage
34b2a0ce93
Fix Order of operations in FabricEntityTypeBuilder (#2024) 2022-03-03 18:16:59 +00:00
Technici4n
cca23f938e Fix #1912 and #1972: inventory updates in transactions (#1979) 2022-03-03 18:15:40 +00:00
Player
78a6342690 Support Loader 0.13's multiple mod root paths, optimize ModNioResourcePack (#1918) 2022-03-03 18:12:39 +00:00
modmuss50
420242637b Update to stable 1.18.2. Remove previously disabled 'fabric-structure-api-v1' module. 2022-03-02 17:07:42 +00:00
modmuss50
b5a7ab53f9 1.18.2-rc1 - AW build fix due to mapping changes. 2022-02-25 17:47:36 +00:00
modmuss50
e1398a1d4f 1.18.2-rc1
No changes, won't make a release just for this.
2022-02-25 14:37:28 +00:00
modmuss50
4cb9039efe Bump version. 2022-02-24 11:20:18 +00:00
modmuss50
d82b939204
Fix Block2ObjectMap not using TagKey (#2028) 2022-02-24 11:17:53 +00:00
modmuss50
2540745460 1.18.2-pre3
Just mappings.
2022-02-23 16:35:48 +00:00
modmuss50
ebd24f870f
Misc FabricTagProvider fixes and improvements. (#2019)
* Misc tag data gen fixes.

* Fix backwards compat issue.
2022-02-23 16:17:26 +00:00
modmuss50
2873dd5713 1.18.2-pre2 2022-02-21 16:22:21 +00:00
modmuss50
07d00c14ff Bump version. 2022-02-21 12:09:00 +00:00
modmuss50
58afd26713
1.18.2-pre1 Biome API (#2010)
* Fix BiomeSelectors.tag

* Update fabric-biome-api-v1/src/main/java/net/fabricmc/fabric/api/biome/v1/BiomeSelectionContext.java

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

* Checkstyle

* Port Biome API

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-02-21 11:58:35 +00:00
modmuss50
d1027f7d5e Update mappings. 2022-02-19 17:05:08 +00:00
modmuss50
0052b8d598 Bump versions. 2022-02-19 14:28:37 +00:00
modmuss50
32a560b3f7
Fix type passed to data pack reload events. (#2009) 2022-02-19 14:25:58 +00:00
modmuss50
0ef16df861 1.18.2-pre1 2022-02-18 18:27:44 +00:00
haykam821
55f15a338f
Fix a ClassCastException being thrown when a data pack reload event is invoked (#2001)
* Fix a ClassCastException being thrown when a data pack reload event is invoked

* Fix Checkstyle errors
2022-02-18 18:17:01 +00:00
modmuss50
de68da5942 Bump versions. 2022-02-16 19:26:41 +00:00
modmuss50
5a05a77ac9 22w07a 2022-02-16 19:24:00 +00:00