EntityRendererMixin

abstract class EntityRendererMixin : IResourceManagerReloadListener

EntityRenderer is the class which dispatches all rendering actions.

It also handles things like setting up the camera and effects. Entities are rendered in RenderGlobal.

The mixins in here are used for FreeCam, Camera, ChestEsp, QOL, InvActions.

Author

Aton

Functions

Link copied to clipboard
open fun cameraDistance(instance: Vec3, vec: Vec3): Double
Used to enable the camera to clip though walls in third person view.
Link copied to clipboard
open fun onEndWorldRender(partialTicks: Float, nanoTime: Long, ci: CallbackInfo)
Used to signal that the world rendering process is done.
Link copied to clipboard
abstract fun onResourceManagerReload(resourceManager: IResourceManager)
Link copied to clipboard
open fun onSetCameraAngle(instance: EntityPlayerSP, yaw: Float, pitch: Float)
Redirects the camera orientation to be used to only orient the camera without rotating the player characters head.
Link copied to clipboard
open fun onStartWorldRender(partialTicks: Float, nanoTime: Long, ci: CallbackInfo)
Used to signal that the world rendering process is starting.
Link copied to clipboard
open fun shouldBeBlind(instance: EntityLivingBase, potionIn: Potion): Boolean
Used to prevent the blindness effect from rendering.
Link copied to clipboard
open fun shouldMoveMouse(instance: Minecraft): Boolean
Overrides the flag which prevents the camera from moving when in a gui.
Link copied to clipboard
open fun tweakMouseOver(instance: WorldClient, entity: Entity, axisAlignedBB: AxisAlignedBB, predicate: Predicate<Entity>): List<Entity>
Ensures that the player cannot interact with their own character when in Freecam.
Link copied to clipboard
open fun tweakRenderViewEntity(instance: Minecraft): Entity
Tweak the renderViewEntity for FreeCam.
Link copied to clipboard
open fun tweakRenderViewEntity2(instance: Minecraft): Entity
Tweak the renderViewEntity for FreeCam.
Link copied to clipboard
open fun tweakRenderViewEntityMouseOver(instance: Minecraft): Entity
Adjust what the player is looking at when in Freecam.
Link copied to clipboard
open fun tweakThirdPersonDistance(instance: EntityRenderer): Float
Tweaks the third person view distance of the camera.
Link copied to clipboard
open fun tweakThirdPersonDistanceTemp(instance: EntityRenderer): Float
Tweaks the third person view distance of the camera.