File tree Expand file tree Collapse file tree
src/main/java/org/cyclops/evilcraft/block Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .cyclops .evilcraft .block ;
22
33import net .minecraft .client .color .block .BlockTintSources ;
4- import net .neoforged .neoforge .client .event .RegisterColorHandlersEvent ;
54import org .cyclops .cyclopscore .config .extendedconfig .BlockClientConfig ;
65import org .cyclops .cyclopscore .config .extendedconfig .BlockConfigCommon ;
76import org .cyclops .cyclopscore .init .IModBase ;
87
9- import java .util .List ;
10-
118/**
129 * @author rubensworks
1310 */
1411public class BlockUndeadLeavesConfigClient extends BlockClientConfig <IModBase > {
1512
13+ // Dominant Undead Leaves texture color (#2E0F0F = R46 G15 B15), encoded as ARGB 0xFF2E0F0F.
1614 private static final int UNDEAD_LEAVES_COLOR = -13758705 ;
1715
1816 public BlockUndeadLeavesConfigClient (BlockConfigCommon <IModBase > blockConfig ) {
1917 super (blockConfig );
20- blockConfig .getMod ().getModEventBus ().addListener (this ::onRegisterColors );
2118 }
2219
23- public void onRegisterColors (RegisterColorHandlersEvent .BlockTintSources event ) {
24- event .register (List .of (BlockTintSources .constant (UNDEAD_LEAVES_COLOR )), getBlockConfig ().getInstance ());
20+ @ Override
21+ public net .minecraft .client .color .block .BlockTintSource getBlockColorHandler () {
22+ return BlockTintSources .constant (UNDEAD_LEAVES_COLOR );
2523 }
2624}
You can’t perform that action at this time.
0 commit comments