بنقرة واحدة
slabbed-slab-support-helper-contract
Define the single shared helper API all slab-support mixins must use.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Define the single shared helper API all slab-support mixins must use.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Disable or remove all temporary debug instrumentation (debug mixins, debug helpers, and log spam) and verify a clean production run.
Run the minimum production sanity checks before tagging a release or milestone.
Temporarily enable or disable debug mixins via mixin config selection without touching production mixin lists.
Verify strict visual alignment for offset-rendered blocks (model + outline) on slab tops and slab undersides.
Build-gated savepoint commit with optional tag and push, enforcing Slabbed guardrails.
Add hanging/ceiling attachment support for blocks under top slabs, using SlabSupport.isCeilingSupportSurface as the single source of truth.
| name | slabbed-slab-support-helper-contract |
| description | Define the single shared helper API all slab-support mixins must use. |
Define a single, stable helper API for determining whether a block state at a position should count as “ground support” for the top face, including slabs.
All mixins must call this helper; no duplicated slab logic inside mixins.
Treat the top face of:
Strict visuals expected: placements must align to the slab top surface when possible.
Create helper class (when implementing):
src/main/java/com/slabbed/init/SlabSupport.javaNo other class may implement slab-support rules.
When implementing, expose only these methods (no extras unless required):
static boolean isSupportedOnTop(WorldView world, BlockPos pos, BlockState belowState)
static double topSurfaceYOffset(BlockState belowState)
1.00.5Double.NaNstatic boolean isSlabLike(BlockState state)
SlabBlock and any other block types we explicitly add laterisSupportedOnTop(...) should return true if:
Do NOT automatically treat:
This mod is “Slabbed”, not “All partial blocks”.
If needed later, helper may accept a “support category” enum, but for now:
When implementing, add optional debug logging controlled by:
-Dslabbed.debugSupport=trueLogs must be:
[SLABBED_SUPPORT]No logs by default.
SlabSupport instead of duplicating slab checksIf more than 2 mixins need slightly different “support” semantics: