Record Class OverlayRendererBlockData
java.lang.Object
java.lang.Record
net.lugo.overlaylib.util.OverlayRendererBlockData
public record OverlayRendererBlockData(net.minecraft.core.BlockPos pos, float r, float g, float b, float yOffset, TextureSection textureSection)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOverlayRendererBlockData(net.minecraft.core.BlockPos pos, float r, float g, float b, float yOffset) OverlayRendererBlockData(net.minecraft.core.BlockPos pos, float r, float g, float b, float yOffset, TextureSection textureSection) Creates an instance of aOverlayRendererBlockDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatb()Returns the value of thebrecord component.final booleanIndicates whether some other object is "equal to" this one.floatg()Returns the value of thegrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPospos()Returns the value of theposrecord component.floatr()Returns the value of therrecord component.booleanReturns the value of thetextureSectionrecord component.final StringtoString()Returns a string representation of this record class.floatyOffset()Returns the value of theyOffsetrecord component.
-
Field Details
-
NO_RENDER
-
-
Constructor Details
-
OverlayRendererBlockData
public OverlayRendererBlockData(net.minecraft.core.BlockPos pos, float r, float g, float b, float yOffset) -
OverlayRendererBlockData
public OverlayRendererBlockData(net.minecraft.core.BlockPos pos, float r, float g, float b, float yOffset, TextureSection textureSection) Creates an instance of aOverlayRendererBlockDatarecord class.- Parameters:
pos- the value for theposrecord componentr- the value for therrecord componentg- the value for thegrecord componentb- the value for thebrecord componentyOffset- the value for theyOffsetrecord componenttextureSection- the value for thetextureSectionrecord component
-
-
Method Details
-
shouldRender
public boolean shouldRender() -
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. -
pos
public net.minecraft.core.BlockPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
r
public float r()Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-
g
public float g()Returns the value of thegrecord component.- Returns:
- the value of the
grecord component
-
b
public float b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
yOffset
public float yOffset()Returns the value of theyOffsetrecord component.- Returns:
- the value of the
yOffsetrecord component
-
textureSection
Returns the value of thetextureSectionrecord component.- Returns:
- the value of the
textureSectionrecord component
-