Commit graph

623 commits

Author SHA1 Message Date
i509VCB
43ae9fbacb
Move new method in FabricBlockSettings to correct place in class. (#668)
The lower methods in the class are commented with their categories:

`FABRIC DELEGATE WRAPPERS` for additional methods to allow editing fields not actually exposed in vanilla.

`FABRIC HELPERS` for methods to handle things like mining levels.

Per these two categories, the new method does not belong in `FABRIC HELPERS` and has been moved accordingly
2020-06-21 13:31:36 +01:00
zml
3234627dd4
networking: Clarify packet type callback JD (#829) 2020-06-21 13:31:30 +01:00
modmuss50
5ce5339883 Checkstyle
Nothing to see here
2020-06-18 22:13:03 +01:00
modmuss50
53a97948b3 Simplify server command registration, fixing server commands being registered too late. 2020-06-18 22:01:21 +01:00
modmuss50
f362c86ed3 Bump version + rc1 2020-06-18 21:45:48 +01:00
i509VCB
c10360a765
Fix screen handler test mod crashing on dedicated server. (#823) 2020-06-18 21:45:04 +01:00
modmuss50
28a9468044 1.16-pre8
Doesnt need a release
2020-06-17 17:20:18 +01:00
modmuss50
b92c4e0aca bump version 2020-06-16 17:21:13 +01:00
modmuss50
5794386efb 1.16-pre7 2020-06-16 17:20:28 +01:00
modmuss50
f444f16314 Bump Version 2020-06-15 22:05:41 +01:00
i509VCB
bef4575888
Fix issue with commands being registered on dedicated servers after a resource reload. (#822)
* Add a small datapack to test if custom commands work with command functions

* Fix issue with commands being registered on dedicated servers after a /reload

Also this adds testmods for command functions to verify they are registered properly.

* Clarify a comment

* Use the variable we allocate lol
2020-06-15 22:03:11 +01:00
Juuxel
045df74fe0
Screen handler API (#584)
* Add screen handler API

* Use more descriptive letters for FabricHandledScreens generics

* Add missing Deprecated annotations

* Bump fabric-containers-v0 version

* Remove unused ServerPlayerEntityAccessor

* Remove [Fabric] from log messages

* Convert FabricHandledScreens to a class

* Add dependency on networking-v0

* Resolve threading issues with NetworkingClient

* Use Identifiers instead of int IDs, make ScreenHandlers a class

Also added a private constructor to FabricHandledScreens.

* NetworkingClient -> ClientNetworking

* Use more descriptive names for injections

* Use ID parameter instead of fetching again

* Add clarifying comment

* Port changes from FabLabs

* Fix compilation

* Replace the content of links in FabricHandledScreens for readability

* Sync with FabLabs

* Add test mod

* I suppose IInv shouldn't have CC0 anymore 👀

* Improve logging

- Networking now uses a logger instead of an exception
- The loggers are now suffixed with their side
- Fixed the client unregistered screen message using the title instead of the ID

* Fix test mod on 20w21a

* Fix ExtendedScreenHandlerFactory javadoc referencing old names

* Update test mod to 1.16-pre2

Just a simple mapping update. :)

* Fix incorrect javadoc references to screen-handler-api in containers-v0

* Remove Minecraft exclusion from build.gradle (thanks to Loom 0.4) + testmod change

Resource loader v0 is now testmodRuntimeOnly as it's not needed for compiling.
2020-06-15 22:00:54 +01:00
modmuss50
c824e0ac2c 1.16-pre6 2020-06-15 19:26:27 +01:00
modmuss50
7066030fcb 1.16-pre5 2020-06-12 16:29:47 +01:00
modmuss50
ee3acc8423 version bump 2020-06-12 11:32:35 +01:00
modmuss50
a35bc9fe9a Merge remote-tracking branch 'origin/1.16' into 1.16 2020-06-12 11:24:35 +01:00
modmuss50
e16a9774a7 Keybinding 1.16 compile fixes 2020-06-12 11:24:25 +01:00
shedaniel
3fa9f7c5f8 migrate to fabric-keybindings-v1 and remove builder (#615)
* Edited Clone of #244
- Fixed checkstyle issues
- Migrated to fabric-keybindings-v1
- Removed sticky keybindings from #244 as it sounds useless and you can just around it by simply adding that functionality yourself, I might add it back if someone can tell me the advantages of sticky keys except bloat
- Added a test mod
- Added FabricKeyBinding#getBoundKeyOf for getting vanilla bound keys with ease
- Renamed `registered` to `automaticallyRegister` as that is more of a better name
- Added a couple Objects.requireNonNull validations

* Add back StickyFabricKeyBinding as it is in vanilla, did not notice.

* Remove extra "key."

* Bump to 1.0.0

* build().register()

* Remove `register()`

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Fix test

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Rename module

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Fix checkstyle violation

Signed-off-by: shedaniel <daniel@shedaniel.me>

* major refactor

Signed-off-by: shedaniel <daniel@shedaniel.me>

* revert some stuff

Signed-off-by: shedaniel <daniel@shedaniel.me>

* fix build

Signed-off-by: shedaniel <daniel@shedaniel.me>

* major stuff

Signed-off-by: shedaniel <daniel@shedaniel.me>

* fix license, of course

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Add resource loader v0

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Let's not break the api.

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Rename to buildAndRegister

Signed-off-by: shedaniel <daniel@shedaniel.me>

* resolve reviews

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Use GLFW

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Dump the builder entirely

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Rename to Key Binding

Signed-off-by: shedaniel <daniel@shedaniel.me>
2020-06-12 11:20:31 +01:00
Geometrically
438f96368c
Move creative pagination buttons (#639)
* Move creative pagination buttons

* Bump module version + Update Texture

* Remove Krita Autogenerated File

* Add Hover and Update Texture

* Fix button positions

* Fix checkstyle
2020-06-12 11:10:04 +01:00
modmuss50
7dba2d6c01 1.16-pre4 - just a mapping change. 2020-06-11 18:30:44 +01:00
modmuss50
6dddba385c Bump version 2020-06-11 11:41:10 +01:00
modmuss50
a71b3053ad
Rework Dimensions for 1.16 (#627)
* dim api initial port

* A whole bunch of work

* Checkstyle :)

* Minor tweaks based on feedback

* Update to latest snapshot

* Checkstyle ;)

* Some more dim work

* Re add default placer's, the example mod includes a test dim that currently marks the world as experimental

* license

* Fixup javadoc
2020-06-11 11:38:38 +01:00
modmuss50
5a6e8f4ce1 1.16-pre3 2020-06-10 18:17:45 +01:00
modmuss50
059ea866ec update mappings 2020-06-09 22:29:07 +01:00
modmuss50
4e84b64f5c Fix log spam for mods that are not datapacks. Also bump version for release 2020-06-05 20:09:24 +01:00
modmuss50
31d35604b1 Simplify and fix Dedicated server commands 2020-06-05 19:52:07 +01:00
modmuss50
8779c4a30c Change log level or orphaned registry output 2020-06-05 15:33:41 +01:00
modmuss50
3c5f026f0d 1.16-pre2 2020-06-05 12:42:58 +01:00
modmuss50
f6620c4898 Bump version 2020-06-05 11:37:29 +01:00
Meredith Espinosa
3d52d1e569
Make Fabric mod data packs automatically enable on world creation, allow mod data packs to load on dedicated servers (#663)
* make mod data packs load on dedi servers, auto-enable

* license headers
2020-06-05 11:34:38 +01:00
Hugman
d6bf72d59b
1.16 fix for nether biomes (#658)
* 20w22a support for nether biomes

* Apply suggestions from code review

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>

* Checked style and bumped version

* Fixed some testmods

* Made TestCrimsonForestBiome an inner class in FabricBiomeTest

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
2020-06-05 11:28:09 +01:00
modmuss50
dff23fa481 Add basic test for tags, useful to ensure that datapack loading is working as expected 2020-06-05 11:25:55 +01:00
modmuss50
277876c741 Hopefully fix mod datapacks 2020-06-04 22:35:10 +01:00
modmuss50
dd263cca8b
Fix some known issues with the registry sync module. (#525)
* Try to detect if a registry is modded, if its not it will left alone and no syncing or saving will take place.

* Some more work on moddable registries

* Checkstyle

* Fix licences

* Cleanup registry attributes

* Rework again

* Some small tweaks

* Yet another refactor

* Some minor style fixes

* Finish checking registries

* Start on a test mod, and apply some fixes.

* Checkstyle fixes

* Tweak the logic behind previously modded registries

* Use EnumSet

* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinRegistry.java

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

* Fix generics, add javadoc, add tests

* More changes

* Checkstyle fixes

* Minor fixes

* Remove hash stuff

* 20w21a - massive changes

* fix build

* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>

* Feedback and update mappings

* No longer apply mappings to vanilla registries, no longer save empty mapping data.

* Use Identifier in FabricRegistryBuilder over RegistryKey
Improve empty registry tag handling

* Reorder toTag empty checks

* Minor fixes

* Make FabricRegistryBuilder final

* Update registry attributes

* Fix compile issue

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
Co-authored-by: Player <player@player.to>
2020-06-04 21:33:56 +01:00
modmuss50
1405d94241 Fix command test 2020-06-04 21:32:45 +01:00
modmuss50
346247d7d1 Checkstyle 2020-06-04 21:24:25 +01:00
modmuss50
74492929a5 Stabilise experimental api's 2020-06-04 21:22:30 +01:00
modmuss50
0d474ec430 1.16-pre1 2020-06-04 21:20:20 +01:00
modmuss50
0e8ef4f8b9 Version bump 2020-06-01 17:18:57 +01:00
Will Toll
31c789fd11
Fixed the nether biome mixin (#652)
Fixed the nether biome mixin on MultiNoiseBiomeSource solving #650
2020-06-01 17:18:16 +01:00
i509VCB
c6ab3e1b2d
Make the create method public on villager profession builder (#647)
* Make the create method public

* Bump module ver

* Bump main version
2020-05-29 23:34:00 +01:00
modmuss50
4a01746c06 Merge remote-tracking branch 'origin/1.16' into 1.16 2020-05-29 20:12:35 +01:00
modmuss50
0a73535729 Bump version 2020-05-29 20:11:58 +01:00
grondag
021baa0119
Various Indigo lighting fixes (#640)
* Various lighting fixes

* 20w22a

* Various lighting fixes

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2020-05-29 20:06:29 +01:00
i509VCB
1aa9d47288
Use a Slice over the Shift.BEFORE by -6 (#644)
* Use a Slice over the Shift.BEFORE by -6

This is much less prone to breakage and possibly more precise.

* bump version
2020-05-29 20:04:41 +01:00
i509VCB
2521f6a319 Add object builders to simplify the process of creating Villager professions (#493)
* Add Object builders for simplifying the process of creating villager professions and point of interest types.

* Move everything to new object-builders-api

* flatten a bit down

* a few javadoc changes

* More JD tweaks
2020-05-29 20:02:33 +01:00
modmuss50
da175ad6ad 20w22a 2020-05-29 15:56:10 +01:00
modmuss50
4a08d6b285 20w21a initial port 2020-05-20 19:39:37 +01:00
modmuss50
6d41837a96 20w20a 2020-05-13 18:42:14 +01:00
modmuss50
8dcfcb1e89 Bump version 2020-05-11 22:13:40 +01:00