Record Class AdvancementRenderContextImpl.FrameImpl
java.lang.Object
java.lang.Record
net.fabricmc.fabric.impl.client.rendering.advancement.AdvancementRenderContextImpl.FrameImpl
- All Implemented Interfaces:
AdvancementRenderContext, AdvancementRenderContext.Frame
- Enclosing class:
AdvancementRenderContextImpl
public static record AdvancementRenderContextImpl.FrameImpl(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.advancements.AdvancementHolder holder, @Nullable net.minecraft.advancements.AdvancementProgress progress, int x, int y, boolean isHovered)
extends Record
implements AdvancementRenderContext.Frame
-
Nested Class Summary
Nested classes/interfaces inherited from interface AdvancementRenderContext
AdvancementRenderContext.Background, AdvancementRenderContext.Frame, AdvancementRenderContext.Icon -
Constructor Summary
ConstructorsConstructorDescriptionFrameImpl(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.advancements.AdvancementHolder holder, @Nullable net.minecraft.advancements.AdvancementProgress progress, int x, int y, boolean isHovered) Creates an instance of aFrameImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.booleanReturns the value of theisHoveredrecord component.@Nullable net.minecraft.advancements.AdvancementProgressprogress()Returns the value of theprogressrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.Methods inherited from interface AdvancementRenderContext
advancement, display, isObtained
-
Constructor Details
-
FrameImpl
public FrameImpl(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.advancements.AdvancementHolder holder, @Nullable net.minecraft.advancements.AdvancementProgress progress, int x, int y, boolean isHovered) Creates an instance of aFrameImplrecord class.- Parameters:
graphics- the value for thegraphicsrecord componentholder- the value for theholderrecord componentprogress- the value for theprogressrecord componentx- the value for thexrecord componenty- the value for theyrecord componentisHovered- the value for theisHoveredrecord component
-
-
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
-
x
public int x()Returns the value of thexrecord component.- Specified by:
xin interfaceAdvancementRenderContext.Frame- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Specified by:
yin interfaceAdvancementRenderContext.Frame- Returns:
- the value of the
yrecord component
-
isHovered
public boolean isHovered()Returns the value of theisHoveredrecord component.- Specified by:
isHoveredin interfaceAdvancementRenderContext.Frame- Returns:
- the value of the
isHoveredrecord component
-