Record Class NativeInventoryItemStyle
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.container.NativeInventoryItemStyle
Lighting and opacity belong to an extracted item, not its shared atlas entry.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNativeInventoryItemStyle(float opacity, float lightMultiplier) Creates an instance of aNativeInventoryItemStylerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.renderer.state.gui.BlitRenderStateapply(net.minecraft.client.renderer.state.gui.BlitRenderState blit, NativeInventoryItemStyle style) Native filtering preserves alpha; the cached premultiplied texture then receives control opacity.final booleanIndicates whether some other object is "equal to" this one.static voidextract(IBedrockGuiItemStyle graphics, NativeInventoryItemStyle style, Runnable extraction) final inthashCode()Returns a hash code value for this object.floatReturns the value of thelightMultiplierrecord component.floatopacity()Returns the value of theopacityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NORMAL
-
-
Constructor Details
-
NativeInventoryItemStyle
public NativeInventoryItemStyle(float opacity, float lightMultiplier) Creates an instance of aNativeInventoryItemStylerecord class.- Parameters:
opacity- the value for theopacityrecord componentlightMultiplier- the value for thelightMultiplierrecord component
-
-
Method Details
-
extract
public static void extract(IBedrockGuiItemStyle graphics, NativeInventoryItemStyle style, Runnable extraction) -
apply
public static net.minecraft.client.renderer.state.gui.BlitRenderState apply(net.minecraft.client.renderer.state.gui.BlitRenderState blit, NativeInventoryItemStyle style) Native filtering preserves alpha; the cached premultiplied texture then receives control opacity. -
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
opacity
public float opacity()Returns the value of theopacityrecord component.- Returns:
- the value of the
opacityrecord component
-
lightMultiplier
public float lightMultiplier()Returns the value of thelightMultiplierrecord component.- Returns:
- the value of the
lightMultiplierrecord component
-