Commit graph

620 commits

Author SHA1 Message Date
modmuss50
2e23b97ce0 Bump version 2020-11-15 19:58:17 +00:00
RedstoneParadox
18f3e47f61
End Biomes Api [1.16] Take Two (#1164)
* Create EndBiomes.java

* Revert "Create EndBiomes.java"

This reverts commit 4d1736fad9.

* Revert "Revert "Create EndBiomes.java""

This reverts commit 673c508d82.

* Rename ContinentalBiomeEntry to WeightedBiomeEntry

* Complete API for adding biomes to the end

* Mixin to end biome source

* Revert "Rename ContinentalBiomeEntry to WeightedBiomeEntry"

This reverts commit 849197e15d18c26af2a6f2aa1766b7d73d9a7144.

* Revert "Revert "Rename ContinentalBiomeEntry to WeightedBiomeEntry""

This reverts commit c2aa4ab097eb3daed71e82d4e77142671ed04316.

* Create SimpleLayerRandomnessSource for use with end biome source mixin

* Renamed MAIN region to MAIN_ISLANDS

* Create test mod

* Added pickFromNoise method to WeightedBiomePicker

* Javadoc and licensing info

* Comply with checkstyle

* Internalize EndRegion

* Added stretching when getting the biome for the end

* Rename EndBiomes to TheEndBiomes to be consistent with yarn mappings

* Fix typo

Courtesy of i509VBC

Co-authored-by: i509VCB <i509vcb@gmail.com>

* Add @Unique to private fields in MixinTheEndBiomeSource

* Made end test biome consistent in style with previous test

Courtesy of i509VBC

Co-authored-by: i509VCB <i509vcb@gmail.com>

* Fix imports

* Didn't know test mods needed to follow the checkstyle

* SimpleLayerRandomnessSource's random is now use to instantiate its noise sampler

* A very important note

* Update javadoc for adding biomes to the Main Island region

* Remove method that is leftover from when EndRegion was part of the API

* Ported 1.16.1 biomes-api-v1 to 1.16.2.
Public API changes:
- Removed flagging biomes as suitable for player spawns since that is now handled in the Biome Builder.
- Changed API over to RegistryKey's, not because it's necessary, but because it is more ergonomic since Vanilla Biomes in BuiltInBiomes are now all exposed as keys, rather than instances.

* Increase memory size to fix build failures.

* Add the ability to add modded dimensions to the regions of the end.

* Hopefully fixed everything that went wrong during the rebase

* Update fabric-biome-api-v1.mixins.json

* Finally got custom end biomes to generate

* Thanks for nothing, GitHub Desktop

* Bad GitHub Desktop

* Bad newline no cookie

* Got everything to follow the checkstyle

* Bring branch up-to-date with main repo (#11)

* Revert "Bring branch up-to-date with main repo (#11)"

This reverts commit dc47106241.

* Remove some stuff that's not supposed to be there

* Fix git silliness

* Update FabricBiomeTest.java

* TheEndBiomes is now Deprecated to match OverworldBiomes and NetherBiomes

* Update some checkNotNull messages

* Change the noise scale when replacing end biomes

* Bad space no cookie

* Remove unnecessary code

* Remove unused imports

* Set up InternalBiomeData to treat End Midlands and End Barrens as border biomes

* Changed the API to reflect midlands and barrens biomes being considered border biomes

* Start work on getting the new system fully working

* Finally got everything working and cleaned up the Javadoc

* Fixed checkstyle violations

* Fix checkstyle violations again

* Drop fabric_ prefix

* Calling SimpleLayerRandomnessSource#nextInt() now throws an exception

* If the midlands or barrens biome picker is null, the replacement key defaults to the vanilla one

* Fix usage of vanilla identifier

* Update MixinTheEndBiomeSource.java

* Fix checkstyle violations

Co-authored-by: i509VCB <i509vcb@gmail.com>
Co-authored-by: Sebastian Hartte <sebastian@hartte.de>
2020-11-15 19:21:24 +00:00
Thalia Nero
6a2618f55c
Add module dependencies to maven POM (#1104) 2020-11-15 19:15:35 +00:00
shedaniel
f21864f86d
fabric-rendering-v1: Custom Armor Model & Texture (#963)
* Moving testmod id to rendering-v1

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

Moving testmod to rendering-v1

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

Reviews

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

prefix the extensions with armor

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

change name

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

drop custom

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

thing

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

javadocs

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

fix imports

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

forgot to do asItem

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

add null checks and convert to ItemConvertible

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

fix license

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

did thing

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

it now compiles

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

change to a registry

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

add @Unique

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

migrate to fabric-item-api-v1

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

did some renaming and improvements

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

don't need that

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

armor

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

* add license to CustomArmorTests

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

* Add @Nullable annotations and fix compile

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

* javadoc

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

* Fix reviews

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

* Update fabric-rendering-v1/src/main/java/net/fabricmc/fabric/mixin/client/rendering/MixinArmorFeatureRenderer.java

Co-authored-by: Erlend Åmdal <erlend@aamdal.com>

* Add registerSimpleTexture
Pass through secondLayer and suffix
Use Identifier's over strings
Fix the test mod

* license fix

Co-authored-by: Erlend Åmdal <erlend@aamdal.com>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2020-11-15 19:07:24 +00:00
modmuss50
ba858fb8b7
Spin up a dedicated server on github actions + add run tasks for test mods. (#1163)
* Add test mod run tasks, add a very basic auto test server task

* License header

* Minor cleanup

* Fix bad depends
2020-11-15 19:06:27 +00:00
modmuss50
1944f3e03b Version bump 2020-11-13 19:12:53 +00:00
modmuss50
ec7e203b38 Revert "End Biomes Api [1.16] (#830)"
This reverts commit ee897308
2020-11-13 19:07:01 +00:00
modmuss50
bc33382a44 Revert "Fix end biome test mod crashing."
This reverts commit fdae552e
2020-11-13 19:06:46 +00:00
modmuss50
fdae552e73 Fix end biome test mod crashing. 2020-11-13 18:44:36 +00:00
RedstoneParadox
ee8973087c
End Biomes Api [1.16] (#830)
* Create EndBiomes.java

* Revert "Create EndBiomes.java"

This reverts commit 4d1736fad9.

* Revert "Revert "Create EndBiomes.java""

This reverts commit 673c508d82.

* Rename ContinentalBiomeEntry to WeightedBiomeEntry

* Complete API for adding biomes to the end

* Mixin to end biome source

* Revert "Rename ContinentalBiomeEntry to WeightedBiomeEntry"

This reverts commit 849197e15d18c26af2a6f2aa1766b7d73d9a7144.

* Revert "Revert "Rename ContinentalBiomeEntry to WeightedBiomeEntry""

This reverts commit c2aa4ab097eb3daed71e82d4e77142671ed04316.

* Create SimpleLayerRandomnessSource for use with end biome source mixin

* Renamed MAIN region to MAIN_ISLANDS

* Create test mod

* Added pickFromNoise method to WeightedBiomePicker

* Javadoc and licensing info

* Comply with checkstyle

* Internalize EndRegion

* Added stretching when getting the biome for the end

* Rename EndBiomes to TheEndBiomes to be consistent with yarn mappings

* Fix typo

Courtesy of i509VBC

Co-authored-by: i509VCB <i509vcb@gmail.com>

* Add @Unique to private fields in MixinTheEndBiomeSource

* Made end test biome consistent in style with previous test

Courtesy of i509VBC

Co-authored-by: i509VCB <i509vcb@gmail.com>

* Fix imports

* Didn't know test mods needed to follow the checkstyle

* SimpleLayerRandomnessSource's random is now use to instantiate its noise sampler

* A very important note

* Update javadoc for adding biomes to the Main Island region

* Remove method that is leftover from when EndRegion was part of the API

* Ported 1.16.1 biomes-api-v1 to 1.16.2.
Public API changes:
- Removed flagging biomes as suitable for player spawns since that is now handled in the Biome Builder.
- Changed API over to RegistryKey's, not because it's necessary, but because it is more ergonomic since Vanilla Biomes in BuiltInBiomes are now all exposed as keys, rather than instances.

* Increase memory size to fix build failures.

* Add the ability to add modded dimensions to the regions of the end.

* Hopefully fixed everything that went wrong during the rebase

* Update fabric-biome-api-v1.mixins.json

* Finally got custom end biomes to generate

* Thanks for nothing, GitHub Desktop

* Bad GitHub Desktop

* Bad newline no cookie

* Got everything to follow the checkstyle

* Bring branch up-to-date with main repo (#11)

* Revert "Bring branch up-to-date with main repo (#11)"

This reverts commit dc47106241.

* Remove some stuff that's not supposed to be there

* Fix git silliness

* Update FabricBiomeTest.java

* TheEndBiomes is now Deprecated to match OverworldBiomes and NetherBiomes

* Update some checkNotNull messages

* Change the noise scale when replacing end biomes

* Bad space no cookie

* Remove unnecessary code

* Remove unused imports

* Set up InternalBiomeData to treat End Midlands and End Barrens as border biomes

* Changed the API to reflect midlands and barrens biomes being considered border biomes

* Start work on getting the new system fully working

* Finally got everything working and cleaned up the Javadoc

* Fixed checkstyle violations

* Fix checkstyle violations again

* Drop fabric_ prefix

* Calling SimpleLayerRandomnessSource#nextInt() now throws an exception

Co-authored-by: i509VCB <i509vcb@gmail.com>
Co-authored-by: Sebastian Hartte <sebastian@hartte.de>
2020-11-13 18:22:02 +00:00
LambdAurora
05f948543b
Internal refactor, remove legacy code, fix FabricMC/fabric#878. (#1134) 2020-11-13 18:21:24 +00:00
modmuss50
c2f49c1532 Set the java compiler --release arg when building on j9+.
Thanks to https://github.com/FabricMC/fabric-example-mod/pull/71 for this snippet.
2020-11-10 19:58:58 +00:00
modmuss50
c932210082 Version bump 2020-11-07 20:31:16 +00:00
Virtuoel
6f447a6e9c
Fix items with sword tool tag not instantly breaking bamboo (#1110)
* Fix items with sword tool tag not instantly breaking bamboo

* Consolidate mixins

* Add Javadoc to injection
2020-11-07 19:56:13 +00:00
modmuss50
44a0cbed56 Remove build number from github 2020-11-05 18:53:10 +00:00
modmuss50
7bdf7b1890 Fix release 2020-11-05 18:42:17 +00:00
modmuss50
2209e98bb5 Publish releases using github actions (#1124)
* Publish releases using github actions

* # Conflicts:
#	build.gradle

* Remove build number + add task to check version has not already been released
2020-11-05 18:30:03 +00:00
modmuss50
6672c51bec 1.16.4 2020-11-02 18:52:08 +00:00
modmuss50
8367596d56 Bump Version 2020-10-30 20:44:41 +00:00
shartte
f5a9be8988
Biome Modification API (#1097)
* Biome Modification API

* Improved docs on Mixins.

* Added convenience methods to select biomes by mob-spawns, and added a top-level convenience method to add new spawns.

* Checkstyle fixes.

* Replace a reference to DRM with DynamicRegistryManager

* Replaced integer order with phase-based ordering.

* Changed to @Deprecated

* Checkstyle fix

* Added category selector.
2020-10-30 20:08:54 +00:00
modmuss50
a89534abff Add back renamed lightLevel method, I believe the root cause of this issue is in tiny remapper 2020-10-28 08:44:17 +00:00
modmuss50
a4467d2a9c Bump version 2020-10-27 18:36:48 +00:00
i509VCB
74aedfbe43
Update command api to use new non-tail constructor inject (#1140)
* Update command api to use new non-tail constructor inject

This removes a redirect in fabric api and fixes the location of the command api's icon.

* Update lifecycle events for command-api-v1 testmod
2020-10-27 18:18:09 +00:00
i509VCB
25b143484c
Tweak entity type builder generics to eliminate explicit type arguments (#1094)
* Tweak entity type builder generics to eliminate explicit type arguments

* Apply different generic on the entity factory method
2020-10-26 20:57:02 +00:00
modmuss50
9580fa8f9a Update loom and loader 2020-10-23 09:15:02 +01:00
i509VCB
eacb8ba396
Update yarn mappings (#1127) 2020-10-22 18:54:44 +01:00
Ege
8f6b00f9a3
Add Turkish language (#1128) 2020-10-22 18:54:12 +01:00
modmuss50
2b462379ad Bump versions 2020-10-18 18:38:30 +01:00
shedaniel
e1e947a65f
Clean up to tool-attributes, add annotations and add test for custom … (#1073)
* Clean up to tool-attributes, add annotations and add test for custom tool types.

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

* Change version to 1.2.3

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

* remove unrelated change

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

* Turn build.gradle to tabs

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

* Fix checkstyle

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

* Fix some review issues

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

* Add license to package-info.java

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

* Remove line between the javadoc and the package line

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

* Move the @NotNull annotation

Signed-off-by: shedaniel <daniel@shedaniel.me>
2020-10-18 18:32:16 +01:00
Technici4n
16a658fec4
Fix sprite and spriteBake (#1122) 2020-10-18 18:28:31 +01:00
i509VCB
fdf52297d0
Use " consistently in main gradle buildscript and some deprecation (#1116)
This also moves use of deprecated `classifier` from AbstractArchiveTask to `archiveClassifier`

Also this moves loader to the Globals class.

This PR does not touch the individual modules since there are other PRs open which modify those.
2020-10-11 21:28:03 +01:00
modmuss50
9f0fb4b8a2 Bump version 2020-10-11 21:18:28 +01:00
modmuss50
c29304db6a
DynamicRegistryEvents (#1029)
* Added DynamicRegistryEntryAddedCallback

* bumbed loader version, finalized DynamicRegistryEvents

* Fixed some generics

* Changed the event to a more generic one

* Added some javadoc and the license header

* increased gradle memory in the hope it fixes the github action fail

* Added DynamicRegistryEntryAddedCallback

* bumbed loader version, finalized DynamicRegistryEvents

* Fixed some generics

* Changed the event to a more generic one

* reverted memory change

* updated mixin for new mappings

* removed redundant supressions

* renamed event method
2020-10-11 21:15:25 +01:00
i509VCB
432d048583
Tristate extensions (#1043)
* Tri-state extensions

Adds new extensions to tri-state and some javadoc.

* Part 2

* Comment fix

* More conistent codestyle, abstract the map and ifxyz code a bit

* Annotations

* Player said no to qualifying static members local to the TriState enum.

* Exceptional spelling

* add a more Optional-like map method and drop if*State*

* ? extends T this time

* Compare to default rather than null of getBoxed

* Puncation of course
2020-10-11 21:15:03 +01:00
modmuss50
c270b09831 Version Bump 2020-10-05 19:41:39 +01:00
i509VCB
1304192f58
Add helper methods to create custom villager types. (#1076)
* Add helper methods to create custom villager types.

* Rename biome method

* Make it register and register the instance of the villager type.

* Javadoc 2

* Add texture javadoc
2020-10-05 19:15:49 +01:00
i509VCB
c36cc5ad54
Write a proper readme (#1109)
* Write a proper readme

* Remove unnessecary comments

* Apply suggestions from code review

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

* Some changes for clarity

* Dev environment

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
2020-10-04 20:59:12 +01:00
CheaterCodes
888073d094 renamed event method 2020-10-01 23:37:40 +02:00
CheaterCodes
811b763fc3 removed redundant supressions 2020-10-01 22:58:14 +02:00
CheaterCodes
bf575bf013
Merge branch '1.16' into dynregman 2020-10-01 22:54:51 +02:00
modmuss50
3c53fe33fe Version bump 2020-09-29 18:55:16 +01:00
shartte
ff71903321
Cleaned up use of Generics in registry-sync-v0 and used Registry#getKey where possible instead of reverse-lookup of the registry key. (#1082) 2020-09-29 18:48:23 +01:00
modmuss50
f8ac1db2b1 Version bump 2020-09-27 12:38:48 +01:00
Deximus-Maximus
5f10696617
Add @Nullable and friends (#1007)
* Boost to Loom 0.5
Add null related annotations

* Rearrange nullable to be overline

* Fix anno sorting for picky

* Add imports

* Address feedback

* Fix import
2020-09-27 12:10:02 +01:00
i509VCB
ca18475868
Add fix for handling removal of old structures. (#1100)
* Add fix for handling removal of old structures.

This fix is required or else worlds where a mod is removed WILL NOT SAVE.

* Only mark for saving if the chunk has a null key

* Add label for issue being fixed

* Actually fix the redirect lol

* Licenses...

* Use ThreadLocal boolean instead of nullable unit

* Checkstyle is picky

* remove unnecessary `containsKey`
2020-09-27 12:09:34 +01:00
shartte
bbdb433e98
Clarify an aspect about the block renderer registry (#1035)
* Clarify an aspect about the block renderer registry.

* Update fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/api/client/rendereregistry/v1/BlockEntityRendererRegistry.java

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

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-09-27 12:09:20 +01:00
Vincent Lee
616c01224d
Add hook for custom damage logic (#964)
* Add hook for custom damage logic

* Address comments

* Change to use new FabricItemSettings

* Make CustomDamageHandler a functional interface
2020-09-27 12:09:07 +01:00
modmuss50
c1aa8ed8d7 Version Bump 2020-09-18 18:48:09 +01:00
modmuss50
95c147c6a1 Fix crash in prod 2020-09-18 18:30:17 +01:00
shartte
c29459abaf
Ported 1.16.1 biomes-api-v1 to 1.16.2 (#1053)
* Ported 1.16.1 biomes-api-v1 to 1.16.2.
Public API changes:
- Removed flagging biomes as suitable for player spawns since that is now handled in the Biome Builder.
- Changed API over to RegistryKey's, not because it's necessary, but because it is more ergonomic since Vanilla Biomes in BuiltInBiomes are now all exposed as keys, rather than instances.

* Changed to CheaterCode's mixin for modifying the nether biomes, saving us one accessor.

* Move Bonanza

* Finished moving and updating of the module, added experimental markers.

* Adjusted experimental notes.

* Finished rename from biomes-v1 to biome-api-v1

* Reverted memory settings in preparation for loom-0.5
2020-09-18 18:11:51 +01:00