Commit Graph
14 Commits
Author SHA1 Message Date
chill d5b8ef6ea9 Code cleanup (#133)
* gradle updateBuildScript

* fix comments and commented-out code

Code deletion, converting comments into javadocs, and refactoring code to not
need comments.

* remove redundant suppressions

* replace C-style array declaration with Java-style

* make private field final

* remove unnecessary semicolon

* extract a common part from an if

* simplify boolean expression

* simplify ternary if

* remove unused imports

* convert escaped characters for clarity

* replace while with for

* replace explicit types with diamond operators

* replace anonymous type with lambda

* enable modern Java syntax

* migrate to enhanced switch

* migrate to pattern variables for instanceof

* remove empty javadoc

* add Nonnull annotation to overrides of Nonnull methods

* replace wailaStack with null

When wailaStack is not null, the flow breaks out of the loop,
so there's no need to confuse the reader with putting wailaStack
both as the result and the parameter of the call - there's no
recursion.

* int cannot be bigger than its max value

* suppress dataflow warning

* remove redundant initializer

The default value of int is 0.

* null check is covered by instanceof

* simplify some calls of addVertexWithUV

* fix typos and add TODOs

* make flipState more understandable
2023-06-18 23:29:57 +02:00
GlodBlock 4f8811d376 make eio conduit consistant with ae2 2023-02-15 17:56:51 +08:00
Jason Mitchell 69a5c0e6ee [ci skip] spotlessApply with the new settings 2023-01-28 17:43:10 -08:00
asdflj 5e31096c7e spotless apply 2022-12-05 14:41:36 +08:00
Guinea Wheek e9351c5302 move reflection to Ae2Reflect 2022-10-24 02:59:03 -07:00
GlodBlock bce6e35675 crafting card support for fluid export bus 2022-10-03 19:46:57 +08:00
GlodBlock e8825d74e7 fix drops leak to item cell when discretizer go offline 2022-08-01 14:52:57 +08:00
GlodBlock 5747b4535b clean up reflection 2022-07-22 19:18:13 +08:00
GlodBlock a053b51b57 native fluid io bus 2022-05-27 22:18:25 +08:00
GlodBlock 72667593f1 fix my horrible shit code 2022-05-21 20:55:42 +08:00
GlodBlock bd5c2eb171 clean up 2022-05-16 20:21:35 +08:00
GlodBlock 54e6654078 fluid cells 2022-05-11 18:32:49 +08:00
GlodBlock 39b089805c more careful ae2 check and obs field check 2022-05-10 22:36:28 +08:00
GlodBlock db2ad29b52 begin work 2022-05-10 17:57:38 +08:00