Record Class BedrockActorMaterialDefinitions.Material
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockActorMaterialDefinitions.Material
- Enclosing class:
BedrockActorMaterialDefinitions
public static record BedrockActorMaterialDefinitions.Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask, boolean alphaWrite)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMaterial(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth) Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask) Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask, boolean alphaWrite) Creates an instance of aMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealphaTestrecord component.booleanReturns the value of thealphaWriterecord component.booleanReturns the value of thecolorMaskrecord component.booleancull()Returns the value of thecullrecord component.depth()Returns the value of thedepthrecord component.booleanemissive()Returns the value of theemissiverecord component.final booleanIndicates whether some other object is "equal to" this one.booleanglint()Returns the value of theglintrecord component.final inthashCode()Returns a hash code value for this object.booleanmasked()Returns the value of themaskedrecord component.intfinal StringtoString()Returns a string representation of this record class.booleanReturns the value of theuvAnimationrecord component.
-
Field Details
-
CUTOUT
-
-
Constructor Details
-
Material
public Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth) -
Material
public Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask) -
Material
public Material(boolean alphaTest, boolean cull, boolean emissive, boolean uvAnimation, boolean masked, boolean glint, BedrockActorDepth depth, boolean colorMask, boolean alphaWrite) Creates an instance of aMaterialrecord class.- Parameters:
alphaTest- the value for thealphaTestrecord componentcull- the value for thecullrecord componentemissive- the value for theemissiverecord componentuvAnimation- the value for theuvAnimationrecord componentmasked- the value for themaskedrecord componentglint- the value for theglintrecord componentdepth- the value for thedepthrecord componentcolorMask- the value for thecolorMaskrecord componentalphaWrite- the value for thealphaWriterecord component
-
-
Method Details
-
textureCount
public int textureCount() -
withoutEmission
-
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. -
alphaTest
public boolean alphaTest()Returns the value of thealphaTestrecord component.- Returns:
- the value of the
alphaTestrecord component
-
cull
public boolean cull()Returns the value of thecullrecord component.- Returns:
- the value of the
cullrecord component
-
emissive
public boolean emissive()Returns the value of theemissiverecord component.- Returns:
- the value of the
emissiverecord component
-
uvAnimation
public boolean uvAnimation()Returns the value of theuvAnimationrecord component.- Returns:
- the value of the
uvAnimationrecord component
-
masked
public boolean masked()Returns the value of themaskedrecord component.- Returns:
- the value of the
maskedrecord component
-
glint
public boolean glint()Returns the value of theglintrecord component.- Returns:
- the value of the
glintrecord component
-
depth
Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
colorMask
public boolean colorMask()Returns the value of thecolorMaskrecord component.- Returns:
- the value of the
colorMaskrecord component
-
alphaWrite
public boolean alphaWrite()Returns the value of thealphaWriterecord component.- Returns:
- the value of the
alphaWriterecord component
-