-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor re-write of code part 2! + Old Item Positions!
- Loading branch information
Showing
16 changed files
with
482 additions
and
65 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
41 changes: 41 additions & 0 deletions
41
src/main/java/com/mixces/legacyanimations/hook/GlintModelHook.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,41 @@ | ||
package com.mixces.legacyanimations.hook; | ||
|
||
import com.mixces.legacyanimations.mixin.interfaces.BasicBakedModelInterface; | ||
import net.minecraft.client.render.model.BakedModel; | ||
import net.minecraft.client.render.model.BasicBakedModel; | ||
import net.minecraft.client.texture.Sprite; | ||
|
||
public class GlintModelHook | ||
{ | ||
|
||
//todo: hijack model with custom sprite :/ | ||
// public static BakedModel getGlint(BakedModel model) | ||
// { | ||
// return (BakedModel) BasicBakedModelInterface.Builder(model.useAmbientOcclusion(), model.isSideLit(), model.hasDepth(), model.getTransformation(), model.getOverrides()); | ||
// } | ||
// | ||
// public static class JustUV extends Sprite | ||
// { | ||
// | ||
// public static final JustUV INSTANCE = new JustUV(); | ||
// | ||
// protected JustUV() | ||
// { | ||
// super(null, null, 1, 1, 1, 1); | ||
// } | ||
// | ||
// @Override | ||
// public float getFrameU(float frame) | ||
// { | ||
// return -frame / 16; | ||
// } | ||
// | ||
// @Override | ||
// public float getFrameV(float frame) | ||
// { | ||
// return frame / 16; | ||
// } | ||
// | ||
// } | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/mixces/legacyanimations/hook/TransformHook.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,15 @@ | ||
package com.mixces.legacyanimations.hook; | ||
|
||
public class TransformHook { | ||
|
||
public static Float translationX = 0.0F; | ||
public static Float translationY = 0.0F; | ||
public static Float translationZ = 0.0F; | ||
public static Float rotationX = 0.0F; | ||
public static Float rotationY = 0.0F; | ||
public static Float rotationZ = 0.0F; | ||
// public static Float scalingX; | ||
// public static Float scalingY; | ||
// public static Float scalingZ; | ||
|
||
} |
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
19 changes: 19 additions & 0 deletions
19
src/main/java/com/mixces/legacyanimations/mixin/RenderPhaseMixin.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,19 @@ | ||
package com.mixces.legacyanimations.mixin; | ||
|
||
import net.minecraft.client.render.RenderPhase; | ||
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.CallbackInfo; | ||
|
||
@Mixin(RenderPhase.class) | ||
public class RenderPhaseMixin | ||
{ | ||
|
||
@Inject(method = "setupGlintTexturing", at = @At(value = "HEAD")) | ||
private static void legacyAnimations$injectGlint(float scale, CallbackInfo ci) | ||
{ | ||
// System.out.println("glint rendering"); | ||
} | ||
|
||
} |
Oops, something went wrong.