Record Class SectionMeshCache.SectionMesh
java.lang.Object
java.lang.Record
net.lugo.overlaylib.SectionMeshCache.SectionMesh
- Enclosing class:
SectionMeshCache
public static record SectionMeshCache.SectionMesh(com.mojang.blaze3d.buffers.GpuBufferSlice slice, int vertexCount, int indexCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSectionMesh(com.mojang.blaze3d.buffers.GpuBufferSlice slice, int vertexCount, int indexCount) Creates an instance of aSectionMeshrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexCountrecord component.booleanisEmpty()com.mojang.blaze3d.buffers.GpuBufferSliceslice()Returns the value of theslicerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevertexCountrecord component.
-
Constructor Details
-
SectionMesh
public SectionMesh(com.mojang.blaze3d.buffers.GpuBufferSlice slice, int vertexCount, int indexCount) Creates an instance of aSectionMeshrecord class.- Parameters:
slice- the value for theslicerecord componentvertexCount- the value for thevertexCountrecord componentindexCount- the value for theindexCountrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
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. -
slice
public com.mojang.blaze3d.buffers.GpuBufferSlice slice()Returns the value of theslicerecord component.- Returns:
- the value of the
slicerecord component
-
vertexCount
public int vertexCount()Returns the value of thevertexCountrecord component.- Returns:
- the value of the
vertexCountrecord component
-
indexCount
public int indexCount()Returns the value of theindexCountrecord component.- Returns:
- the value of the
indexCountrecord component
-