Class NecromancerRenderDispatcher.Batched
java.lang.Object
foundry.veil.impl.client.necromancer.render.NecromancerRenderDispatcher.Batched
- All Implemented Interfaces:
NecromancerRenderer
,net.minecraft.client.renderer.MultiBufferSource
- Enclosing class:
NecromancerRenderDispatcher
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.renderer.MultiBufferSource
net.minecraft.client.renderer.MultiBufferSource.BufferSource
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
draw
(net.minecraft.client.renderer.RenderType renderType, Skeleton skeleton, Skin skin, float partialTicks) Queues the specified skeleton with the specified skin to be rendered.void
end()
com.mojang.blaze3d.vertex.VertexConsumer
getBuffer
(net.minecraft.client.renderer.RenderType renderType) void
reset()
Fully resets the renderer state to default.void
setColor
(float r, float g, float b, float a) void
setColor
(int color) void
setTransform
(org.joml.Matrix4fc transform) void
setUv1
(int u, int v) void
setUv2
(int u, int v) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.client.necromancer.render.NecromancerRenderer
setLight, setOverlay
-
Field Details
-
overlay
protected int overlay -
light
protected int light -
r
protected int r -
g
protected int g -
b
protected int b -
a
protected int a -
transform
protected final org.joml.Matrix4f transform
-
-
Constructor Details
-
Batched
public Batched()
-
-
Method Details
-
draw
public void draw(net.minecraft.client.renderer.RenderType renderType, Skeleton skeleton, Skin skin, float partialTicks) Description copied from interface:NecromancerRenderer
Queues the specified skeleton with the specified skin to be rendered.- Parameters:
skeleton
- The skeleton to draw the skin withskin
- The skin to draw
-
getBuffer
public com.mojang.blaze3d.vertex.VertexConsumer getBuffer(net.minecraft.client.renderer.RenderType renderType) -
begin
public void begin() -
end
public void end() -
setUv1
public void setUv1(int u, int v) - Specified by:
setUv1
in interfaceNecromancerRenderer
-
setUv2
public void setUv2(int u, int v) - Specified by:
setUv2
in interfaceNecromancerRenderer
-
setColor
public void setColor(float r, float g, float b, float a) - Specified by:
setColor
in interfaceNecromancerRenderer
-
setColor
public void setColor(int color) - Specified by:
setColor
in interfaceNecromancerRenderer
-
reset
public void reset()Description copied from interface:NecromancerRenderer
Fully resets the renderer state to default.- Specified by:
reset
in interfaceNecromancerRenderer
-
setTransform
public void setTransform(org.joml.Matrix4fc transform) - Specified by:
setTransform
in interfaceNecromancerRenderer
-