Record Class RenderTypeGroup
java.lang.Object
java.lang.Record
io.github.vampirestudios.vampirelib.client.RenderTypeGroup
public record RenderTypeGroup(net.minecraft.client.renderer.RenderType block, net.minecraft.client.renderer.RenderType entity, net.minecraft.client.renderer.RenderType entityFabulous)
extends Record
A set of functionally equivalent shaders. One using
DefaultVertexFormat.BLOCK,
and the other two using DefaultVertexFormat.NEW_ENTITY.
entityFabulous may support custom render targets and other aspects of the fabulous pipeline, or can otherwise
be the same as entity.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRenderTypeGroup(net.minecraft.client.renderer.RenderType block, net.minecraft.client.renderer.RenderType entity) RenderTypeGroup(net.minecraft.client.renderer.RenderType block, net.minecraft.client.renderer.RenderType entity, net.minecraft.client.renderer.RenderType entityFabulous) Creates an instance of aRenderTypeGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.RenderTypeblock()Returns the value of theblockrecord component.net.minecraft.client.renderer.RenderTypeentity()Returns the value of theentityrecord component.net.minecraft.client.renderer.RenderTypeReturns the value of theentityFabulousrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns true if this group has render types or not. It either has all, or none.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RenderTypeGroup
public RenderTypeGroup(net.minecraft.client.renderer.RenderType block, net.minecraft.client.renderer.RenderType entity, net.minecraft.client.renderer.RenderType entityFabulous) Creates an instance of aRenderTypeGrouprecord class.- Parameters:
block- the value for theblockrecord componententity- the value for theentityrecord componententityFabulous- the value for theentityFabulousrecord component
-
RenderTypeGroup
public RenderTypeGroup(net.minecraft.client.renderer.RenderType block, net.minecraft.client.renderer.RenderType entity)
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true if this group has render types or not. It either has all, or none.- Returns:
- true if this group has render types or not. It either has all, or none
-
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). -
block
public net.minecraft.client.renderer.RenderType block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
entity
public net.minecraft.client.renderer.RenderType entity()Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
entityFabulous
public net.minecraft.client.renderer.RenderType entityFabulous()Returns the value of theentityFabulousrecord component.- Returns:
- the value of the
entityFabulousrecord component
-