Package codechicken.lib.render.buffer
Class DelegatingVertexConsumer
java.lang.Object
codechicken.lib.render.buffer.DelegatingVertexConsumer
- All Implemented Interfaces:
ISpriteAwareVertexConsumer,com.mojang.blaze3d.vertex.VertexConsumer,net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
- Direct Known Subclasses:
AlphaOverrideVertexConsumer,TransformingVertexConsumer
A simple
VertexConsumer implementation which forwards to a delegate.
Created by covers1624 on 29/3/22.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.blaze3d.vertex.VertexConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.vertex.VertexConsumeraddVertex(float x, float y, float z) com.mojang.blaze3d.vertex.VertexConsumersetColor(int r, int g, int b, int a) com.mojang.blaze3d.vertex.VertexConsumersetNormal(float x, float y, float z) com.mojang.blaze3d.vertex.VertexConsumersetUv(float u, float v) com.mojang.blaze3d.vertex.VertexConsumersetUv1(int u, int v) com.mojang.blaze3d.vertex.VertexConsumersetUv2(int u, int v) voidsprite(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
applyBakedLighting, applyBakedNormals, misc, putBulkDataMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setOverlay, setWhiteAlpha
-
Field Details
-
delegate
protected final com.mojang.blaze3d.vertex.VertexConsumer delegate
-
-
Constructor Details
-
DelegatingVertexConsumer
public DelegatingVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate)
-
-
Method Details
-
sprite
public void sprite(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) - Specified by:
spritein interfaceISpriteAwareVertexConsumer
-
addVertex
public com.mojang.blaze3d.vertex.VertexConsumer addVertex(float x, float y, float z) - Specified by:
addVertexin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setColor
public com.mojang.blaze3d.vertex.VertexConsumer setColor(int r, int g, int b, int a) - Specified by:
setColorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv
public com.mojang.blaze3d.vertex.VertexConsumer setUv(float u, float v) - Specified by:
setUvin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv1
public com.mojang.blaze3d.vertex.VertexConsumer setUv1(int u, int v) - Specified by:
setUv1in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv2
public com.mojang.blaze3d.vertex.VertexConsumer setUv2(int u, int v) - Specified by:
setUv2in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setNormal
public com.mojang.blaze3d.vertex.VertexConsumer setNormal(float x, float y, float z) - Specified by:
setNormalin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-