Package net.minecraft.client.render
Record Class Fog
java.lang.Object
java.lang.Record
net.minecraft.client.render.Fog
- Record Components:
start-end-shape-red-green-blue-alpha-
@Environment(CLIENT)
public record Fog(float start, float end, FogShape shape, float red, float green, float blue, float alpha)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/Fogintermediary net/minecraft/class_9958official grbnamed startintermediary comp_3009official bnamed endintermediary comp_3010official cnamed shapeintermediary comp_3011official dnamed redintermediary comp_3012official enamed greenintermediary comp_3013official fnamed blueintermediary comp_3014official gnamed alphaintermediary comp_3015official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thealpharecord component.private final floatThe field for thebluerecord component.static final Fogprivate final floatThe field for theendrecord component.private final floatThe field for thegreenrecord component.private final floatThe field for theredrecord component.private final FogShapeThe field for theshaperecord component.private final floatThe field for thestartrecord component. -
Constructor Summary
Constructors -
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. -
DUMMY
- Mappings:
Namespace Name Mixin selector named DUMMYLnet/minecraft/client/render/Fog;DUMMY:Lnet/minecraft/client/render/Fog;intermediary field_53065Lnet/minecraft/class_9958;field_53065:Lnet/minecraft/class_9958;official aLgrb;a:Lgrb;
-
-
Constructor Details
-
Fog
public Fog(float float2, float float3, FogShape fogShape, float float4, float float5, float float6, float float7)
-
-
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
-