Record Class CustomBannerGuiElementRenderState
java.lang.Object
java.lang.Record
meteordevelopment.meteorclient.utils.render.CustomBannerGuiElementRenderState
- All Implemented Interfaces:
net.minecraft.client.gui.render.state.GuiElementRenderState,net.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState
public record CustomBannerGuiElementRenderState(net.minecraft.client.render.block.entity.model.BannerFlagBlockModel flag, net.minecraft.util.DyeColor baseColor, net.minecraft.component.type.BannerPatternsComponent resultBannerPatterns, int x1, int y1, int x2, int y2, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable net.minecraft.client.gui.ScreenRect bounds, float scale)
extends Record
implements net.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState
pose -
Constructor Summary
ConstructorsConstructorDescriptionCustomBannerGuiElementRenderState(net.minecraft.client.render.block.entity.model.BannerFlagBlockModel bannerFlagBlockModel, net.minecraft.util.DyeColor color, net.minecraft.component.type.BannerPatternsComponent bannerPatterns, int x1, int y1, int x2, int y2, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, float scale) CustomBannerGuiElementRenderState(net.minecraft.client.render.block.entity.model.BannerFlagBlockModel flag, net.minecraft.util.DyeColor baseColor, net.minecraft.component.type.BannerPatternsComponent resultBannerPatterns, int x1, int y1, int x2, int y2, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable net.minecraft.client.gui.ScreenRect bounds, float scale) Creates an instance of aCustomBannerGuiElementRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.DyeColorReturns the value of thebaseColorrecord component.@Nullable net.minecraft.client.gui.ScreenRectbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.render.block.entity.model.BannerFlagBlockModelflag()Returns the value of theflagrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.component.type.BannerPatternsComponentReturns the value of theresultBannerPatternsrecord component.floatscale()Returns the value of thescalerecord component.@Nullable net.minecraft.client.gui.ScreenRectReturns the value of thescissorArearecord component.final StringtoString()Returns a string representation of this record class.intx1()Returns the value of thex1record component.intx2()Returns the value of thex2record component.inty1()Returns the value of they1record component.inty2()Returns the value of they2record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState
pose
-
Constructor Details
-
CustomBannerGuiElementRenderState
public CustomBannerGuiElementRenderState(net.minecraft.client.render.block.entity.model.BannerFlagBlockModel bannerFlagBlockModel, net.minecraft.util.DyeColor color, net.minecraft.component.type.BannerPatternsComponent bannerPatterns, int x1, int y1, int x2, int y2, @Nullable @Nullable net.minecraft.client.gui.ScreenRect scissorArea, float scale) -
CustomBannerGuiElementRenderState
public CustomBannerGuiElementRenderState(net.minecraft.client.render.block.entity.model.BannerFlagBlockModel flag, net.minecraft.util.DyeColor baseColor, net.minecraft.component.type.BannerPatternsComponent resultBannerPatterns, int x1, int y1, int x2, int y2, @Nullable @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable @Nullable net.minecraft.client.gui.ScreenRect bounds, float scale) Creates an instance of aCustomBannerGuiElementRenderStaterecord class.- Parameters:
flag- the value for theflagrecord componentbaseColor- the value for thebaseColorrecord componentresultBannerPatterns- the value for theresultBannerPatternsrecord componentx1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record componentscissorArea- the value for thescissorArearecord componentbounds- the value for theboundsrecord componentscale- the value for thescalerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
flag
public net.minecraft.client.render.block.entity.model.BannerFlagBlockModel flag()Returns the value of theflagrecord component.- Returns:
- the value of the
flagrecord component
-
baseColor
public net.minecraft.util.DyeColor baseColor()Returns the value of thebaseColorrecord component.- Returns:
- the value of the
baseColorrecord component
-
resultBannerPatterns
public net.minecraft.component.type.BannerPatternsComponent resultBannerPatterns()Returns the value of theresultBannerPatternsrecord component.- Returns:
- the value of the
resultBannerPatternsrecord component
-
x1
public int x1()Returns the value of thex1record component.- Specified by:
x1in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
x1record component
-
y1
public int y1()Returns the value of they1record component.- Specified by:
y1in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
y1record component
-
x2
public int x2()Returns the value of thex2record component.- Specified by:
x2in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
x2record component
-
y2
public int y2()Returns the value of they2record component.- Specified by:
y2in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
y2record component
-
scissorArea
@Nullable public @Nullable net.minecraft.client.gui.ScreenRect scissorArea()Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
scissorArearecord component
-
bounds
@Nullable public @Nullable net.minecraft.client.gui.ScreenRect bounds()Returns the value of theboundsrecord component.- Specified by:
boundsin interfacenet.minecraft.client.gui.render.state.GuiElementRenderState- Returns:
- the value of the
boundsrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Specified by:
scalein interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
scalerecord component
-