generated from NeoForgeMDKs/MDK-1.21-NeoGradle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more work on drill and sword proof of concept
- Loading branch information
1 parent
4c8038a
commit 8df6179
Showing
27 changed files
with
986 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/com/leclowndu93150/carbort/CarbortClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.leclowndu93150.carbort; | ||
|
||
import com.leclowndu93150.carbort.client.renderer.blockentities.BedrockDrillBER; | ||
import com.leclowndu93150.carbort.registries.CBBlockEntities; | ||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.fml.common.Mod; | ||
import net.neoforged.neoforge.client.event.EntityRenderersEvent; | ||
|
||
@Mod(value = CarbortClient.MODID, dist = Dist.CLIENT) | ||
public class CarbortClient { | ||
public static final String MODID = "carbort"; | ||
|
||
public CarbortClient(IEventBus modEventBus) { | ||
modEventBus.addListener(this::registerBERs); | ||
} | ||
|
||
private void registerBERs(EntityRenderersEvent.RegisterRenderers event) { | ||
event.registerBlockEntityRenderer(CBBlockEntities.BEDROCK_DRILL.get(), BedrockDrillBER::new); | ||
} | ||
} |
Oops, something went wrong.