Skip to content

Commit

Permalink
feat: Add filters for logistics system (#191)
Browse files Browse the repository at this point in the history
* feat: add some basic gui classes from Create

* feat: more gui classes

* feat: start on filter menu

* feat: add filter screen

* feat: add filter item

* feat: make (largely empty) openable filter screen

* fix: basic screen functions

* feat: add full list filter screen functionality

* fix: use of right button tooltips

* chore: update parchment

* feat: add filter class with filter functionality

* chore: preparations for filter functionality in logistics

* feat: add initial behaviour functionality for filter

* feat: add filter visuals

* feat: add filter behaviour to logistics connectors

* feat: add adding/removing of filters

* fix: filter screen auto-closing

* feat: add recipe for filter

* fix: logistics system does not apply the filter

* feat: add ingame guide for filters

* chore: re-establish reuse compliance
  • Loading branch information
klikli-dev authored Jun 27, 2024
1 parent a10eacf commit d35283e
Show file tree
Hide file tree
Showing 89 changed files with 2,495 additions and 205 deletions.
4 changes: 2 additions & 2 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Upstream-Contact: klikli-dev
Source: https://github.com/klikli-dev/theurgy

Files: src/main/resources/*
Copyright: 2022 klikli-dev
Copyright: 2024 klikli-dev
License: CC-BY-4.0

Files: src/generated/resources/*
Copyright: 2022 klikli-dev
Copyright: 2024 klikli-dev
License: CC-BY-4.0

Files: .github/*
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ neogradle_version=7.0.145

# neo directly reads these properties
# the version the mappings were created for, does not need to match the current mc version
neogradle.subsystems.parchment.minecraftVersion=1.20.6
neogradle.subsystems.parchment.minecraftVersion=1.21
# the mapping version
neogradle.subsystems.parchment.mappingsVersion=2024.06.02
neogradle.subsystems.parchment.mappingsVersion=2024.06.23

## Mod Properties
group=com.klikli_dev
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// 1.21 2024-06-16T12:34:15.3029228 Books: theurgy
5e7488aa1320941c93a0261a7eece0621d32439d data/theurgy/modonomicon/books/the_hermetica/book.json
// 1.21 2024-06-27T13:16:55.3727087 Books: theurgy
c473bf5aa94f847c736c37f1a9f85c86b8bce95d data/theurgy/modonomicon/books/the_hermetica/book.json
080f617043bd6f04c52e35f07d6a016460dc9b54 data/theurgy/modonomicon/books/the_hermetica/categories/apparatus.json
709d738b9ddcf3d50c465f94cf98003c5809f0ec data/theurgy/modonomicon/books/the_hermetica/categories/getting_started.json
fea32e3980866f60e2f346183868b2dba6515f3a data/theurgy/modonomicon/books/the_hermetica/categories/logistics.json
caf5214a3a6ad165fcdc8d0c35307f546693cdd9 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/calcination_oven.json
42484758b6549bf54586bd33248bc3a7fdfe867a data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/calcination_oven.json
952907156f0698be1cfa5b594ad7a2de740b7cd8 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/caloric_flux_emitter.json
d6dcd8ee029762ebfa0d0601049825379032652e data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/digestion_vat.json
c64e3eb8ef271787aabd93317960a994998dbc98 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/distiller.json
c0b54a16bc89f187242e0e4bc6ccdbd3384f8270 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/distiller.json
5a67c4a5107fd84986083d1f1725e3044b28d532 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/fermentation_vat.json
e1f9c49e4b8b4833d088d047c528b7c58ab48d47 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/how_to.json
0866a82cb936f92612088b285fdc7970d9a68dec data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/incubator.json
47f39cb1aab85d5ae46b3b3c7c608eacd3f57bf2 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/incubator.json
858f3f40bed4e1dd6ffe931f0c53ec326b4732e0 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/intro.json
f7167148578db6829cf57b52dcda1be59e21da7e data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/liquefaction_cauldron.json
d430fdcac8ffa2ef50b109975f03214a7cd02149 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/liquefaction_cauldron.json
d3cfc6043772c116ca9ab270e49aa9c1d3c7590b data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/mercury_catalyst.json
9437c902af940504edf6a7736479979f12f0aa24 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/mercury_flux.json
f4c372490569ba193b765c4437159d8b41f2de69 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/pyromantic_brazier.json
2202ea164f4f33c8c00a0dfe7401b7c29764084c data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/reformation_array.json
509577726979fd7e830cb3def611a6920e646a88 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/result_pedestal.json
b38ec5a6097c86e277d1a937fda8029a0fc67e25 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/sal_ammoniac_accumulator.json
41bf76dcae61b448e725f84a754a1ad051314517 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/sal_ammoniac_accumulator.json
0768cdcc18ed1a900bb8e8dc69f2b936161334f6 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/sal_ammoniac_tank.json
3fd06e933342fa217362cbb999ff1ab0b23aff25 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/source_pedestal.json
d5a864c984232f6f841117252f83e65b6a7e0567 data/theurgy/modonomicon/books/the_hermetica/entries/apparatus/spagyrics.json
Expand Down Expand Up @@ -72,11 +72,12 @@ d210dbe37b3992c629251f71b362a229acd1714f data/theurgy/modonomicon/books/the_herm
10f1531e3312bd6dd11cd0c1c50f0438a5ad1602 data/theurgy/modonomicon/books/the_hermetica/entries/getting_started/t3_divination_rod.json
640ea6de276f01f74274b35fd3044461067e5e37 data/theurgy/modonomicon/books/the_hermetica/entries/getting_started/t4_divination_rod.json
d30d9cb2ae1884a810c736cdb06bb5b0d6ada124 data/theurgy/modonomicon/books/the_hermetica/entries/getting_started/target_pedestal.json
5c621aefec331928387d4b7ce3d7dbfb4c1d11b2 data/theurgy/modonomicon/books/the_hermetica/entries/logistics/connection_node.json
a4d4ee8172f7c14580d3a7759544aac51a44890e data/theurgy/modonomicon/books/the_hermetica/entries/logistics/connection_node.json
2297ec1995a7c83573b45b91a2df7814767bc9ad data/theurgy/modonomicon/books/the_hermetica/entries/logistics/intro.json
53a9b9e65867567ac0b8d413d0d0c47478b9cc2c data/theurgy/modonomicon/books/the_hermetica/entries/logistics/item_extractor.json
5f3d12cdea9f2b56d824c9a67df2ab157b93cff5 data/theurgy/modonomicon/books/the_hermetica/entries/logistics/item_inserter.json
67a4c1bb04f2a0671d3b2af333a87e644ee47c6a data/theurgy/modonomicon/books/the_hermetica/entries/logistics/logistics_network.json
710206a732ffda2c2d644262099f3e6e13fc3018 data/theurgy/modonomicon/books/the_hermetica/entries/logistics/list_filter.json
fec65bed57b2bb5b20ebd116c82254c42db9a72e data/theurgy/modonomicon/books/the_hermetica/entries/logistics/logistics_network.json
754a7a527098cdb3f241d563d34c37ecbafe7ea9 data/theurgy/modonomicon/books/the_hermetica/entries/logistics/lore.json
6c38cb6e7c0c2eac8ba441b882706cf9f26c7f28 data/theurgy/modonomicon/books/the_hermetica/entries/logistics/mercurial_wand.json
4dbf93b58332f54c744ad1d8606c636b14116a7e data/theurgy/modonomicon/books/the_hermetica/entries/logistics/mercurial_wire.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-06-16T12:34:15.3259235 Block States: theurgy
// 1.21 2024-06-27T09:40:07.1033332 Block States: theurgy
ef875fc2604f4f19d7604536c66d3d2c26163879 assets/theurgy/blockstates/calcination_oven.json
fa912507f89d2fe9ac05c8b057aed16d83f0d96c assets/theurgy/blockstates/caloric_flux_emitter.json
92ebf87f417e3426f30d3e42eeafd933e446eb23 assets/theurgy/blockstates/deepslate_sal_ammoniac_ore.json
Expand All @@ -11,8 +11,8 @@ efc838dc92770522219889024bec42cc52fb93bd assets/theurgy/blockstates/distiller.js
08bfb53e16229544b84ea69caac5d11239d3c8b0 assets/theurgy/blockstates/incubator_sulfur_vessel.json
05305f7086817341ef70a4df92bf81a24bb0b6da assets/theurgy/blockstates/liquefaction_cauldron.json
502d977970aa2a320387c75413a4b2b9254bbe26 assets/theurgy/blockstates/logistics_connector_node.json
7347dbc7dd83145c38f3e5bc374920d3c8025274 assets/theurgy/blockstates/logistics_item_extractor.json
f8a265a1be1d58e5e7533714bfe5f539919449a0 assets/theurgy/blockstates/logistics_item_inserter.json
dfb1d02ba07a69c9d2d4c384dad3381439dcaa0d assets/theurgy/blockstates/logistics_item_extractor.json
f53ebd2c393ab26ea9c23ab6ed3b0dd2762c0d8e assets/theurgy/blockstates/logistics_item_inserter.json
f072de10fd9407a439ba626f1208b6707d0f20c9 assets/theurgy/blockstates/mercury_catalyst.json
e94d251a012694f4b0bc2925acbc4ee418cacf10 assets/theurgy/blockstates/pyromantic_brazier.json
7f204750a76eb11c6e58b05b027784947214ec60 assets/theurgy/blockstates/reformation_result_pedestal.json
Expand All @@ -36,6 +36,7 @@ c79ce877fb80454b4c5ea666bcc5584c881e8c11 assets/theurgy/models/block/incubator_v
1144aa12cc110991e79d9c636180b33178a26f2f assets/theurgy/models/block/liquefaction_cauldron_lower.json
c79ce877fb80454b4c5ea666bcc5584c881e8c11 assets/theurgy/models/block/liquefaction_cauldron_upper.json
7ad3c0d9d3c704cb7208e0956cfcdb3e49d71df0 assets/theurgy/models/block/logistics_connection_node.json
36b6952b32004b930dfee15529f223d985d064b1 assets/theurgy/models/block/logistics_connector_filter.json
5621fe9d75475395410c06019a14ba77b6e97e14 assets/theurgy/models/block/logistics_item_extractor.json
86e79ecfb261db3b4f75a62a62de33a29252f375 assets/theurgy/models/block/logistics_item_inserter.json
b409c8a9f0cf680d9b409e9d9dcef1a73e9c0948 assets/theurgy/models/block/mercury_catalyst.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-06-16T17:26:45.2673641 Shaped Crafting Recipes
// 1.21 2024-06-27T12:23:04.785347 Shaped Crafting Recipes
1a1455c9a7af01c27e142f6dbd30d87036d4d091 data/theurgy/recipe/crafting/shaped/amethyst_divination_rod.json
5947320d23ddb2fea340162d3fa1f499ae60fe60 data/theurgy/recipe/crafting/shaped/calcination_oven.json
fea993b064c542dc56524de4c628f0160ed5850f data/theurgy/recipe/crafting/shaped/caloric_flux_emitter_from_campfire.json
Expand All @@ -16,6 +16,7 @@ f89630022cc77960809704f97a6a655986f924ad data/theurgy/recipe/crafting/shaped/inc
cd84d5636f07b867158c49eba4c340b7f47e6996 data/theurgy/recipe/crafting/shaped/incubator_salt_vessel.json
85ddf466c8fe887d9dddb263aff4ed51d828c846 data/theurgy/recipe/crafting/shaped/incubator_sulfur_vessel.json
473b7db592ed450f6be0785521593e0fc18e394d data/theurgy/recipe/crafting/shaped/liquefaction_cauldron.json
666bb57d2446a04b5385b63d8940748ed3f16afd data/theurgy/recipe/crafting/shaped/list_filter.json
5cf698be6496edd1070ed239a9b6fcdd80d4f05a data/theurgy/recipe/crafting/shaped/logistics_connector_node.json
34d5886f5d4f29e58249d2bb00eb29b926b8daab data/theurgy/recipe/crafting/shaped/logistics_item_extractor.json
95fba052d90433b04781cc28b8f09ac1e9c2443b data/theurgy/recipe/crafting/shaped/logistics_item_inserter.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.21 2024-06-16T17:19:50.8834725 Languages: en_us
ba6c366fce8e50bb8aa76351c07aec09e75fc71c assets/theurgy/lang/en_us.json
// 1.21 2024-06-27T13:16:55.3767089 Languages: en_us
07c0314bf133fdba8083089c3e5e6552ad8f57d7 assets/theurgy/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-06-16T12:34:15.3229221 Item Models: theurgy
// 1.21 2024-06-22T16:08:37.3944713 Item Models: theurgy
a402a05d887ec6d271a9350944338d29e1233318 assets/theurgy/models/item/alchemical_salt.json
9fd173e362b6644716da98ba0d15809f85879e78 assets/theurgy/models/item/alchemical_salt_crops.json
9fd173e362b6644716da98ba0d15809f85879e78 assets/theurgy/models/item/alchemical_salt_mineral.json
Expand Down Expand Up @@ -123,6 +123,7 @@ e10c25d97937f9dbbae1e85e2768cdec9cbda373 assets/theurgy/models/item/gems_rare_ic
dfd3d9a5b48e72aa2bb7424dba51a88c738f40d1 assets/theurgy/models/item/jar_label_frame_precious_icon.json
f83a199b1494744aff01fc4c082fc35cdd78a476 assets/theurgy/models/item/jar_label_frame_rare_icon.json
94bfa4f4e6caf28d6f20cee65ac10387f5b115e2 assets/theurgy/models/item/jar_label_icon.json
36e55b93b55664cabacc73b40e3fb30b4ccf18a2 assets/theurgy/models/item/list_filter.json
c0882f6fbb3c4037338e9b3f20a01899656526a5 assets/theurgy/models/item/mercurial_wand.json
dba6c70f6dc6e3efa9e5ca587d452b81421cabe2 assets/theurgy/models/item/mercury_crystal.json
022666f33be76a64adeafdb25b8955238da6ad02 assets/theurgy/models/item/mercury_shard.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,240 @@
{
"variants": {
"facing=down": {
"model": "theurgy:block/logistics_item_extractor",
"x": 180
},
"facing=east": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 90
},
"facing=north": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90
},
"facing=south": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 180
},
"facing=up": {
"model": "theurgy:block/logistics_item_extractor"
},
"facing=west": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 270
"multipart": [
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90
},
"when": {
"facing": "north",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90
},
"when": {
"facing": "north"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90
},
"when": {
"facing": "north",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90
},
"when": {
"facing": "north"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90,
"y": 90
},
"when": {
"facing": "east",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 90
},
"when": {
"facing": "east"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90,
"y": 90
},
"when": {
"facing": "east",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 90
},
"when": {
"facing": "east"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90,
"y": 180
},
"when": {
"facing": "south",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 180
},
"when": {
"facing": "south"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90,
"y": 180
},
"when": {
"facing": "south",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 180
},
"when": {
"facing": "south"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90,
"y": 270
},
"when": {
"facing": "west",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 270
},
"when": {
"facing": "west"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 90,
"y": 270
},
"when": {
"facing": "west",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 90,
"y": 270
},
"when": {
"facing": "west"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter"
},
"when": {
"facing": "up",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor"
},
"when": {
"facing": "up"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter"
},
"when": {
"facing": "up",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor"
},
"when": {
"facing": "up"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 180
},
"when": {
"facing": "down",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 180
},
"when": {
"facing": "down"
}
},
{
"apply": {
"model": "theurgy:block/logistics_connector_filter",
"x": 180
},
"when": {
"facing": "down",
"has_filter": "true"
}
},
{
"apply": {
"model": "theurgy:block/logistics_item_extractor",
"x": 180
},
"when": {
"facing": "down"
}
}
}
]
}
Loading

0 comments on commit d35283e

Please sign in to comment.