Record Class GuiRenderEvents.Crosshair
java.lang.Object
java.lang.Record
net.ntrdeal.realapi.client.event.GuiRenderEvents.Crosshair
- Enclosing class:
GuiRenderEvents
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theguiHeightToYrecord component.Returns the value of theguiWidthToXrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.static GuiRenderEvents.CrosshairofDefaultPipeline(net.minecraft.resources.Identifier texture, Function<Integer, Integer> guiWidthToX, Function<Integer, Integer> guiHeightToY, int width, int height) static GuiRenderEvents.CrosshairofMiddle(net.minecraft.resources.Identifier texture, int width, int height) com.mojang.blaze3d.pipeline.RenderPipelinepipeline()Returns the value of thepipelinerecord component.net.minecraft.resources.Identifiertexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Crosshair
public Crosshair(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.resources.Identifier texture, Function<Integer, Integer> guiWidthToX, Function<Integer, Integer> guiHeightToY, int width, int height) Creates an instance of aCrosshairrecord class.- Parameters:
pipeline- the value for thepipelinerecord componenttexture- the value for thetexturerecord componentguiWidthToX- the value for theguiWidthToXrecord componentguiHeightToY- the value for theguiHeightToYrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
ofDefaultPipeline
-
ofMiddle
public static GuiRenderEvents.Crosshair ofMiddle(net.minecraft.resources.Identifier texture, int width, int height) -
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. -
pipeline
public com.mojang.blaze3d.pipeline.RenderPipeline pipeline()Returns the value of thepipelinerecord component.- Returns:
- the value of the
pipelinerecord component
-
texture
public net.minecraft.resources.Identifier texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
guiWidthToX
-
guiHeightToY
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-