Record Class TransientBlockRenderState.Removal
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.level.TransientBlockRenderState.Removal
- Enclosing class:
TransientBlockRenderState
public static record TransientBlockRenderState.Removal(long sectionNode, long compileTaskStartTimeNs)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thecompileTaskStartTimeNsrecord component.private final longThe field for thesectionNoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRemoval(long sectionNode, long compileTaskStartTimeNs) Creates an instance of aRemovalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecompileTaskStartTimeNsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thesectionNoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sectionNode
private final long sectionNodeThe field for thesectionNoderecord component. -
compileTaskStartTimeNs
private final long compileTaskStartTimeNsThe field for thecompileTaskStartTimeNsrecord component.
-
-
Constructor Details
-
Removal
public Removal(long sectionNode, long compileTaskStartTimeNs) Creates an instance of aRemovalrecord class.- Parameters:
sectionNode- the value for thesectionNoderecord componentcompileTaskStartTimeNs- the value for thecompileTaskStartTimeNsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
sectionNode
public long sectionNode()Returns the value of thesectionNoderecord component.- Returns:
- the value of the
sectionNoderecord component
-
compileTaskStartTimeNs
public long compileTaskStartTimeNs()Returns the value of thecompileTaskStartTimeNsrecord component.- Returns:
- the value of the
compileTaskStartTimeNsrecord component
-