generated from neoforged/MDK
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6cc206
commit b53475e
Showing
12 changed files
with
127 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
All rights reservered | ||
Copyright 2024 @ Leclowndu |
This file was deleted.
Oops, something went wrong.
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
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
32 changes: 32 additions & 0 deletions
32
src/main/java/com/leclowndu93150/modular_angelring/events/AngelRingModEvents.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,32 @@ | ||
package com.leclowndu93150.modular_angelring.events; | ||
|
||
import com.leclowndu93150.modular_angelring.AngelRingMain; | ||
import com.leclowndu93150.modular_angelring.render.AngelRingRendererLeft; | ||
import com.leclowndu93150.modular_angelring.render.AngelRingRendererRight; | ||
import net.minecraft.client.renderer.entity.EntityRenderer; | ||
import net.minecraft.client.renderer.entity.player.PlayerRenderer; | ||
import net.minecraft.client.resources.PlayerSkin; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.bus.api.SubscribeEvent; | ||
import net.neoforged.fml.common.EventBusSubscriber; | ||
import net.neoforged.neoforge.client.event.EntityRenderersEvent; | ||
|
||
@EventBusSubscriber(modid = AngelRingMain.MODID, bus = EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) | ||
public class AngelRingModEvents { | ||
|
||
@SubscribeEvent | ||
public static void registerEntityLayers(EntityRenderersEvent.AddLayers event) { | ||
EntityRenderer<? extends Player> def = event.getSkin(PlayerSkin.Model.WIDE); | ||
EntityRenderer<? extends Player> slim = event.getSkin(PlayerSkin.Model.SLIM); | ||
|
||
if (def instanceof PlayerRenderer playerRendererA) { | ||
playerRendererA.addLayer(new AngelRingRendererLeft(playerRendererA)); | ||
playerRendererA.addLayer(new AngelRingRendererRight(playerRendererA)); | ||
} | ||
if (slim instanceof PlayerRenderer playerRendererB) { | ||
playerRendererB.addLayer(new AngelRingRendererLeft(playerRendererB)); | ||
playerRendererB.addLayer(new AngelRingRendererRight(playerRendererB)); | ||
} | ||
} | ||
} |
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
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
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
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/modular_angelring/models/item/angel_wings_left.json
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,7 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "modular_angelring:item/angel_wings_left" | ||
} | ||
} | ||
|
7 changes: 7 additions & 0 deletions
7
src/main/resources/assets/modular_angelring/models/item/angel_wings_right.json
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,7 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "modular_angelring:item/angel_wings_right" | ||
} | ||
} | ||
|
Binary file added
BIN
+242 Bytes
src/main/resources/assets/modular_angelring/textures/item/angel_wings_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+207 Bytes
src/main/resources/assets/modular_angelring/textures/item/angel_wings_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.