mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-21 12:42:51 +00:00
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.
24 lines
1.2 KiB
Groovy
24 lines
1.2 KiB
Groovy
// Add your dependencies here
|
|
|
|
dependencies {
|
|
testImplementation(platform("org.junit:junit-bom:5.11.4"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
testRuntimeOnly("org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
|
|
|
functionalTestImplementation(platform("org.junit:junit-bom:5.11.4"))
|
|
functionalTestImplementation("org.junit.jupiter:junit-jupiter")
|
|
functionalTestImplementation("org.junit.platform:junit-platform-engine")
|
|
functionalTestImplementation("org.junit.platform:junit-platform-launcher")
|
|
functionalTestImplementation("org.junit.platform:junit-platform-reporting")
|
|
|
|
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.20:dev")
|
|
compileOnly("com.github.GTNewHorizons:Angelica:2.1.19:dev")
|
|
compileOnly("com.github.GTNewHorizons:Postea:1.2.5:dev") {transitive = false}
|
|
devOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.8.93-GTNH:dev") {
|
|
exclude group: 'com.github.GTNewHorizons', module: 'CodeChickenCore'
|
|
}
|
|
compileOnly("com.github.GTNewHorizons:GTNHLib:0.11.44:dev")
|
|
}
|