Record Class Material.Baked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.Material.Baked
- Enclosing class:
Material
public static record Material.Baked(TextureAtlasSprite sprite, boolean forceTranslucent)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theforceTranslucentrecord component.private final TextureAtlasSpriteThe field for thespriterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBaked(TextureAtlasSprite sprite, boolean forceTranslucent) Creates an instance of aBakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceTranslucentrecord component.final inthashCode()Returns a hash code value for this object.sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sprite
The field for thespriterecord component. -
forceTranslucent
private final boolean forceTranslucentThe field for theforceTranslucentrecord component.
-
-
Constructor Details
-
Baked
Creates an instance of aBakedrecord class.- Parameters:
sprite- the value for thespriterecord componentforceTranslucent- the value for theforceTranslucentrecord 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. -
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-
forceTranslucent
public boolean forceTranslucent()Returns the value of theforceTranslucentrecord component.- Returns:
- the value of the
forceTranslucentrecord component
-