Commit Graph
76 Commits
Author SHA1 Message Date
Algent 255b817c92 fix: re-resolve microblock icons after texture stitch
loadIcons runs in TextureStitchEvent.Post and could cache icons before
other mods finished theirs in the same event (Chisel CTMLib -v4 submaps),
leaving microblocks with missing or previous-stitch textures.

loadIcons now marks icons stale; the first icont() read after a stitch
rebuilds them once. Icons set through icont_$eq are kept. Addon materials
reading icont() get the fix without API changes.

Fixes GTNH issue 27183 without relying on handler priority (upstream #63).
2026-10-14 16:37:20 +02:00
Algent e13389f26f feat: add client multipart preview API 2026-09-16 12:44:33 +02:00
Algent a995189f92 fix: preserve micro occlusion match failures 2026-09-16 12:18:42 +02:00
Algent 12eb146d02 build: compile directly for Java 8
Keep modern java out of that for now, it make build script too complicated as long as scala still here to force J8 path
2026-09-15 22:48:00 +02:00
Algent 74eb0ea7ba fix: register all requested microblock metadata variants 2026-09-14 16:50:33 +02:00
Algent 4e0d7a684e fix: exclude missing placeholder from raw material recipes 2026-09-14 16:49:47 +02:00
Algent f86a31d908 feat: Tint microblock breaking particles by material colour
Covers whose texture is greyscale and coloured at render time broke into
grey particles. A grass cover hit on the top face gave stone coloured
particles while its sides and bottom looked right, and a leaves cover was
wrong on every face. The cover itself rendered correctly, because
BlockMicroMaterial.renderMicroFace already feeds colorMultiplier to the
face renderer, but nothing carried that tint through to the particles.

Add getBreakingColour to IMicroMaterial, defaulting to no tint.
BlockMicroMaterial returns the block colour multiplier and
GrassMicroMaterial restricts it to the top face, since grass_side and
dirt are already coloured, matching the carve out in vanilla
EntityDiggingFX. JIconHitEffects gains matching getBreakingColour and
getBrokenColour defaults, IconHitEffects passes them to the colour aware
EntityDigIconFX overloads, and McBlockPart uses the colour multiplier of
the block it wraps.

Microblock carries the part level override rather than the
MicroblockClient trait. A new Scala trait member is abstract on the
compiled interface, so mixins built against older FMP would fail with
AbstractMethodError, which the frozen ReferenceScalaMicroblockTraits
fixture caught. A concrete method on the class is inherited by those
mixins instead, and still wins over the interface default.

Characterization expectations are updated for the added signatures and
for the hit effect evaluation order, which now reads the colour from the
material right after the icon for the same side.

Needs the CodeChickenCore build that adds the colour aware
EntityDigIconFX overloads.
2026-09-14 11:28:11 +02:00
Algent aa1d26ca98 refactor: modernize micro occlusion helper 2026-09-09 14:31:25 +02:00
Algent ac2dde545e refactor: modernize hollow client rendering 2026-09-09 13:14:45 +02:00
Algent ce16d47d40 refactor: modernize microblock logic helpers 2026-09-09 13:07:37 +02:00
Algent 638d90c4f0 feat: add saw strength API 2026-09-09 00:52:19 +02:00
Algent 9fd64d3db1 docs: demonstrate Java microblock extensions 2026-09-05 17:45:57 +02:00
Algent 4ec29ec49f docs: mark the internal API boundary 2026-09-05 15:11:34 +02:00
Algent 37d5ea98f6 docs: define direct Java material access 2026-09-05 14:58:24 +02:00
Algent b7d28fb794 docs: define Java microblock creation contract 2026-09-05 14:28:06 +02:00
Algent 2bb5e7ffc9 feat: add Java material enumeration 2026-09-04 23:30:54 +02:00
Algent 5995e366b7 fix: preserve material property dispatch 2026-09-04 22:53:52 +02:00
Algent fd29e0a737 fix: preserve microblock state dispatch 2026-09-04 22:47:31 +02:00
Algent fa41ae0609 refactor: port micro occlusion client to Java 2026-09-04 00:32:48 +02:00
Algent f6d1568399 refactor: port micro occlusion logic to Java 2026-09-04 00:16:03 +02:00
Algent a50ce52cd3 refactor: port hollow microblock client to Java 2026-09-04 00:00:37 +02:00
Algent 940609bf46 refactor: port hollow microblock logic to Java 2026-09-03 23:31:25 +02:00
Algent 556fd519bb refactor: port post microblock client to Java
Retain Scala state and lifecycle bridges with ordered virtual dispatch.
2026-09-03 22:57:12 +02:00
Algent 1c7dd1424d refactor: port post microblock logic to Java
Retain Scala super dispatch and trait metadata for generated mixins.
2026-09-03 22:37:43 +02:00
Algent 7c4c87ec08 refactor: port edge microblock logic to Java
Retain Scala trait metadata and helper bridges for generated mixins.
2026-09-03 22:13:24 +02:00
Algent 33e0bc2ad3 refactor: port corner microblock logic to Java
Retain Scala trait declarations and helper bridges for inherited mixin registration and existing consumers.
2026-09-03 22:01:12 +02:00
Algent cfde82235a refactor: port face microblock logic to Java
Retain Scala trait declarations and helper bridges for inherited mixin registration and existing consumers.
2026-09-03 21:43:37 +02:00
Algent d89aaeacf3 refactor: port common microblock logic to Java
Retain Scala trait declarations and helper bridges for inherited mixin registration and existing consumers.
2026-09-03 21:14:54 +02:00
Algent 2f4972e6fd refactor: port microblock generator to Java 2026-09-02 11:25:04 +02:00
Algent 34aeb7c0d3 refactor: port micro occlusion to Java 2026-09-02 10:47:38 +02:00
Algent 33510e74bd refactor: port hollow microblock factory 2026-09-02 01:23:47 +02:00
Algent df212470e6 refactor: port edge and post factories 2026-09-02 01:00:12 +02:00
Algent d9ecf087ad refactor: port corner microblock factory 2026-09-02 00:33:54 +02:00
Algent 2f60e60193 refactor: port face microblock factory 2026-09-01 20:12:54 +02:00
Algent fa675676ae refactor: port microblock base to Java 2026-09-01 19:54:41 +02:00
Algent 7172af4573 refactor: port microblock classes to Java 2026-09-01 19:34:51 +02:00
Algent 6c54b740ac refactor: port microblock renderer to Java 2026-09-01 19:18:47 +02:00
Algent 0d03dea7b6 refactor: port saw item and renderer to Java 2026-09-01 19:01:26 +02:00
Algent 4761336d7b refactor: port Angelica compat to Java 2026-09-01 18:46:14 +02:00
Algent 80edf9bd01 refactor: port config content to Java 2026-09-01 14:13:05 +02:00
Algent d334d21653 refactor: port block micro material to Java 2026-09-01 13:50:41 +02:00
Algent 1939159564 refactor: port placement grids to Java 2026-09-01 10:25:36 +02:00
Algent c20b6bf9d9 refactor: port microblock placement to Java 2026-09-01 10:06:34 +02:00
Algent 2808742f26 refactor: port ItemMicroPart to Java 2026-09-01 08:35:56 +02:00
Algent f063cc94b4 refactor: port microblock proxy to java 2026-09-01 00:31:27 +02:00
Algent 86d8c14c4f refactor: port grass micro materials to java 2026-08-31 20:09:40 +02:00
Algent 8d4ad03223 refactor: port default content to java
Preserve the exact built-in factory, material, and remap registrations.
2026-08-31 19:45:20 +02:00
Algent 9a8bbfd7a7 refactor: port missing micro material
Preserve the singleton ABI, client stripping, and placeholder registration.
2026-08-31 19:12:26 +02:00
Algent 471c767d33 refactor: port microblock packet handlers
Preserve the registry channel, singleton ABI, client skip, and handshake payload.
2026-08-31 13:51:22 +02:00
Algent 1c91fbb4c9 refactor: port microblock event handler
Preserve the client-only ABI and dedicated-server side stripping.
2026-08-30 22:02:48 +02:00