Flywheel/src/main/java/com/jozufozu/flywheel/event/RenderLayerEvent.java

49 lines
1 KiB
Java
Raw Normal View History

2021-06-05 00:56:46 +02:00
package com.jozufozu.flywheel.event;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.util.math.vector.Matrix4f;
import net.minecraftforge.eventbus.api.Event;
public class RenderLayerEvent extends Event {
private final ClientWorld world;
public final RenderType type;
public final Matrix4f viewProjection;
public final double camX;
public final double camY;
public final double camZ;
public RenderLayerEvent(ClientWorld world, RenderType type, Matrix4f viewProjection, double camX, double camY, double camZ) {
this.world = world;
this.type = type;
this.viewProjection = viewProjection;
this.camX = camX;
this.camY = camY;
this.camZ = camZ;
}
public ClientWorld getWorld() {
return world;
}
public RenderType getType() {
return type;
}
public Matrix4f getViewProjection() {
return viewProjection;
}
public double getCamX() {
return camX;
}
public double getCamY() {
return camY;
}
public double getCamZ() {
return camZ;
}
}