Record Class SceneMeshFeatureRenderer.Submit
java.lang.Object
java.lang.Record
guideme.scene.SceneMeshFeatureRenderer.Submit
- Record Components:
pose- Transforms from level coordinates, which the geometry was recorded in.sortPos- The block that translucent geometry is sorted by.layers- The recorded geometry, by chunk layer.
- All Implemented Interfaces:
net.minecraft.client.renderer.feature.submit.SubmitNode, net.minecraft.client.renderer.feature.submit.TranslucentSubmit
- Enclosing class:
SceneMeshFeatureRenderer
public static record SceneMeshFeatureRenderer.Submit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.core.BlockPos sortPos, List<SceneMeshFeatureRenderer.Layer> layers)
extends Record
implements net.minecraft.client.renderer.feature.submit.TranslucentSubmit
-
Constructor Summary
ConstructorsConstructorDescriptionSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.core.BlockPos sortPos, List<SceneMeshFeatureRenderer.Layer> layers) Creates an instance of aSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.renderer.feature.FeatureRendererType<SceneMeshFeatureRenderer.Submit> final inthashCode()Returns a hash code value for this object.layers()Returns the value of thelayersrecord component.com.mojang.blaze3d.vertex.PoseStack.Posepose()Returns the value of theposerecord component.net.minecraft.core.BlockPossortPos()Returns the value of thesortPosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Submit
public Submit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.core.BlockPos sortPos, List<SceneMeshFeatureRenderer.Layer> layers) Creates an instance of aSubmitrecord class.
-
-
Method Details
-
distanceToCameraSq
public float distanceToCameraSq()- Specified by:
distanceToCameraSqin interfacenet.minecraft.client.renderer.feature.submit.TranslucentSubmit
-
featureType
public net.minecraft.client.renderer.feature.FeatureRendererType<SceneMeshFeatureRenderer.Submit> 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. All components in this record class are compared withObjects::equals(Object,Object). -
pose
-
sortPos
-
layers
-