Record Class AdvancementRenderContextImpl.BackgroundImpl
java.lang.Object
java.lang.Record
net.fabricmc.fabric.impl.client.rendering.advancement.AdvancementRenderContextImpl.BackgroundImpl
- All Implemented Interfaces:
AdvancementRenderContext, AdvancementRenderContext.Background
- Enclosing class:
AdvancementRenderContextImpl
public static record AdvancementRenderContextImpl.BackgroundImpl(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.advancements.AdvancementHolder holder, @Nullable net.minecraft.advancements.AdvancementProgress progress, net.minecraft.client.gui.navigation.ScreenRectangle bounds, double scrollX, double scrollY)
extends Record
implements AdvancementRenderContext.Background
-
Nested Class Summary
Nested classes/interfaces inherited from interface AdvancementRenderContext
AdvancementRenderContext.Background, AdvancementRenderContext.Frame, AdvancementRenderContext.Icon -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundImpl(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.advancements.AdvancementHolder holder, @Nullable net.minecraft.advancements.AdvancementProgress progress, net.minecraft.client.gui.navigation.ScreenRectangle bounds, double scrollX, double scrollY) Creates an instance of aBackgroundImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.gui.navigation.ScreenRectanglebounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.gui.GuiGraphicsExtractorgraphics()Returns the value of thegraphicsrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.advancements.AdvancementHolderholder()Returns the value of theholderrecord component.@Nullable net.minecraft.advancements.AdvancementProgressprogress()Returns the value of theprogressrecord component.doublescrollX()Returns the value of thescrollXrecord component.doublescrollY()Returns the value of thescrollYrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface AdvancementRenderContext
advancement, display, isObtained
-
Constructor Details
-
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. -
graphics
public net.minecraft.client.gui.GuiGraphicsExtractor graphics()Returns the value of thegraphicsrecord component.- Specified by:
graphicsin interfaceAdvancementRenderContext- Returns:
- the value of the
graphicsrecord component
-
holder
public net.minecraft.advancements.AdvancementHolder holder()Returns the value of theholderrecord component.- Specified by:
holderin interfaceAdvancementRenderContext- Returns:
- the value of the
holderrecord component
-
progress
public @Nullable net.minecraft.advancements.AdvancementProgress progress()Returns the value of theprogressrecord component.- Specified by:
progressin interfaceAdvancementRenderContext- Returns:
- the value of the
progressrecord component
-
bounds
public net.minecraft.client.gui.navigation.ScreenRectangle bounds()Returns the value of theboundsrecord component.- Specified by:
boundsin interfaceAdvancementRenderContext.Background- Returns:
- the value of the
boundsrecord component
-
scrollX
public double scrollX()Returns the value of thescrollXrecord component.- Specified by:
scrollXin interfaceAdvancementRenderContext.Background- Returns:
- the value of the
scrollXrecord component
-
scrollY
public double scrollY()Returns the value of thescrollYrecord component.- Specified by:
scrollYin interfaceAdvancementRenderContext.Background- Returns:
- the value of the
scrollYrecord component
-