记录类 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
.-
字段概要
字段修饰符和类型字段说明private final RenderType
block
记录组件的字段。static final RenderTypeGroup
private final RenderType
entity
记录组件的字段。private final RenderType
entityFabulous
记录组件的字段。 -
构造器概要
构造器构造器说明RenderTypeGroup
(RenderType block, RenderType entity) RenderTypeGroup
(RenderType block, RenderType entity, RenderType entityFabulous) 创建RenderTypeGroup
记录类的实例。 -
方法概要
-
字段详细资料
-
block
block
记录组件的字段。 -
entity
entity
记录组件的字段。 -
entityFabulous
entityFabulous
记录组件的字段。 -
EMPTY
-
-
构造器详细资料
-
RenderTypeGroup
创建RenderTypeGroup
记录类的实例。- 参数:
block
-block
记录组件的值entity
-entity
记录组件的值entityFabulous
-entityFabulous
记录组件的值
-
RenderTypeGroup
-
-
方法详细资料
-
isEmpty
public boolean isEmpty()返回 true if this group has render types or not. It either has all, or none。- 返回:
- true if this group has render types or not. It either has all, or none
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
block
返回block
记录组件的值。- 返回:
block
记录组件的值
-
entity
返回entity
记录组件的值。- 返回:
entity
记录组件的值
-
entityFabulous
返回entityFabulous
记录组件的值。- 返回:
entityFabulous
记录组件的值
-