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 float
The field for thealpha
record component.private final float
The field for theblue
record component.private final float
The field for theend
record component.private final float
The field for thegreen
record component.static final FogParameters
private final float
The field for thered
record component.private final FogShape
The field for theshape
record component.private final float
The field for thestart
record component. -
Constructor Summary
ConstructorsConstructorDescriptionFogParameters
(float start, float end, FogShape shape, float red, float green, float blue, float alpha) Creates an instance of aFogParameters
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
alpha()
Returns the value of thealpha
record component.float
blue()
Returns the value of theblue
record component.float
end()
Returns the value of theend
record component.final boolean
Indicates whether some other object is "equal to" this one.float
green()
Returns the value of thegreen
record component.final int
hashCode()
Returns a hash code value for this object.float
red()
Returns the value of thered
record component.shape()
Returns the value of theshape
record component.float
start()
Returns the value of thestart
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
start
private final float startThe field for thestart
record component. -
end
private final float endThe field for theend
record component. -
shape
The field for theshape
record component. -
red
private final float redThe field for thered
record component. -
green
private final float greenThe field for thegreen
record component. -
blue
private final float blueThe field for theblue
record component. -
alpha
private final float alphaThe field for thealpha
record 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 aFogParameters
record class.- Parameters:
start
- the value for thestart
record componentend
- the value for theend
record componentshape
- the value for theshape
record componentred
- the value for thered
record componentgreen
- the value for thegreen
record componentblue
- the value for theblue
record componentalpha
- the value for thealpha
record 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 thestart
record component.- Returns:
- the value of the
start
record component
-
end
public float end()Returns the value of theend
record component.- Returns:
- the value of the
end
record component
-
shape
Returns the value of theshape
record component.- Returns:
- the value of the
shape
record component
-
red
public float red()Returns the value of thered
record component.- Returns:
- the value of the
red
record component
-
green
public float green()Returns the value of thegreen
record component.- Returns:
- the value of the
green
record component
-
blue
public float blue()Returns the value of theblue
record component.- Returns:
- the value of the
blue
record component
-
alpha
public float alpha()Returns the value of thealpha
record component.- Returns:
- the value of the
alpha
record component
-