Record Class BedrockShaderEmission.Pass
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockShaderEmission.Pass
- Enclosing class:
BedrockShaderEmission
public static record BedrockShaderEmission.Pass(net.minecraft.client.renderer.rendertype.RenderType type, boolean emission)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPass(net.minecraft.client.renderer.rendertype.RenderType type, boolean emission) Creates an instance of aPassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanemission()Returns the value of theemissionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.net.minecraft.client.renderer.rendertype.RenderTypetype()Returns the value of thetyperecord component.
-
Constructor Details
-
Pass
public Pass(net.minecraft.client.renderer.rendertype.RenderType type, boolean emission) Creates an instance of aPassrecord class.- Parameters:
type- the value for thetyperecord componentemission- the value for theemissionrecord 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. -
type
public net.minecraft.client.renderer.rendertype.RenderType type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
emission
public boolean emission()Returns the value of theemissionrecord component.- Returns:
- the value of the
emissionrecord component
-