Record Class FakeBufferSource

java.lang.Object
java.lang.Record
at.petrak.hexcasting.client.render.shader.FakeBufferSource
All Implemented Interfaces:
net.minecraft.client.renderer.MultiBufferSource

public record FakeBufferSource(net.minecraft.client.renderer.MultiBufferSource parent, Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> mapper) extends Record implements net.minecraft.client.renderer.MultiBufferSource
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.renderer.MultiBufferSource

    net.minecraft.client.renderer.MultiBufferSource.BufferSource
  • Constructor Summary

    Constructors
    Constructor
    Description
    FakeBufferSource(net.minecraft.client.renderer.MultiBufferSource parent, Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> mapper)
    Creates an instance of a FakeBufferSource record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull com.mojang.blaze3d.vertex.VertexConsumer
    getBuffer(@NotNull net.minecraft.client.renderer.RenderType renderType)
     
    final int
    Returns a hash code value for this object.
    Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType>
    Returns the value of the mapper record component.
    net.minecraft.client.renderer.MultiBufferSource
    Returns the value of the parent record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FakeBufferSource

      public FakeBufferSource(net.minecraft.client.renderer.MultiBufferSource parent, Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> mapper)
      Creates an instance of a FakeBufferSource record class.
      Parameters:
      parent - the value for the parent record component
      mapper - the value for the mapper record component
  • Method Details

    • getBuffer

      @NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer getBuffer(@NotNull @NotNull net.minecraft.client.renderer.RenderType renderType)
      Specified by:
      getBuffer in interface net.minecraft.client.renderer.MultiBufferSource
    • 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.
    • parent

      public net.minecraft.client.renderer.MultiBufferSource parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • mapper

      public Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> mapper()
      Returns the value of the mapper record component.
      Returns:
      the value of the mapper record component