mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-10 06:16:07 +01:00
49 lines
1 KiB
Java
49 lines
1 KiB
Java
|
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;
|
||
|
}
|
||
|
}
|