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 Summary
FieldsModifier and TypeFieldDescriptionprivate final RenderTypeThe field for theblockrecord component.static RenderTypeGroupprivate final RenderTypeThe field for theentityrecord component.private final RenderTypeThe field for theentityFabulousrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRenderTypeGroup(RenderType block, RenderType entity) RenderTypeGroup(RenderType block, RenderType entity, RenderType entityFabulous) Creates an instance of aRenderTypeGrouprecord class. -
Method Summary
Modifier 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
-
block
The field for theblockrecord component. -
entity
The field for theentityrecord component. -
entityFabulous
The field for theentityFabulousrecord component. -
EMPTY
-
-
Constructor Details
-
RenderTypeGroup
Creates an instance of aRenderTypeGrouprecord class.- Parameters:
block- the value for theblockrecord componententity- the value for theentityrecord componententityFabulous- the value for theentityFabulousrecord component
-
RenderTypeGroup
-
-
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
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
entityFabulous
Returns the value of theentityFabulousrecord component.- Returns:
- the value of the
entityFabulousrecord component
-