Record Class TransientBlockAllocator.Allocation<T>
java.lang.Object
java.lang.Record
com.mojang.blaze3d.util.TransientBlockAllocator.Allocation<T>
- Enclosing class:
TransientBlockAllocator<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAllocation(T block, long offset, long size) Creates an instance of aAllocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longoffset()Returns the value of theoffsetrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
block
The field for theblockrecord component. -
offset
private final long offsetThe field for theoffsetrecord component. -
size
private final long sizeThe field for thesizerecord component.
-
-
Constructor Details
-
Allocation
Creates an instance of aAllocationrecord class.- Parameters:
block- the value for theblockrecord componentoffset- the value for theoffsetrecord componentsize- the value for thesizerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-