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
Modifier and TypeFieldDescriptionprivate final RenderType
The field for theblock
record component.static RenderTypeGroup
private final RenderType
The field for theentity
record component.private final RenderType
The field for theentityFabulous
record component. -
Constructor Summary
ConstructorDescriptionRenderTypeGroup
(RenderType block, RenderType entity) RenderTypeGroup
(RenderType block, RenderType entity, RenderType entityFabulous) Creates an instance of aRenderTypeGroup
record class. -
Method Summary
Modifier and TypeMethodDescriptionblock()
Returns the value of theblock
record component.entity()
Returns the value of theentity
record component.Returns the value of theentityFabulous
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isEmpty()
Returns true if this group has render types or not. It either has all, or none.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
block
The field for theblock
record component. -
entity
The field for theentity
record component. -
entityFabulous
The field for theentityFabulous
record component. -
EMPTY
-
-
Constructor Details
-
RenderTypeGroup
Creates an instance of aRenderTypeGroup
record class.- Parameters:
block
- the value for theblock
record componententity
- the value for theentity
record componententityFabulous
- the value for theentityFabulous
record 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 theblock
record component.- Returns:
- the value of the
block
record component
-
entity
Returns the value of theentity
record component.- Returns:
- the value of the
entity
record component
-
entityFabulous
Returns the value of theentityFabulous
record component.- Returns:
- the value of the
entityFabulous
record component
-