Record Class ScalingAttributeModifierTemperatureEffect.Config
java.lang.Object
java.lang.Record
com.github.thedeathlycow.thermoo.api.temperature.effects.ScalingAttributeModifierTemperatureEffect.Config
- Enclosing class:
- ScalingAttributeModifierTemperatureEffect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.entity.attribute.EntityAttributeReturns the value of theattributerecord component.final booleanIndicates whether some other object is "equal to" this one.fromJson(com.google.gson.JsonElement jsonElement) final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.net.minecraft.entity.attribute.EntityAttributeModifier.OperationReturns the value of theoperationrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Config
public Config(float scale, net.minecraft.entity.attribute.EntityAttribute attribute, UUID uuid, String name, net.minecraft.entity.attribute.EntityAttributeModifier.Operation operation) Creates an instance of aConfigrecord class.- Parameters:
scale- the value for thescalerecord componentattribute- the value for theattributerecord componentuuid- the value for theuuidrecord componentname- the value for thenamerecord componentoperation- the value for theoperationrecord component
-
-
Method Details
-
fromJson
public static ScalingAttributeModifierTemperatureEffect.Config fromJson(com.google.gson.JsonElement jsonElement) throws com.google.gson.JsonSyntaxException - Throws:
com.google.gson.JsonSyntaxException
-
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 '=='. -
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
attribute
public net.minecraft.entity.attribute.EntityAttribute attribute()Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
operation
public net.minecraft.entity.attribute.EntityAttributeModifier.Operation operation()Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-