Commit graph

1423 commits

Author SHA1 Message Date
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
modmuss50
c558657297 Bump version 2022-07-21 20:41:35 +01:00
modmuss50
4f30a9cf7a 1.19.1-rc2 2022-07-21 20:25:12 +01:00
modmuss50
437c2eec0b Merge remote-tracking branch 'origin/1.19' into 1.19.1 2022-07-21 20:20:45 +01:00
deirn
5f1a85e065
fix custom dimension not loaded on world preset other than default (#2387) 2022-07-21 20:08:20 +01:00
Technici4n
35a03c43c2
Fix inconsistent ordering of item attribute modifiers by using a linked hashmap (#2380) 2022-07-21 20:08:00 +01:00
apple502j
442de8b862
Fix incorrect check in GlobalReceiverRegistry (#2363) 2022-07-21 20:07:48 +01:00
deirn
c54bb47e4e
Make disconnected screen reason text scrollable (#2349)
* Make disconnected screen reason text scrollable

* Remove redundant mixin.

* wrong unique

* fix max scroll having additional line-sized gap

* turns out it's the testmod fault for having an extra new line

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-07-21 20:07:37 +01:00
PepperCode1
5187d39fe0
Fix Indigo AO calculation (#2344)
* Fix AO calculation

- Ensure calcFastVanilla and computeFace have parity with vanilla
- Ensure BlockStates are not queried more than once for the same position
- Replace deprecated FabricLoader#getConfigDirectory call with FabricLoader#getConfigDir

* Revert opaque sides fix

* More AO fixes and optimizations
2022-07-21 20:07:20 +01:00
modmuss50
25a4c8239c 1.19.1-pre6 2022-07-20 19:47:52 +01:00
modmuss50
240720a216 1.19.1-pre4 2022-07-08 18:49:07 +01:00
modmuss50
64e495f64a Enable parallel builds by default.
Update remotesign to a parallel capable version.
Set org.gradle.parallel.threads in actions as we are IO bound.
2022-06-30 18:20:40 +01:00
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