2016-06-23 03:49:47 +00:00
|
|
|
/*
|
|
|
|
* Minecraft Forge
|
2020-07-02 17:49:11 +00:00
|
|
|
* Copyright (c) 2016-2020.
|
2016-06-23 03:49:47 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2012-08-07 08:24:06 +00:00
|
|
|
package net.minecraftforge.client.event;
|
|
|
|
|
2019-12-11 02:27:07 +00:00
|
|
|
import com.mojang.blaze3d.matrix.MatrixStack;
|
|
|
|
|
2019-02-14 23:08:53 +00:00
|
|
|
import net.minecraft.client.renderer.WorldRenderer;
|
2020-06-19 14:58:45 +00:00
|
|
|
import net.minecraft.util.math.vector.Matrix4f;
|
2012-08-07 08:24:06 +00:00
|
|
|
|
2018-06-11 01:12:46 +00:00
|
|
|
public class RenderWorldLastEvent extends net.minecraftforge.eventbus.api.Event
|
2012-08-07 08:24:06 +00:00
|
|
|
{
|
2019-02-14 23:08:53 +00:00
|
|
|
private final WorldRenderer context;
|
2019-12-11 02:27:07 +00:00
|
|
|
private final MatrixStack mat;
|
2016-03-24 08:44:52 +00:00
|
|
|
private final float partialTicks;
|
2020-03-11 07:00:21 +00:00
|
|
|
private final Matrix4f projectionMatrix;
|
|
|
|
private final long finishTimeNano;
|
|
|
|
|
|
|
|
public RenderWorldLastEvent(WorldRenderer context, MatrixStack mat, float partialTicks, Matrix4f projectionMatrix, long finishTimeNano)
|
|
|
|
{
|
|
|
|
this.context = context;
|
|
|
|
this.mat = mat;
|
|
|
|
this.partialTicks = partialTicks;
|
|
|
|
this.projectionMatrix = projectionMatrix;
|
|
|
|
this.finishTimeNano = finishTimeNano;
|
2012-08-07 08:24:06 +00:00
|
|
|
}
|
2016-03-24 08:44:52 +00:00
|
|
|
|
2019-02-14 23:08:53 +00:00
|
|
|
public WorldRenderer getContext()
|
2016-03-24 08:44:52 +00:00
|
|
|
{
|
|
|
|
return context;
|
|
|
|
}
|
|
|
|
|
2019-12-11 02:27:07 +00:00
|
|
|
public MatrixStack getMatrixStack()
|
|
|
|
{
|
|
|
|
return mat;
|
|
|
|
}
|
|
|
|
|
2016-03-24 08:44:52 +00:00
|
|
|
public float getPartialTicks()
|
|
|
|
{
|
|
|
|
return partialTicks;
|
|
|
|
}
|
2020-03-11 07:00:21 +00:00
|
|
|
|
|
|
|
public Matrix4f getProjectionMatrix()
|
|
|
|
{
|
|
|
|
return projectionMatrix;
|
|
|
|
}
|
|
|
|
|
|
|
|
public long getFinishTimeNano()
|
|
|
|
{
|
|
|
|
return finishTimeNano;
|
|
|
|
}
|
2012-08-07 08:24:06 +00:00
|
|
|
}
|