Commit graph

437 commits

Author SHA1 Message Date
Draylar
e6e5d8150e Add FabricChunkGeneratorType (#305)
* added dimensions-v1 & FabricChunkGeneratorType

* documentation & fixed supplier type

* fix issues; move to fabric-world-v1

* Fix build and add register

* change string param to identifier

* Factory to inner class of Type; move to object builders module.

* reformat type class

* clean up javadocs

* delete world package

* fix settings.gradle accidental change

* Merge branch '1.14' + checkstyle fixes

* remove trailing whitespace in settings.gradle

* change package to pass checkstyle

* v1 -> v1.gen

* Update fabric-object-builders-v0/src/main/java/net/fabricmc/fabric/api/world/v1/gen/FabricChunkGeneratorType.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* make factory field final

* update javadocs

Co-authored-by: Dinolek <18579460+Dinolek@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-10-05 19:31:49 +01:00
modmuss50
b125eefdec Bump version 2020-09-29 18:53:59 +01:00
i509VCB
3351c9d219
Copy over villager trade fix from 1.16 (#1106) 2020-09-29 18:46:37 +01:00
modmuss50
5452dd0911 Version bump 2020-09-18 18:47:19 +01:00
i509VCB
d6595b3d9e Fix bug with creating custom villager types and TradeOffer utilities. 2020-09-18 18:44:59 +01:00
modmuss50
0c90d94e36 Update gradle 2020-09-18 18:37:58 +01:00
modmuss50
df61ba6bd3 Update loom to 0.5 (#1060)
You may need to run `--refresh-dependencies` if you have odd issues. Please ask if you need help.
2020-09-18 18:34:49 +01:00
modmuss50
6b1a0d6d25 0.19.0 2020-08-21 17:37:22 +01:00
modmuss50
ec432e1979 1.15 cherry pick compile fixes 2020-08-21 17:31:07 +01:00
Geometrically
32491f53dd Block break event (#980)
* Block break event

* License headers + after event

* Before and after events, testmod

* Fix checkstyle

* Version bump, fix client method call

* Move to one event class

* Expand event parameters + javadoc

* Add cancelation event and move javadocs

* Move JavaDoc + Make success have same function as pass

* Fix success bug

* Fix documentation again, change approach

* Fix checkstyle

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/BlockBreakEvents.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/BlockBreakEvents.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/BlockBreakEvents.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/BlockBreakEvents.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/BlockBreakEvents.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/BlockBreakEvents.java

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

* Fix checkstyle

* Rename stuff

* fixes

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/PlayerBlockBreakEvents.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/PlayerBlockBreakEvents.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/impl/event/interaction/InteractionEventsRouter.java

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

* Update fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/api/event/player/PlayerBlockBreakEvents.java

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

* Rename Canceled Event Method Name

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: i509VCB <i509vcb@gmail.com>
2020-08-21 17:27:12 +01:00
Juuxel
eb1e5e8520 Add FabricItemSettings and an API for custom item equipment slots (#956)
* Add FabricItemSettings and an API for custom item equipment slots

Closes #952.

* Bump module version

* Rename duck method to have fabric_ prefix and add Unique to mixin field

* Switch to FabricItemInternals + ExtraData like in FabricBlockSettings
2020-08-21 17:26:24 +01:00
shartte
db9ee7acda Fix dynamic tools not using their mining speed on modded blocks with mining level 0. (#1030) 2020-08-21 17:26:16 +01:00
modmuss50
7a905d1e9b Bump version 2020-08-13 18:20:12 +01:00
Juuxel
1778029ec0 Add ItemConvertible overload for BuiltinItemRendererRegistry (#955)
Closes #953.
2020-08-13 18:19:29 +01:00
modmuss50
650fc67bb0 Version Bump 2020-08-07 20:00:03 +01:00
i509VCB
cad0185e16 Add callback to allow registration of feature renderers. (#873)
* Add callback to allow registration of feature renderers.

* Laymans terms for those who don't map yarn for a living.

* Be a little less generic

* Dispatch events in a better spot, play with generics again, move to renderer-registries.

Also move this to render registries

* Handle players as well

* Tweak generics

* Hide acceptor impl

* Add actual testmod, fix where player events are fired, Simplify to returning a list.

* the old style worked fine

* registerRenderers

* Rename the event interface

* Javadoc fixes
2020-08-07 19:57:07 +01:00
modmuss50
f794278638 Version Bump 2020-07-29 20:05:49 +01:00
i509VCB
3d76399a1e Add world unload event (And functional interface annotations to events) (#895)
* Add world unload event

* Add functional interface annotations to all events
2020-07-29 20:00:08 +01:00
modmuss50
33df8bfb70 Fix ToolAttributeTest for 1.15 mappings 2020-07-24 16:45:22 +01:00
modmuss50
fd679945df Version bump 2020-07-24 16:43:03 +01:00
Snakefangox
dd72cbe428 Fix tool attributes mining levels (#855)
* Decoupled effective checks and mining speed

* Fixed typo

* Bump major for method sig change

* Fix semvar

* Re-add original API method

* Extend test mod

* Fix bug discovered by testing

* Change current to vanillaResult, update doc for postProcessMiningSpeed

* Remove </p> tag

* Add vanilla tests and rename vars
2020-07-24 16:42:36 +01:00
shartte
c2e942c659 Make Indigo more closely aligned with vanilla's behavior when (#901)
rendering flat-shaded quads. Use the cull-face (if present)
to determine where the light-value is being sampled from,
and use the light-face to apply diffuse lighting.
Also do not force the light-face to be set to the cull-face,
since some blocks use faces where these are both set and different
(see the insides of a Cauldron for example).
2020-07-24 16:41:08 +01:00
modmuss50
a990e9442e Version bump 2020-07-20 20:03:26 +01:00
shedaniel
06ca070952 Fix getBoundKey() recursion (#896)
* Fix getBoundKey() recursion

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

* Change to underscore

Signed-off-by: shedaniel <daniel@shedaniel.me>
2020-07-20 19:44:20 +01:00
modmuss50
ae75e3bdf9 Version bump 2020-07-17 16:21:53 +01:00
modmuss50
dbdd067feb Backport Datapack reload events 2020-07-17 15:50:57 +01:00
i509VCB
564b358c7d Lifecycle Events: Part 2, Electric Boogaloo (#848)
* Add a few new server lifecycle events

Server starting, Load World, Before server resource reload, After server resource reload

* Save event

* Split world load into ServerWorldEvents, add failure event for data pack reload

* cause

* Merge fail and regular end.

* Present tense lol

* So we can just plainly specify the system properties

* use handleAsync instead
2020-07-17 15:09:58 +01:00
shartte
a2a03a90f8 Reuse TerrainFallbackConsumer to render vanilla models when (#870)
called from BlockModelRenderer. Fixes #869.
2020-07-17 15:08:53 +01:00
ㄗㄠˋ ㄑㄧˊ
57b0bb7ac0 github actions: add wrapper validation (#875)
It validates the checksums of Gradle Wrapper JAR files present in the source tree and fails if unknown Gradle Wrapper JAR files are found. https://github.com/gradle/wrapper-validation-action
2020-07-17 15:08:48 +01:00
modmuss50
e1769a8047 Disable actions cache, and increase gradle memory allocation a little. 2020-07-17 15:08:44 +01:00
modmuss50
16a64a2035 Github release publishing 2020-07-01 19:00:06 +01:00
modmuss50
c5d54d2e8f Bump version 2020-06-25 23:29:39 +01:00
modmuss50
451a3d52b8 Fix invalid testmod json 2020-06-25 22:41:39 +01:00
i509VCB
2f23104bdd
Lifecycle Events V1 [1.15] (#619)
* Lifecycle Events V1

Now includes Chunk and (Block)Entity (un)load events

* Add some tests to verify worlds are ticking in the log

* Lambda boogaloo

* Add some docs. Distinguish between a server starting to stop and server which has stopped.

* Split up test mods, some tweaks to (block)entity (un)load events.

Bind the ServerWorld being closed during shutdown to unload (block)entities.

* Shift around a few profiler variables and finalize

* Complete the tests, Block entities on server should be reliably tracked now.

Entities on the server obviously still need to be wrangled.

* Drop Server Entity Unload callback.

Believe me, this was a hard decision but it stands on the fact that about 20-40% of entities silently unload without going through the proper "unloadEntity" method in ServerWorld. No amount of debug hacks, double tracking unload events and even replacing the entity maps do not fix this issue. So I have decided to drop this from the feature set.

* checkstyle

* generic-events -> item-api

* Server start -> Server started

* Allow getting current server from Lifecycle

People have asked for this, but it is not encouraged for obvious reasons. Should be staged well enough to revert if we decide to.

* checkstyle lol

* update injection name

* Checkstyle lol: Redundant modifiers

* Add client starting, stopping and stopped callbacks.

* Loicenses

* Reorganize so each event category has it's own class.

Also this collapses the pretty widely reaching interfaces into more specific inner classes to avoid issues with generics.

* Some docs and slight name changes

* Add start tick callbacks to worlds, server and client

* Enhance some client related docs to life cycle

* Deprecate for reasons of discouraging singletonish server getter methods in lifecycle

* Add some description related to integrated server on server stopping.

* Add small test to verify tick starts are right spot of load

* Docs and a tiny bit more testing.

* Try clarifying client docs

* Drop a slightly unnessecary event

* Actually call and implement START_SERVER_TICK event

* Remove non-existent test

* again

* Refer to minecraft itself in client lifecycle docs

* Refer to Minecraft itself within ServerLifecycleEvents

* Remove primary server getters

* IJ DO YOU SPEAK RESOLVING IMPORTS

(cherry picked from commit c9257e8a11d8361469349f4171263121bb111af7)

* Prune the tests that shouldn't exist

* Listen here checkstyle you bugger

(cherry picked from commit 9701bba4002cec089c9d3738b1f226128078c130)

* Split up events to individual interfaces. Make Chunk events use WorldChunk instead.
2020-06-25 22:28:49 +01:00
modmuss50
b2771bdedd Update loom to fix crash on build, Closes #831 2020-06-21 19:36:43 +01:00
modmuss50
76ca481865 Fix build 2020-06-21 13:53:32 +01:00
modmuss50
563421ed11 Merge remote-tracking branch 'origin/1.15' into 1.15 2020-06-21 13:41:53 +01:00
modmuss50
d487f0eea9 Bump version 2020-06-21 13:41:43 +01:00
Erlend Åmdal
da6c23c5f1
Simplify fabric-particles-v1 and resolve sprites not being added to the particle sprite atlas (#534) 2020-06-21 13:32:48 +01:00
zml
bb1a063356 networking: Clarify packet type callback JD (#829) 2020-06-21 13:32:00 +01:00
modmuss50
e6da85d258 Update loom, should fix build 2020-06-12 11:45:00 +01:00
modmuss50
d7f31bf16d Merge remote-tracking branch 'origin/1.15' into 1.15 2020-06-12 11:32:12 +01:00
modmuss50
4aae594c84 version bump 2020-06-12 11:32:04 +01:00
shedaniel
2af3af9102
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:18:17 +01:00
Geometrically
0121bd9039 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:12:42 +01:00
i509VCB
e7a4edb35e
Make villager profession builder create method public [1.15] (#649)
* Make method public

* bump module version

* Bump main version
2020-05-29 23:38:01 +01:00
modmuss50
5ff93ffd61 Bump version 2020-05-29 20:10:14 +01:00
i509VCB
e336d62478
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:00:12 +01:00
modmuss50
73868082a6 Bump version 2020-05-11 21:58:03 +01:00
shedaniel
3e55875197
tool attribute 1.1 (#589)
* Actual support

* Remove this useless mixin

* Resolve some issues

* Remove duplicate entries

* maybe?

* fix max breaking speed

* choose an item that is the closest

* Set version to 1.1

* better docs remove stuff

* deprecation doc and no todo comments

* Check if block has valid mining level

* javadocs

* Most of the issues resolved

* Some more javadoc and resolve some issues

* Forgot to change order for these

* Adds post process method to DynamicAttributeTool
Fixed going to vanilla again to query
Fixed tool mining level < 0
Fixed vanilla items on modded blocks not working
Renamed taggedToolHandlerInvoker to toolHandlerInvoker
Renamed entries to ENTRIES

* New comparision method for modded tools to vanilla blocks

* Remove useless mixins and use getMaterial().getMiningSpeed to support more tools.

* Simply mixin

* Some useful javadocs

* Fix license

* Bump fabric-object-builders-v0 because we are good

* Bump version of fabric-object-builder-api-v1 because we are nice

* Resolve some issues

* a

* remove vanilla tools vanilla blocks thing ok

* descriptive

* Get the faster speed instead

* Rename ModdedToolsVanillaBlocksToolHandler

* Remove tri state

* Fix compile errors

* testmod

* fix formatting

* fix testmod javadoc

* forgot to license format testmod

* Bump to 1.1.0
2020-05-11 21:47:17 +01:00