Record Class CustomBannerGuiElementRenderState
java.lang.Object
java.lang.Record
meteordevelopment.meteorclient.utils.render.CustomBannerGuiElementRenderState
- All Implemented Interfaces:
net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState, net.minecraft.client.renderer.state.gui.ScreenArea
public record CustomBannerGuiElementRenderState(net.minecraft.client.model.object.banner.BannerFlagModel flag, net.minecraft.world.item.DyeColor baseColor, net.minecraft.world.level.block.entity.BannerPatternLayers resultBannerPatterns, int x0, int y0, int x1, int y1, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle bounds, float scale)
extends Record
implements net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
-
Field Summary
Fields inherited from interface net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
IDENTITY_POSE -
Constructor Summary
ConstructorsConstructorDescriptionCustomBannerGuiElementRenderState(net.minecraft.client.model.object.banner.BannerFlagModel bannerFlagBlockModel, net.minecraft.world.item.DyeColor color, net.minecraft.world.level.block.entity.BannerPatternLayers bannerPatterns, int x0, int y0, int x1, int y1, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, float scale) CustomBannerGuiElementRenderState(net.minecraft.client.model.object.banner.BannerFlagModel flag, net.minecraft.world.item.DyeColor baseColor, net.minecraft.world.level.block.entity.BannerPatternLayers resultBannerPatterns, int x0, int y0, int x1, int y1, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle bounds, float scale) Creates an instance of aCustomBannerGuiElementRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.DyeColorReturns the value of thebaseColorrecord component.@Nullable net.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.model.object.banner.BannerFlagModelflag()Returns the value of theflagrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.block.entity.BannerPatternLayersReturns the value of theresultBannerPatternsrecord component.floatscale()Returns the value of thescalerecord component.@Nullable net.minecraft.client.gui.navigation.ScreenRectangleReturns the value of thescissorArearecord component.final StringtoString()Returns a string representation of this record class.intx0()Returns the value of thex0record component.intx1()Returns the value of thex1record component.inty0()Returns the value of they0record component.inty1()Returns the value of they1record component.Methods inherited from interface net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
pose
-
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. -
flag
public net.minecraft.client.model.object.banner.BannerFlagModel flag()Returns the value of theflagrecord component.- Returns:
- the value of the
flagrecord component
-
baseColor
public net.minecraft.world.item.DyeColor baseColor()Returns the value of thebaseColorrecord component.- Returns:
- the value of the
baseColorrecord component
-
resultBannerPatterns
public net.minecraft.world.level.block.entity.BannerPatternLayers resultBannerPatterns()Returns the value of theresultBannerPatternsrecord component.- Returns:
- the value of the
resultBannerPatternsrecord component
-
x0
public int x0()Returns the value of thex0record component.- Specified by:
x0in interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
x0record component
-
y0
public int y0()Returns the value of they0record component.- Specified by:
y0in interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
y0record component
-
x1
public int x1()Returns the value of thex1record component.- Specified by:
x1in interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
x1record component
-
y1
public int y1()Returns the value of they1record component.- Specified by:
y1in interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
y1record component
-
scissorArea
@Nullable public @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea()Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
scissorArearecord component
-
bounds
@Nullable public @Nullable net.minecraft.client.gui.navigation.ScreenRectangle bounds()Returns the value of theboundsrecord component.- Specified by:
boundsin interfacenet.minecraft.client.renderer.state.gui.ScreenArea- Returns:
- the value of the
boundsrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Specified by:
scalein interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
scalerecord component
-