Class CompositeStateMixin
java.lang.Object
foundry.veil.mixin.rendertype.client.CompositeStateMixin
- All Implemented Interfaces:
VeilRenderTypeAccessor
,CompositeStateExtension
public class CompositeStateMixin
extends Object
implements VeilRenderTypeAccessor, CompositeStateExtension
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.RenderStateShard.ColorLogicStateShard
net.minecraft.client.renderer.RenderStateShard.CullStateShard
net.minecraft.client.renderer.RenderStateShard.DepthTestStateShard
net.minecraft.client.renderer.RenderStateShard.LayeringStateShard
net.minecraft.client.renderer.RenderStateShard.LightmapStateShard
net.minecraft.client.renderer.RenderStateShard.LineStateShard
net.minecraft.client.renderer.RenderType.OutlineProperty
net.minecraft.client.renderer.RenderStateShard.OutputStateShard
net.minecraft.client.renderer.RenderStateShard.OverlayStateShard
net.minecraft.client.renderer.RenderStateShard.ShaderStateShard
List
<net.minecraft.client.renderer.RenderStateShard> states()
net.minecraft.client.renderer.RenderStateShard.EmptyTextureStateShard
net.minecraft.client.renderer.RenderStateShard.TexturingStateShard
net.minecraft.client.renderer.RenderStateShard.TransparencyStateShard
void
veil$addShards
(Collection<net.minecraft.client.renderer.RenderStateShard> shards) net.minecraft.client.renderer.RenderStateShard.WriteMaskStateShard
-
Constructor Details
-
CompositeStateMixin
public CompositeStateMixin()
-
-
Method Details
-
textureState
public net.minecraft.client.renderer.RenderStateShard.EmptyTextureStateShard textureState()- Specified by:
textureState
in interfaceVeilRenderTypeAccessor
- Returns:
- The Minecraft state deciding what textures should be bound
-
shaderState
public net.minecraft.client.renderer.RenderStateShard.ShaderStateShard shaderState()- Specified by:
shaderState
in interfaceVeilRenderTypeAccessor
- Returns:
- The Minecraft state deciding what
ShaderInstance
to use
-
transparencyState
public net.minecraft.client.renderer.RenderStateShard.TransparencyStateShard transparencyState()- Specified by:
transparencyState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of
GL14C.glBlendFuncSeparate(int, int, int, int)
-
depthTestState
public net.minecraft.client.renderer.RenderStateShard.DepthTestStateShard depthTestState()- Specified by:
depthTestState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of
GL11C.GL_DEPTH_TEST
-
cullState
public net.minecraft.client.renderer.RenderStateShard.CullStateShard cullState()- Specified by:
cullState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of
GL11C.glCullFace(int)
-
lightmapState
public net.minecraft.client.renderer.RenderStateShard.LightmapStateShard lightmapState()- Specified by:
lightmapState
in interfaceVeilRenderTypeAccessor
- Returns:
- The Minecraft state determining if the
LightTexture
should be enabled
-
overlayState
public net.minecraft.client.renderer.RenderStateShard.OverlayStateShard overlayState()- Specified by:
overlayState
in interfaceVeilRenderTypeAccessor
- Returns:
- The Minecraft state determining if the
OverlayTexture
should be enabled
-
layeringState
public net.minecraft.client.renderer.RenderStateShard.LayeringStateShard layeringState()- Specified by:
layeringState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of
GL11C.glPolygonOffset(float, float)
orRenderSystem.getModelViewStack()
-
outputState
public net.minecraft.client.renderer.RenderStateShard.OutputStateShard outputState()- Specified by:
outputState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of what framebuffer to write into
-
texturingState
public net.minecraft.client.renderer.RenderStateShard.TexturingStateShard texturingState()- Specified by:
texturingState
in interfaceVeilRenderTypeAccessor
- Returns:
- The Minecraft state intended to call
RenderSystem.setTextureMatrix(Matrix4f)
-
writeMaskState
public net.minecraft.client.renderer.RenderStateShard.WriteMaskStateShard writeMaskState()- Specified by:
writeMaskState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of
GL11C.glColorMask(boolean, boolean, boolean, boolean)
andGL11C.glDepthMask(boolean)
-
lineState
public net.minecraft.client.renderer.RenderStateShard.LineStateShard lineState()- Specified by:
lineState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of
GL11C.glLineWidth(float)
-
colorLogicState
public net.minecraft.client.renderer.RenderStateShard.ColorLogicStateShard colorLogicState()- Specified by:
colorLogicState
in interfaceVeilRenderTypeAccessor
- Returns:
- The state of
GL11C.glLogicOp(int)
-
outlineProperty
public net.minecraft.client.renderer.RenderType.OutlineProperty outlineProperty()- Specified by:
outlineProperty
in interfaceVeilRenderTypeAccessor
- Returns:
- The outline property state
-
states
- Specified by:
states
in interfaceVeilRenderTypeAccessor
- Returns:
- An immutable view of all states in the render type
-
veil$addShards
- Specified by:
veil$addShards
in interfaceCompositeStateExtension
-