Package net.minecraft.client.renderer
Record Class FogParameters
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.FogParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thealpharecord component.private final floatThe field for thebluerecord component.private final floatThe field for theendrecord component.private final floatThe field for thegreenrecord component.static final FogParametersprivate final floatThe field for theredrecord component.private final FogShapeThe field for theshaperecord component.private final floatThe field for thestartrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFogParameters(float start, float end, FogShape shape, float red, float green, float blue, float alpha) Creates an instance of aFogParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.floatblue()Returns the value of thebluerecord component.floatend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.floatgreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.floatred()Returns the value of theredrecord component.shape()Returns the value of theshaperecord component.floatstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
start
private final float startThe field for thestartrecord component. -
end
private final float endThe field for theendrecord component. -
shape
The field for theshaperecord component. -
red
private final float redThe field for theredrecord component. -
green
private final float greenThe field for thegreenrecord component. -
blue
private final float blueThe field for thebluerecord component. -
alpha
private final float alphaThe field for thealpharecord component. -
NO_FOG
-
-
Constructor Details
-
FogParameters
public FogParameters(float start, float end, FogShape shape, float red, float green, float blue, float alpha) Creates an instance of aFogParametersrecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentshape- the value for theshaperecord componentred- the value for theredrecord componentgreen- the value for thegreenrecord componentblue- the value for thebluerecord componentalpha- the value for thealpharecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
start
public float start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public float end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
red
public float red()Returns the value of theredrecord component.- Returns:
- the value of the
redrecord component
-
green
public float green()Returns the value of thegreenrecord component.- Returns:
- the value of the
greenrecord component
-
blue
public float blue()Returns the value of thebluerecord component.- Returns:
- the value of the
bluerecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-