Tags
Creators
Details
All versions
0.10.12
Release
0.10.124 days ago 23
Compatibility
Minecraft: Java Edition
1.7.10
Platform
Forge
Supported environments
Client and server
Changes
CatFrame - 0.10.12
What is changed?
Change version number from previous to 0.10.12
➕Add:
- emptyMessageAgreesWithTheMultiLineWidget and
- new scrollingFallback helper, kept pure so it is unit tested
-
- tests: 3 new StringWidget cases (23 total) and 2 new MultiLineTextWidget cases
- Add ui/screens/ConfirmScreen, the CatFrame counterpart of vanilla GuiYesNo.
-
- .gitignore: add logs/ next to the other minecraft run artifacts (.minecraft/, eclipse,
- Add ui/components/MultiLineTextWidget, the read-only multi-line counterpart of the
- Add the S10 TextOverflow capability to ui/components/StringWidget and reuse the
- StringSplitter added in the previous commit.
-
- new TextOverflow enum {CLAMPED, TRUNCATED, WRAP}; CLAMPED keeps the reference
- without a FontRenderer; add StringWidgetOverflowTest (9 cases)
- Add StringSplitter backport (1.7.10 legacy §-code aware) for width-aware text
-
- new ui/StringSplitter: WidthProvider bound to FontRenderer (per-glyph advance
- (reflowDisplayLines / countDisplayLines), keeping the trailing-newline rule
-
- add StringSplitterTest (21 cases) with a synthetic width provider
- Recognise flags/width/precision/tT specifiers in Text templates so %5s and %.2f reach String.format instead of leaking literally. A specifier that cannot be split now flattens the whole template via formatFlat rather than leaving later conversions unrendered. Extract decomposeTemplate/formatFlat as package-private pure helpers and add TextTemplateTest covering splittable, decorated, prose-percent, failure, index-mixing, style and boundary cases.
- Add typed state updaters for vanilla blocks and bind them to the definitions.
-
- New VanillaStateUpdaters: STAIRS / PANE / REDSTONE_WIRE / DOOR / DOUBLE_PLANT (+ DOUBLE_PLANT_PREDICATE) / SNOWY, ported to the current string-domain properties (flag values are "true"/"false", enums are their serialized names) instead of the old enum-domain draft.
-
- Neighbour meta decoding goes through the declared MetaBlockProperty instances (STAIR_FACING_META / HALF_BOTTOM_TOP_B2 / DOUBLE_PLANT_VARIANT_META), and the door cross-half decoders reuse the value lists of DOOR_FACING / DOOR_HINGE / OPEN, so each property keeps a single decode implementation.
-
- ResidentStateModel: add explicit updater / predicate bindings (Builder.updater / Builder.renderWhen) that fall back to the definition's own hooks, so a base fragment's typed logic reaches registration without re-declaring.
-
- BlockStateDefinition: add nullable updater / renderPredicate fields with getUpdater() / getRenderPredicate(); both stay null for every existing definition, so decode and render results are unchanged.
-
- Builder: add updater(StateUpdater) and renderWhen(RenderPredicate); create() backfills both onto the definition.
- Add typed state-update contracts for world-dependent block states.
-
- Pure addition: no existing pipeline touched, no behaviour change.
- Register the stretching mcmeta section with the vanilla IMetadataSerializer (MixinMinecraftMetadataSection on refreshResources), add StretchingMetadataSectionSerializer and make TextureStretchingMetadata implement IMetadataSection; load() now prefers IResource#getMetadata with the bare-mcmeta parser kept as fallback, closes every resource stream and invalidates its cache on resource reload
- Add
🔧Fix:
- Fix the overflow and clipping defects found in the StringWidget and
-
- CLAMPED never draws a suffix wider than the limit: when maxWidth is at most the
- rather than appending a suffix that would widen it past the limit
- it to its own width minus the suffix like MultiLineLabel#create
- carry the code prefix active at their break point, so nothing is treated as a
- reaching the drawn string and the width, wrap prefixes per line, clamped suffix
- clipText semantics (clip next to the suffix, then append it), TRUNCATED is a hard
-
- the suffix is "..." rather than U+2026 because the 1.7.10 default font is
-
- legacy formatting codes are resolved through Style.applyLegacyFormat so they
-
- Text.legacyCodes made package-private so the splitter emits line prefixes with
- fix the sand things issue #13
- fix the mixins
-
- Legacy .dynamic(...) bindings are intentionally left in place: definitions not created here (modded BlockPane/BlockStairs subclasses without a typed definition) still resolve through the string path, so no block loses its world-dependent properties.
- Fix
-
- Render veto now has a typed lane (RenderPredicate gets the resolved-state context) alongside the legacy resolver hook.
-
- resolve(): last non-null fragment wins (subclass priority) and the winning pair is rebound onto the merged definition via Builder.updater / Builder.renderWhen, so a base fragment's typed state-update logic is no longer dropped by the merge.
-
- Existing dynamic-resolver channel untouched; no decode or render output changes.
-
- Completes the declaration side of the world-dependent state pipeline: a definition now carries "how to resolve world-dependent values" and "whether to draw the resolved state" as two separate concerns.
-
- StateUpdater: render-time second phase (meta-decoded base state -> world-resolved state) using O(1) BlockState#setValue jump transitions; returning null signals an error and falls back to the base state.
- Remove the bare-mcmeta fallback reader from TextureStretchingMetadata so the stretching section is resolved only through the IMetadataSerializer registration (load() returns null until registerSection runs); drop the now-unused JsonParser/InputStream imports and refresh both javadocs
- Fix and test
❗❗❗Deprecated:
- treats an empty line list as nothing to draw, and the getHeight fallback dropped
- onClose restores the parent screen instead of dropping back to the game
-
- setMaxRows(int) drops the extra rows and ellipsizes the last kept line, clipping
- Remove
Notes
Full Changelog: https://github.com/song682/CatFrame/commits/v0.10.12
Supplementary resources
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:lSH4nVom:cDAoNSIs"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:lSH4nVom:cDAoNSIs"
}

