Package net.minecraftforge.client
Record Class RenderTypeGroup
java.lang.Object
java.lang.Record
net.minecraftforge.client.RenderTypeGroup
public record RenderTypeGroup(RenderType block, RenderType entity, 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 SummaryFieldsModifier and TypeFieldDescriptionprivate final RenderTypeThe field for theblockrecord component.static RenderTypeGroupprivate final RenderTypeThe field for theentityrecord component.private final RenderTypeThe field for theentityFabulousrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionRenderTypeGroup(RenderType block, RenderType entity) RenderTypeGroup(RenderType block, RenderType entity, RenderType entityFabulous) Creates an instance of aRenderTypeGrouprecord class.
- 
Method SummaryModifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.entity()Returns the value of theentityrecord component.Returns 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- 
blockThe field for theblockrecord component.
- 
entityThe field for theentityrecord component.
- 
entityFabulousThe field for theentityFabulousrecord component.
- 
EMPTY
 
- 
- 
Constructor Details- 
RenderTypeGroupCreates an instance of aRenderTypeGrouprecord class.- Parameters:
- block- the value for the- blockrecord component
- entity- the value for the- entityrecord component
- entityFabulous- the value for the- entityFabulousrecord component
 
- 
RenderTypeGroup
 
- 
- 
Method Details- 
isEmptypublic 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
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
blockReturns the value of theblockrecord component.- Returns:
- the value of the blockrecord component
 
- 
entityReturns the value of theentityrecord component.- Returns:
- the value of the entityrecord component
 
- 
entityFabulousReturns the value of theentityFabulousrecord component.- Returns:
- the value of the entityFabulousrecord component
 
 
-