Skip to content

Commit

Permalink
Remove Consumer Use in Forge Client
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Dec 16, 2024
1 parent c09a532 commit 4521bb8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
import net.minecraftforge.eventbus.api.IEventBus;
import net.potionstudios.woodwevegot.client.WoodWeveGotClient;

import java.util.function.Consumer;

@OnlyIn(Dist.CLIENT)
public class WoodWeveGotClientForge {

/**
* Initializes the client side of the Forge mod.
* @param eventBus The event bus to register the client side of the mod to.
*/
public static void init(IEventBus eventBus) {
eventBus.addListener((Consumer<EntityRenderersEvent.RegisterRenderers>) event -> WoodWeveGotClient.registerBlockEntityRenderers(event::registerBlockEntityRenderer));
public static void init(final IEventBus eventBus) {
eventBus.addListener((EntityRenderersEvent.RegisterRenderers event) -> WoodWeveGotClient.registerBlockEntityRenderers(event::registerBlockEntityRenderer));
}
}

0 comments on commit 4521bb8

Please sign in to comment.