aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/lodmod
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/lodmod')
-rw-r--r--src/main/java/makamys/lodmod/mixin/MixinEntityRenderer.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/mixin/MixinEntityRenderer.java b/src/main/java/makamys/lodmod/mixin/MixinEntityRenderer.java
new file mode 100644
index 0000000..16ea13c
--- /dev/null
+++ b/src/main/java/makamys/lodmod/mixin/MixinEntityRenderer.java
@@ -0,0 +1,23 @@
+package makamys.lodmod.mixin;
+
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.Shadow;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
+
+import net.minecraft.client.renderer.EntityRenderer;
+
+@Mixin(EntityRenderer.class)
+abstract class MixinEntityRenderer {
+
+ @Shadow
+ private float farPlaneDistance;
+
+ @Inject(method = "setupCameraTransform", at = @At(value = "FIELD", target = "Lnet/minecraft/client/settings/GameSettings;renderDistanceChunks:I", shift = At.Shift.AFTER))
+ private void onConstructed(CallbackInfo ci) {
+ System.out.println("it's " + farPlaneDistance);
+ }
+
+
+}