Record Class FakeBufferSource
java.lang.Object
java.lang.Record
at.petrak.hexcasting.client.render.shader.FakeBufferSource
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionFakeBufferSource(net.minecraft.client.renderer.MultiBufferSource parent, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.renderer.RenderType> mapper) Creates an instance of aFakeBufferSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull com.mojang.blaze3d.vertex.VertexConsumergetBuffer(@NotNull net.minecraft.client.renderer.RenderType renderType) final inthashCode()Returns a hash code value for this object.Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> mapper()Returns the value of themapperrecord component.net.minecraft.client.renderer.MultiBufferSourceparent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aFakeBufferSourcerecord class.- Parameters:
parent- the value for theparentrecord componentmapper- the value for themapperrecord component
-
-
Method Details
-
getBuffer
@NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer getBuffer(@NotNull @NotNull net.minecraft.client.renderer.RenderType renderType) - Specified by:
getBufferin interfacenet.minecraft.client.renderer.MultiBufferSource
-
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. -
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. -
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). -
parent
public net.minecraft.client.renderer.MultiBufferSource parent()Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
mapper
public Function<net.minecraft.resources.ResourceLocation,net.minecraft.client.renderer.RenderType> mapper()Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-