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 containing pos, since that is what FluidRenderer emits 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

    Constructors
    Constructor
    Description
    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 a Submit record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.state.BlockState
    Returns the value of the blockState record component.
    float
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraft.client.renderer.feature.FeatureRendererType<FluidModelFeatureRenderer.Submit>
     
    net.minecraft.world.level.material.FluidState
    Returns the value of the fluidState record component.
    final int
    Returns a hash code value for this object.
    net.minecraft.client.renderer.block.BlockAndTintGetter
    Returns the value of the level record component.
    net.minecraft.core.BlockPos
    pos()
    Returns the value of the pos record component.
    com.mojang.blaze3d.vertex.PoseStack.Pose
    Returns the value of the pose record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Submit record class.
      Parameters:
      level - the value for the level record component
      pos - the value for the pos record component
      pose - the value for the pose record component
      blockState - the value for the blockState record component
      fluidState - the value for the fluidState record component
  • Method Details

    • distanceToCameraSq

      public float distanceToCameraSq()
      Specified by:
      distanceToCameraSq in interface net.minecraft.client.renderer.feature.submit.TranslucentSubmit
    • featureType

      public net.minecraft.client.renderer.feature.FeatureRendererType<FluidModelFeatureRenderer.Submit> featureType()
      Specified by:
      featureType in interface net.minecraft.client.renderer.feature.submit.SubmitNode
      Specified by:
      featureType in interface net.minecraft.client.renderer.feature.submit.TranslucentSubmit
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • level

      public net.minecraft.client.renderer.block.BlockAndTintGetter level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • pos

      public net.minecraft.core.BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • pose

      public com.mojang.blaze3d.vertex.PoseStack.Pose pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • blockState

      public net.minecraft.world.level.block.state.BlockState blockState()
      Returns the value of the blockState record component.
      Returns:
      the value of the blockState record component
    • fluidState

      public net.minecraft.world.level.material.FluidState fluidState()
      Returns the value of the fluidState record component.
      Returns:
      the value of the fluidState record component