Skip to content

Commit

Permalink
Remove unneeded Explicit use of Consumer in Forge and NeoForge Clients
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Dec 2, 2024
1 parent d45b09a commit a4efaa6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import net.potionstudios.biomeswevegone.world.level.block.wood.BWGWood;

import java.util.Objects;
import java.util.function.Consumer;

/**
* This class is used to initialize the Forge client side of the mod.
Expand All @@ -37,10 +36,10 @@ public class BiomesWeveGoneClientForge {
*/
public static void init(final IEventBus eventBus) {
eventBus.addListener((FMLClientSetupEvent event) -> BiomesWeveGoneClient.onInitialize());
eventBus.addListener((Consumer<EntityRenderersEvent.RegisterRenderers>) event -> BiomesWeveGoneClient.registerEntityRenderers(event::registerEntityRenderer));
eventBus.addListener((Consumer<EntityRenderersEvent.RegisterRenderers>) event -> BiomesWeveGoneClient.registerBlockEntityRenderers(event::registerBlockEntityRenderer));
eventBus.addListener((EntityRenderersEvent.RegisterRenderers event) -> BiomesWeveGoneClient.registerEntityRenderers(event::registerEntityRenderer));
eventBus.addListener((EntityRenderersEvent.RegisterRenderers event) -> BiomesWeveGoneClient.registerBlockEntityRenderers(event::registerBlockEntityRenderer));
eventBus.addListener((RegisterParticleProvidersEvent event) -> BiomesWeveGoneClient.registerParticles((type, spriteProviderFactory) -> event.registerSpriteSet(type, spriteProviderFactory::apply)));
eventBus.addListener((Consumer<EntityRenderersEvent.RegisterLayerDefinitions>) event -> BiomesWeveGoneClient.registerLayerDefinitions(event::registerLayerDefinition));
eventBus.addListener((EntityRenderersEvent.RegisterLayerDefinitions event) -> BiomesWeveGoneClient.registerLayerDefinitions(event::registerLayerDefinition));
eventBus.addListener(BiomesWeveGoneClientForge::registerColorChangingBlocks);
eventBus.addListener(BiomesWeveGoneClientForge::registerItemColorHandlers);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import net.potionstudios.biomeswevegone.world.level.block.wood.BWGWood;

import java.util.Objects;
import java.util.function.Consumer;

/**
* This class is used to initialize the Forge client side of the mod.
Expand All @@ -42,10 +41,10 @@ public class BiomesWeveGoneClientNeoForge {
*/
public BiomesWeveGoneClientNeoForge(final IEventBus eventBus) {
eventBus.addListener((FMLClientSetupEvent event) -> BiomesWeveGoneClient.onInitialize());
eventBus.addListener((Consumer<EntityRenderersEvent.RegisterRenderers>) event -> BiomesWeveGoneClient.registerEntityRenderers(event::registerEntityRenderer));
eventBus.addListener((Consumer<EntityRenderersEvent.RegisterRenderers>) event -> BiomesWeveGoneClient.registerBlockEntityRenderers(event::registerBlockEntityRenderer));
eventBus.addListener((EntityRenderersEvent.RegisterRenderers event) -> BiomesWeveGoneClient.registerEntityRenderers(event::registerEntityRenderer));
eventBus.addListener((EntityRenderersEvent.RegisterRenderers event) -> BiomesWeveGoneClient.registerBlockEntityRenderers(event::registerBlockEntityRenderer));
eventBus.addListener((RegisterParticleProvidersEvent event) -> BiomesWeveGoneClient.registerParticles((type, spriteProviderFactory) -> event.registerSpriteSet(type, spriteProviderFactory::apply)));
eventBus.addListener((Consumer<EntityRenderersEvent.RegisterLayerDefinitions>) event -> BiomesWeveGoneClient.registerLayerDefinitions(event::registerLayerDefinition));
eventBus.addListener((EntityRenderersEvent.RegisterLayerDefinitions event) -> BiomesWeveGoneClient.registerLayerDefinitions(event::registerLayerDefinition));
eventBus.addListener(BiomesWeveGoneClientNeoForge::registerColorChangingBlocks);
eventBus.addListener(BiomesWeveGoneClientNeoForge::registerItemColorHandlers);
eventBus.addListener(BiomesWeveGoneClientNeoForge::registerGUILayers);
Expand Down

0 comments on commit a4efaa6

Please sign in to comment.