Record Class ExtendedBlockModelSubmit
java.lang.Object
java.lang.Record
net.fabricmc.fabric.api.client.renderer.v1.render.submit.ExtendedBlockModelSubmit
- All Implemented Interfaces:
net.minecraft.client.renderer.feature.submit.SubmitNode, net.minecraft.client.renderer.feature.submit.TranslucentSubmit
public record ExtendedBlockModelSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> modelParts, @Nullable Mesh mesh, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose)
extends Record
implements net.minecraft.client.renderer.feature.submit.TranslucentSubmit
An alternative to
BlockModelFeatureRenderer.Submit that optionally accepts a Mesh.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.client.renderer.feature.FeatureRendererType<ExtendedBlockModelSubmit> -
Constructor Summary
ConstructorsConstructorDescriptionExtendedBlockModelSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> modelParts, @Nullable Mesh mesh, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose) Creates an instance of aExtendedBlockModelSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.renderer.feature.FeatureRendererType<? extends net.minecraft.client.renderer.feature.submit.TranslucentSubmit> final inthashCode()Returns a hash code value for this object.intReturns the value of thelightCoordsrecord component.@Nullable Meshmesh()Returns the value of themeshrecord component.List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> Returns the value of themodelPartsrecord component.intReturns the value of theoverlayCoordsrecord component.com.mojang.blaze3d.vertex.PoseStack.Posepose()Returns the value of theposerecord component.Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> Returns the value of therenderTypeFunctionrecord component.@Nullable com.mojang.blaze3d.vertex.PoseStack.PoseReturns the value of thesheetedDecalPoserecord component.intReturns the value of thetintColorrecord component.int[]Returns the value of thetintLayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
public static final net.minecraft.client.renderer.feature.FeatureRendererType<ExtendedBlockModelSubmit> TYPE
-
-
Constructor Details
-
ExtendedBlockModelSubmit
public ExtendedBlockModelSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> modelParts, @Nullable Mesh mesh, int[] tintLayers, int lightCoords, int overlayCoords, int tintColor, @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose) Creates an instance of aExtendedBlockModelSubmitrecord class.- Parameters:
pose- the value for theposerecord componentrenderTypeFunction- the value for therenderTypeFunctionrecord componentmodelParts- the value for themodelPartsrecord componentmesh- the value for themeshrecord componenttintLayers- the value for thetintLayersrecord componentlightCoords- the value for thelightCoordsrecord componentoverlayCoords- the value for theoverlayCoordsrecord componenttintColor- the value for thetintColorrecord componentsheetedDecalPose- the value for thesheetedDecalPoserecord component
-
-
Method Details
-
distanceToCameraSq
public float distanceToCameraSq()- Specified by:
distanceToCameraSqin interfacenet.minecraft.client.renderer.feature.submit.TranslucentSubmit
-
featureType
public net.minecraft.client.renderer.feature.FeatureRendererType<? extends net.minecraft.client.renderer.feature.submit.TranslucentSubmit> featureType()- Specified by:
featureTypein interfacenet.minecraft.client.renderer.feature.submit.SubmitNode- Specified by:
featureTypein interfacenet.minecraft.client.renderer.feature.submit.TranslucentSubmit
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
pose
public com.mojang.blaze3d.vertex.PoseStack.Pose pose()Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
renderTypeFunction
public Function<net.minecraft.client.renderer.chunk.ChunkSectionLayer, @Nullable net.minecraft.client.renderer.rendertype.RenderType> renderTypeFunction()Returns the value of therenderTypeFunctionrecord component.- Returns:
- the value of the
renderTypeFunctionrecord component
-
modelParts
Returns the value of themodelPartsrecord component.- Returns:
- the value of the
modelPartsrecord component
-
mesh
Returns the value of themeshrecord component.- Returns:
- the value of the
meshrecord component
-
tintLayers
public int[] tintLayers()Returns the value of thetintLayersrecord component.- Returns:
- the value of the
tintLayersrecord component
-
lightCoords
public int lightCoords()Returns the value of thelightCoordsrecord component.- Returns:
- the value of the
lightCoordsrecord component
-
overlayCoords
public int overlayCoords()Returns the value of theoverlayCoordsrecord component.- Returns:
- the value of the
overlayCoordsrecord component
-
tintColor
public int tintColor()Returns the value of thetintColorrecord component.- Returns:
- the value of the
tintColorrecord component
-
sheetedDecalPose
public @Nullable com.mojang.blaze3d.vertex.PoseStack.Pose sheetedDecalPose()Returns the value of thesheetedDecalPoserecord component.- Returns:
- the value of the
sheetedDecalPoserecord component
-