blob: a183a0caa8d562f5af4e799d000d85cd337370d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package at.hannibal2.skyhanni.mixinhooks
import at.hannibal2.skyhanni.events.CheckRenderEntityEvent
import net.minecraft.client.renderer.culling.ICamera
import net.minecraft.entity.Entity
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable
fun shouldRender(
entityIn: Entity,
camera: ICamera,
camX: Double,
camY: Double,
camZ: Double,
cir: CallbackInfoReturnable<Boolean>
) {
if (
CheckRenderEntityEvent(
entityIn,
camera,
camX,
camY,
camZ
).postAndCatch()
) cir.returnValue = false
}
|