Record Class OverlayRendererBlockData
java.lang.Object
java.lang.Record
net.lugo.overlaylib.util.OverlayRendererBlockData
public record OverlayRendererBlockData(net.minecraft.core.BlockPos pos, Color color, float yOffset, TextureSection textureSection)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOverlayRendererBlockData(net.minecraft.core.BlockPos pos, Color color, float yOffset) OverlayRendererBlockData(net.minecraft.core.BlockPos pos, Color color, float yOffset, TextureSection textureSection) Creates an instance of aOverlayRendererBlockDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPospos()Returns the value of theposrecord 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
-
OverlayRendererBlockData
public OverlayRendererBlockData(net.minecraft.core.BlockPos pos, Color color, float yOffset, TextureSection textureSection) Creates an instance of aOverlayRendererBlockDatarecord class.- Parameters:
pos- the value for theposrecord componentcolor- the value for thecolorrecord 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
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord 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
-