Commit graph

417 commits

Author SHA1 Message Date
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
modmuss50
8382c6c3c5 Add Travis file from 1.16 2020-05-07 22:28:08 +01:00
modmuss50
2aebb7fff1 Checkstyle fixes
(ง'̀-'́)ง
2020-05-07 22:27:43 +01:00
modmuss50
c515a28281 Version bumps 2020-05-07 22:18:07 +01:00
i509VCB
5177e148fa
Create command api test mod (#607)
* Create command api test mod

* Verify the callback is only called once per server instance.
2020-05-07 22:07:53 +01:00
i509VCB
e1cc239944
Fix duplicate input class from object builder mixins (#611)
We Fix this by marking the old v0 mixins as `OldMixinTarget`
2020-05-07 22:05:54 +01:00
modmuss50
045efb4682 Restart Testmods (#593) 2020-05-03 19:46:37 +02:00
modmuss50
7b6f8bc5f3
Fix commands on servers. (#604)
* Fix commands on servers.

Based off the same fix I made a year or two ago...

* Fix
2020-05-02 21:19:24 +01:00
modmuss50
eec4b1a447 Bump version 2020-04-30 00:06:13 +01:00
Juuxel
2a034f0a88
Add a hook for BuiltinModelItemRenderer (#563)
* Add builtin item renderers

Closes #488.

* Bump fabric-rendering-v1 to 1.0.0

* Code review

* Add comments

* Code review II

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

* Add missing license headers

* Switch to ugly class singletons

* Add null checks to BuiltinItemRendererRegistry.register

* Protect against overwriting others' renderers by catching exceptions

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-30 00:05:39 +01:00
i509VCB
796d1cc4d3 Object builders v0->v1 migration (#537)
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2020-04-29 23:44:51 +01:00
modmuss50
6ffe71e2a9 Bump version
Also fix running in dev
2020-04-29 22:12:11 +01:00
i509VCB
2e0c4ff552
Migrate commands to v1 (#539)
* Migrate commands to v1

* Update fabric-commands-v1/src/main/resources/fabric.mod.json

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

* Update fabric-commands-v1/src/main/java/net/fabricmc/fabric/api/command/v1/CommandRegistrationCallback.java

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

* commands -> command and improved javadoc.

* Fix the stragglers

* swap dedicated and dispatcher params

* Update fabric-command-v1/src/main/java/net/fabricmc/fabric/api/command/v1/CommandRegistrationCallback.java

Whoops forgot that one

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* module name order has been restored.

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-04-29 22:05:43 +01:00
Player
915c4463ea Remove DynamicAttributeTool from ToolItem to fix vanilla tools being universally effective 2020-04-22 17:18:28 +02:00
Player
e40501d4d5 Fix import order to make checkstyle happy 2020-04-22 10:52:20 +02:00
Prospector
ea4672f136
fabric-climbable-api-v1 - Re-implementing minecraft:climbable on 1.15 (#558) 2020-04-22 08:41:13 +00:00
Player
ea0c4fa998
Bump version 2020-04-22 07:28:42 +00:00
Player
692f3e57e9
Bump fabric-tool-attribute-api 2020-04-22 07:28:20 +00:00
Player
20bf598a7b
Fix missing cancellable in MixinPlayerInventory 2020-04-22 07:27:34 +00:00
Player
45c38e2d22 Bump version 2020-04-22 05:39:46 +02:00
Meredith Espinosa
ec951ea440
fabric-mining-levels-v0 -> fabric-tool-attribute-api-v1 (1.15 edition) (#460)
Moves the ToolManager and tool tags declared in fabric-mining-levels-v0 to a new fabric-tool-attributes-v1, along with adding new interfaces to be implemented on tools so that mining speed, mining level, and entity attribute modifiers can be decided by the itemstack.
2020-04-22 03:30:02 +00:00