Commit graph

1188 commits

Author SHA1 Message Date
modmuss50
ddcd25cd9e Bump versions. 2022-09-25 15:04:16 +01:00
Technici4n
a29562c81b
Fix @SafeVarargs warnings in Resource Conditions and ColorProviderRegistry (#2547) 2022-09-25 14:47:00 +01:00
modmuss50
c6af733cfb
Cleanup incorrect mixin shadow annotations/access 2022-09-25 14:46:29 +01:00
modmuss50
79adfe0a0e
Update Loom, Yarn, Checkstyle (#2538) 2022-09-25 14:46:02 +01:00
modmuss50
b598f4acf2
Add DataGeneratorEntrypoint.getEffectiveModId (#2534) 2022-09-25 14:45:43 +01:00
modmuss50
33ffe9ecd9
Add ServerEntityEvents.EquipmentChange event (#2533) 2022-09-25 14:45:29 +01:00
apple502j
93d8cb82e8
Fix many javadoc issues (#2526)
Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-09-25 14:45:12 +01:00
J. Fronny
03bf91853d
ModNioResourcePack: don't extend AbstractFileResourcePack (#2509) 2022-09-25 14:44:52 +01:00
mineblock11
0b73465810
FabricLanguageProvider - Data Generation API (#2451)
Co-authored-by: modmuss50 <modmuss50@gmail.com>
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
2022-09-25 14:44:35 +01:00
modmuss50
a37366baa3 Bump versions. 2022-09-11 15:26:04 +01:00
modmuss50
624e468e8a Revert "Add LandPathNodeTypesRegistry (#2437)"
This reverts commit 6a999b8eb9.
2022-09-11 15:02:15 +01:00
Technici4n
8f88597368
Transfer API improvements 4 (#2375)
* Transfer API improvements 4

* Actually copy the nbt in `copyOrCreateNbt`

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

* Add SingleFluidStorage.withFixedCapacity

* Remove unneeded iterator() overrides

* Add temporary workaround for bottle sounds

* Address review comments

* Change parameter name from compound to nbt

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-09-11 14:20:47 +01:00
wafflecoffee
2b0146fe54
Update Modrinth plugin version (#2082)
* Update Modrinth plugin version from 1.1.0 to 2.4.3

* Fix checkVersion task
2022-09-11 14:19:21 +01:00
apple502j
4e8ca3fd38
Item Group API: refactor & add more javadoc (#2518)
* Item Group API: add more javadoc

* Code refactor
2022-09-11 14:17:50 +01:00
Benonardo
726b65209a
Fix crash when replacing SimpleRegistry contents (#2504)
* Fix crash when replacing SimpleRegistry contents

* Called .value() two more times
2022-09-11 14:16:32 +01:00
2ndDerivative
763dcebeb6
Added doc to SculkSensorRegistry (#2490)
* Added line to Doc to prevent misconception

Added line because people probably want to use their GameEvent for the Warden too.

* Update SculkSensorFrequencyRegistry.java
2022-09-11 14:15:53 +01:00
apple502j
0dd10df6d4
Refactor Dimension API and fix a bug (#2486)
* Refactor dimension API to use less static var

* Refactor test code

* Fix end spawn platform generation with non-player teleport

* Fix wrong cast

* Add and refactor tests

* Fix spotless

* Mark impl as internal
2022-09-11 14:15:00 +01:00
Salvatore Peluso
6a999b8eb9
Add LandPathNodeTypesRegistry (#2437)
* Added LandPathNodeTypesRegistry.

* Added test for LandPathNodeTypesRegistry.

* Added block state to PathNodeTypeProvider.getPathNodeType.

* Made LandPathNodeTypesRegistry final, removed unnecessary NotNull.

* Changed putIfAbsent with put to align with other registries.

* Cleanup.

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>

* Removed unused import.

* Added possibility to specify the node type of block if the block is found in a neighbor position, improved documentation.

* Merged mixins cleanup.

* Changed CAPTURE_FAILEXCEPTION into CAPTURE_FAILHARD

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

* Specified some nullables, changed 2 parameter names.

* Added missing content registries tests, changed NODE_TYPES map to IdentityHashMap, improved docs.

* Moved PathNodeTypeProvider inside LandPathNodeTypesRegistry.

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-09-11 14:14:45 +01:00
apple502j
1cc24b1b0e Add overwriting screen handler factory (#2373)
This adds `FabricScreenHandlerFactory` (interface-injected to `NamedScreenHandlerFactory`).

This also fixes a crash when passing `SimpleNamedScreenHandlerFactory` that wraps a `ExtendedScreenHandlerFactory`. The mixin now un-wraps the factory.
2022-09-11 14:09:29 +01:00
Juuz
056269f0d8
Add publish checkstyle report action (#2514) 2022-09-09 12:45:06 +01:00
modmuss50
5f243a8b78 Bump versions.
All versions bumped due to loom upgrade.
2022-08-15 19:16:20 +01:00
modmuss50
aeb40ebeab
Rename and validate Mixin class names. (#2450)
And update loom.
2022-08-15 18:59:19 +01:00
Shnupbups
42d99c329d
Add many more transitive access wideners (#2341)
- `DamageSource` constructor and methods made accessible - supersedes #1085
- `SpawnRestriction` method `register` made accessible - allows `SpawnRestrictionAccessor` mixin to be removed
- `TradeOffers` trade factory inner classes made accessible
- `Material$Builder` methods made accessible (except `lightPassesThrough` method as that would break binary compat in `FabricMaterialBuilder`
- Fixed `generateAccessWideners` task for TAWs module so it can now find the jar
- `AxeItem`, `MusicDiscItem`, and `PickaxeItem` constructors made accessible
- `ItemUsageContext` and `ItemPlacementContext` alternate constructors made accessible - allows passing a `null` PlayerEntity
- `Factory` inner classes of both `CookingRecipeSerializer` and `CuttingRecipeSerializer` made accessible
- `BrewingRecipeRegistry` methods `registerItemRecipe`, `registerPotionType`, and `registerPotionRecipe` made accessible
- `ScoreboardCriterion` `create` methods made accessible
- `ModelPart` inner classes `Vertex` and `Quad` made accessible
- `RenderLayer` `of` method made accessible
- `SensorType` and `Activity` constructors made accessible
- `LivingEntity` methods `damageArmor`, `damageHelmet`, and `damageShield` made accessible
- `ProjectileEntity` constructor made accessible
- `FishingBobberEntity` alternate constructor made accessible - allows passing luck of the sea or lure levels for custom fishing bobbers
- `ServerWorld` method `sendToPlayerIfNearby` made accessible
- `TextColor` method `getHexCode` made accessible
- `TranslatableTextContent` method `getArg` made accessible
2022-08-15 18:41:18 +01:00
modmuss50
b20e3339f9 Merge remote-tracking branch 'origin/1.19.1' into 1.19.2 2022-08-08 08:50:16 +01:00
modmuss50
7454701c67 Bump version 2022-08-06 20:02:34 +01:00
apple502j
176380a2b6 Message API: fix outdated and incorrect javadoc 2022-08-06 19:17:54 +01:00
apple502j
6bee109e4a Add Japanese translations 2022-08-06 19:13:10 +01:00
Madis Otenurm
0971ce60db Create et_ee.json 2022-08-06 19:13:04 +01:00
apple502j
7675279697 Fix POI types not being registered properly 2022-08-06 19:12:46 +01:00
TelepathicGrunt
7cd20a142b Split icy tag into ICY and AQUATIC_ICY 2022-08-06 19:12:31 +01:00
deirn
e5c0910538 Make DEFAULT_ENABLED work with client resource pack 2022-08-06 19:12:07 +01:00
modmuss50
f60060dfe3
Rename modid to "fabric-api" and provide "fabric". Update loom (#2446)
* Rename modid to "fabric-api" and provide "fabric"
Update loom
Update loader
Update gradle

* opps

* Update loom and gradle again.
2022-08-06 19:05:38 +01:00
apple502j
84f79e9d2d
ModelHelper: remove useless contract (#2422) 2022-08-06 19:04:31 +01:00
apple502j
83a865928d
Make static-only classes final and unconstructible (#2421)
The following classes have been made final and unconstructible:

- All convention tags classes
- `FluidVariantAttributes`
- `FluidVariantRendering`

The following classes have been made unconstructible:

- `BiomeModifications`
- `ClientEntityEvents`
- `ClientTickEvents`
- `LootTableEvents`
- `FabricDefaultAttributeRegistry`
- `MinecartComparatorLogicRegistry`
- `StorageUtil`

The following classes have been explicitly marked as final. Note that actually extending such class has always been impossible due to missing public constructor:

- `VillagerInteractionRegistries`
- `VillagerPlantableRegistry`
- `ModelHelper`
- `StoragePreconditions`

While the first two are technically breaking changes, there is no actual or observed usage for any of those.
2022-08-06 19:04:11 +01:00
apple502j
e6ea5984c7
ModResourcePackUtil: Properly handle special chars in mod name (#2407)
* ModResourcePackUtil: Properly handle special chars in mod name

* Add tests

* Fix NPE in testmod
2022-08-06 19:02:42 +01:00
Deximus-Maximus
b35fea83d3
Add client tags module (#2308)
* Add client tags module

* Fix not actually returning the tag eval. for dynamic registry fallback

* Use dynamic registry where needed

* Make ClientTags uninititializable

* Resolve feedback

* Change package

Co-authored-by: deirn <deirn@bai.lol>

* Change package

Co-authored-by: deirn <deirn@bai.lol>

* Remove unused dep. block

Co-authored-by: deirn <deirn@bai.lol>

* Fix imports

* Move the files to match new package

* Apply feedback

* Apply feedback

* Add test mod

* Fix CME

* Fix checkstyle

* Apply feedback

* Apply feedback

* Apply feedback

* Fix checkstyle

Co-authored-by: deirn <deirn@bai.lol>
2022-08-06 19:02:27 +01:00
Deximus-Maximus
6718a028fc
Add TagUtil (#2307)
* Add TagUtil

* Allow for the registry manager to passed in allowing for dynamic tags to be used

* Update JD

* Remove redundant fallback

* Make TagUtil final

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

* Make TagUtil uninititializable

* Add test mod

* Fix spotless for test mod

* JD indent

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>

* Apply suggestions

* Fix checkstyle

* Apply feedback

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
2022-08-06 19:02:01 +01:00
Technici4n
1e232e13ae
Move a few object builders to transitive AWs (#2154)
* Move a few object builders to transitive AWs

* Remove outdated access widener

* Remove controversial deprecation of FabricBlockEntityTypeBuilder
2022-08-06 19:01:41 +01:00
modmuss50
5eb68ef24d 1.19.2 2022-08-05 15:20:07 +01:00
Technici4n
417b986df1
Add development guidelines (CONTRIBUTING.md) (#2377)
* Add development guidelines (CONTRIBUTING.md)

* Fix typos

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Address remaining TODOs, a few formatting changes

* Apply feedback

- Add links to sections in summary
- Add note about thread-safe caching
- Functionalities added by vanilla MC don't need to be ported to new module versions
- Do not use deprecated to generate compiler/IDE warnings
- TAW updates
- Interface injection indents
- A few more fixes

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

* Apply suggestions from code review

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

* Apply suggestions from Juuz

* Remove mention of self types

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2022-07-29 18:30:02 +01:00
modmuss50
5cda40cfe1 Bump version 2022-07-27 20:30:36 +01:00
modmuss50
6be91f4124 1.19.1 2022-07-27 20:29:47 +01:00
Gegy
4e0178f48a
Fix: broadcast message headers when chat event is cancelled (#2426)
This resolves an issue where the chat signing chains for players would be broken when the server cancels a signed player message. This could lead to clients disconnecting after receiving any following message due to the broken chain.
2022-07-27 20:26:56 +01:00
modmuss50
308233144b Fix accidental breaking change made to PacketSender in rc3 port. 2022-07-27 00:01:05 +01:00
modmuss50
40efc82b2b Checkstyle. 2022-07-26 21:04:42 +01:00
modmuss50
8e190802a5 1.19.1-rc3 2022-07-26 20:53:20 +01:00
modmuss50
aab4069d66 Bump version 2022-07-26 12:49:29 +01:00
apple502j
0c17ea96b8
Fix 1.19.1 client command API bugs (#2425) 2022-07-26 12:47:54 +01:00
modmuss50
d4b7bd1caa Bump versio 2022-07-24 16:08:37 +01:00
apple502j
e6c0642c7f
Message API: 1.19.1 changes (#2411)
* BREAKING: Add server param to game message events

* Update javadocs

* Update testmod

* Fix param name in testmod

* Update ServerMessageEvents.java
2022-07-24 16:07:05 +01:00