Record Class BlockOutlineRenderState

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.BlockOutlineRenderState

public record BlockOutlineRenderState(BlockPos pos, boolean isTranslucent, boolean highContrast, VoxelShape shape, @Nullable VoxelShape collisionShape, @Nullable VoxelShape occlusionShape, @Nullable VoxelShape interactionShape, List<CustomBlockOutlineRenderer> customRenderers) extends Record
  • Field Details

    • pos

      private final BlockPos pos
      The field for the pos record component.
    • isTranslucent

      private final boolean isTranslucent
      The field for the isTranslucent record component.
    • highContrast

      private final boolean highContrast
      The field for the highContrast record component.
    • shape

      private final VoxelShape shape
      The field for the shape record component.
    • collisionShape

      @Nullable private final VoxelShape collisionShape
      The field for the collisionShape record component.
    • occlusionShape

      @Nullable private final VoxelShape occlusionShape
      The field for the occlusionShape record component.
    • interactionShape

      @Nullable private final VoxelShape interactionShape
      The field for the interactionShape record component.
    • customRenderers

      private final List<CustomBlockOutlineRenderer> customRenderers
      The field for the customRenderers record component.
  • Constructor Details

    • BlockOutlineRenderState

      @Deprecated public BlockOutlineRenderState(BlockPos pos, boolean isTranslucent, boolean highContrast, VoxelShape shape, @Nullable VoxelShape collisionShape, @Nullable VoxelShape occlusionShape, @Nullable VoxelShape interactionShape)
      Deprecated.
    • BlockOutlineRenderState

      @Deprecated public BlockOutlineRenderState(BlockPos p_451260_, boolean p_451414_, boolean p_451550_, VoxelShape p_451218_)
      Deprecated.
    • BlockOutlineRenderState

      public BlockOutlineRenderState(BlockPos p_451260_, boolean p_451414_, boolean p_451550_, VoxelShape p_451218_, List<CustomBlockOutlineRenderer> customRenderers)
    • BlockOutlineRenderState

      public BlockOutlineRenderState(BlockPos pos, boolean isTranslucent, boolean highContrast, VoxelShape shape, @Nullable VoxelShape collisionShape, @Nullable VoxelShape occlusionShape, @Nullable VoxelShape interactionShape, List<CustomBlockOutlineRenderer> customRenderers)
      Creates an instance of a BlockOutlineRenderState record class.
      Parameters:
      pos - the value for the pos record component
      isTranslucent - the value for the isTranslucent record component
      highContrast - the value for the highContrast record component
      shape - the value for the shape record component
      collisionShape - the value for the collisionShape record component
      occlusionShape - the value for the occlusionShape record component
      interactionShape - the value for the interactionShape record component
      customRenderers - the value for the customRenderers record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • pos

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • isTranslucent

      public boolean isTranslucent()
      Returns the value of the isTranslucent record component.
      Returns:
      the value of the isTranslucent record component
    • highContrast

      public boolean highContrast()
      Returns the value of the highContrast record component.
      Returns:
      the value of the highContrast record component
    • shape

      public VoxelShape shape()
      Returns the value of the shape record component.
      Returns:
      the value of the shape record component
    • collisionShape

      @Nullable public VoxelShape collisionShape()
      Returns the value of the collisionShape record component.
      Returns:
      the value of the collisionShape record component
    • occlusionShape

      @Nullable public VoxelShape occlusionShape()
      Returns the value of the occlusionShape record component.
      Returns:
      the value of the occlusionShape record component
    • interactionShape

      @Nullable public VoxelShape interactionShape()
      Returns the value of the interactionShape record component.
      Returns:
      the value of the interactionShape record component
    • customRenderers

      public List<CustomBlockOutlineRenderer> customRenderers()
      Returns the value of the customRenderers record component.
      Returns:
      the value of the customRenderers record component