generated from W-OVERFLOW/MixinModTemplate
-
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.
- Loading branch information
Showing
19 changed files
with
586 additions
and
265 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
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
36 changes: 0 additions & 36 deletions
36
src/main/java/org/polyfrost/glintcolorizer/GlintColorizer.java
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/java/org/polyfrost/glintcolorizer/RenderItemHook.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/main/java/org/polyfrost/glintcolorizer/command/GlintCommand.java
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
src/main/java/org/polyfrost/glintcolorizer/config/GlintConfig.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
src/main/java/org/polyfrost/glintcolorizer/mixin/ForgeHooksClientMixin.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,25 @@ | ||
package org.polyfrost.glintcolorizer.mixin; | ||
|
||
import org.polyfrost.glintcolorizer.hook.RenderItemHook; | ||
import net.minecraft.client.renderer.block.model.ItemCameraTransforms; | ||
import net.minecraft.client.resources.model.IBakedModel; | ||
import net.minecraftforge.client.ForgeHooksClient; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
@Mixin(value = ForgeHooksClient.class, remap = false) | ||
public class ForgeHooksClientMixin { | ||
|
||
@Inject( | ||
method = "handleCameraTransforms", | ||
at = @At( | ||
value = "HEAD" | ||
) | ||
) | ||
private static void glintColorizer$setCameraTransform(IBakedModel model, ItemCameraTransforms.TransformType cameraTransformType, CallbackInfoReturnable<IBakedModel> cir) { | ||
RenderItemHook.INSTANCE.setTransformType(cameraTransformType); | ||
} | ||
|
||
} |
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
33 changes: 0 additions & 33 deletions
33
src/main/java/org/polyfrost/glintcolorizer/mixin/OverflowGlintHandlerMixin.java
This file was deleted.
Oops, something went wrong.
96 changes: 0 additions & 96 deletions
96
src/main/java/org/polyfrost/glintcolorizer/mixin/RenderItemMixin.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.