Record Class FluidModelFeatureRenderer.Submit
java.lang.Object
java.lang.Record
guideme.scene.FluidModelFeatureRenderer.Submit
- Record Components:
pose- Transforms from the origin of the chunk section containingpos, since that is whatFluidRendereremits vertices relative to.
- All Implemented Interfaces:
net.minecraft.client.renderer.feature.submit.SubmitNode, net.minecraft.client.renderer.feature.submit.TranslucentSubmit
- Enclosing class:
FluidModelFeatureRenderer
public static record FluidModelFeatureRenderer.Submit(net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.material.FluidState fluidState)
extends Record
implements net.minecraft.client.renderer.feature.submit.TranslucentSubmit
-
Constructor Summary
ConstructorsConstructorDescriptionSubmit(net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.material.FluidState fluidState) Creates an instance of aSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStateReturns the value of theblockStaterecord component.floatfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.renderer.feature.FeatureRendererType<FluidModelFeatureRenderer.Submit> net.minecraft.world.level.material.FluidStateReturns the value of thefluidStaterecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.block.BlockAndTintGetterlevel()Returns the value of thelevelrecord component.net.minecraft.core.BlockPospos()Returns the value of theposrecord component.com.mojang.blaze3d.vertex.PoseStack.Posepose()Returns the value of theposerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Submit
public Submit(net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.material.FluidState fluidState) Creates an instance of aSubmitrecord class.- Parameters:
level- the value for thelevelrecord componentpos- the value for theposrecord componentpose- the value for theposerecord componentblockState- the value for theblockStaterecord componentfluidState- the value for thefluidStaterecord 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<FluidModelFeatureRenderer.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). -
level
public net.minecraft.client.renderer.block.BlockAndTintGetter level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
pos
public net.minecraft.core.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
pose
-
blockState
public net.minecraft.world.level.block.state.BlockState blockState()Returns the value of theblockStaterecord component.- Returns:
- the value of the
blockStaterecord component
-
fluidState
public net.minecraft.world.level.material.FluidState fluidState()Returns the value of thefluidStaterecord component.- Returns:
- the value of the
fluidStaterecord component
-