aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/lorenz
diff options
context:
space:
mode:
authorhannibal00212 <hannibal00212@users.noreply.github.com>2022-07-08 06:53:50 +0000
committerGitHub Action <actions@github.com>2022-07-08 06:53:50 +0000
commit1692a86aa2bb70b7b3ec20182fdc26f381cdc3f0 (patch)
treee1d99b498acb5df450f263fd752dc69d1779df8a /src/main/java/at/lorenz
parentf255bd7048d1cc4a29423b7b538ee32416570700 (diff)
downloadskyhanni-1692a86aa2bb70b7b3ec20182fdc26f381cdc3f0.tar.gz
skyhanni-1692a86aa2bb70b7b3ec20182fdc26f381cdc3f0.tar.bz2
skyhanni-1692a86aa2bb70b7b3ec20182fdc26f381cdc3f0.zip
Prettified Code!
Diffstat (limited to 'src/main/java/at/lorenz')
-rw-r--r--src/main/java/at/lorenz/mod/mixins/MixinRenderItem.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/at/lorenz/mod/mixins/MixinRenderItem.java b/src/main/java/at/lorenz/mod/mixins/MixinRenderItem.java
index 06275b4dd..b03511271 100644
--- a/src/main/java/at/lorenz/mod/mixins/MixinRenderItem.java
+++ b/src/main/java/at/lorenz/mod/mixins/MixinRenderItem.java
@@ -12,25 +12,26 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(RenderItem.class)
public abstract class MixinRenderItem {
-// @Inject(method = "renderItemIntoGUI", at = @At("HEAD"))
-// private void renderRarity(ItemStack stack, int x, int y, CallbackInfo ci) {
-// RenderItemHookKt.renderRarity(stack, x, y, ci);
-// }
+
+ // @Inject(method = "renderItemIntoGUI", at = @At("HEAD"))
+ // private void renderRarity(ItemStack stack, int x, int y, CallbackInfo ci) {
+ // RenderItemHookKt.renderRarity(stack, x, y, ci);
+ // }
@Inject(method = "renderItemOverlayIntoGUI", at = @At("RETURN"))
private void renderItemOverlayPost(FontRenderer fr, ItemStack stack, int xPosition, int yPosition, String text, CallbackInfo ci) {
RenderItemHookKt.renderItemOverlayPost(fr, stack, xPosition, yPosition, text, ci);
}
-// @Inject(method = "renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/resources/model/IBakedModel;)V", at = @At(value = "INVOKE", target = "net/minecraft/client/renderer/GlStateManager.scale(FFF)V", shift = At.Shift.AFTER))
-// private void renderItemPre(ItemStack stack, IBakedModel model, CallbackInfo ci) {
-// RenderItemHookKt.renderItemPre(stack, model, ci);
-// }
-//
-// @Inject(method = "renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/resources/model/IBakedModel;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/entity/RenderItem;renderEffect(Lnet/minecraft/client/resources/model/IBakedModel;)V", shift = At.Shift.BEFORE), cancellable = true)
-// private void modifyGlintRendering(ItemStack stack, IBakedModel model, CallbackInfo ci) {
-// RenderItemHookKt.modifyGlintRendering(stack, model, ci);
-// }
+ // @Inject(method = "renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/resources/model/IBakedModel;)V", at = @At(value = "INVOKE", target = "net/minecraft/client/renderer/GlStateManager.scale(FFF)V", shift = At.Shift.AFTER))
+ // private void renderItemPre(ItemStack stack, IBakedModel model, CallbackInfo ci) {
+ // RenderItemHookKt.renderItemPre(stack, model, ci);
+ // }
+ //
+ // @Inject(method = "renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/resources/model/IBakedModel;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/entity/RenderItem;renderEffect(Lnet/minecraft/client/resources/model/IBakedModel;)V", shift = At.Shift.BEFORE), cancellable = true)
+ // private void modifyGlintRendering(ItemStack stack, IBakedModel model, CallbackInfo ci) {
+ // RenderItemHookKt.modifyGlintRendering(stack, model, ci);
+ // }
@Inject(method = "renderEffect", at = @At("HEAD"), cancellable = true)
public void onRenderEffect(CallbackInfo ci) {
@@ -38,5 +39,4 @@ public abstract class MixinRenderItem {
ci.cancel();
}
}
-
}