Record Class ScalingAttributeModifierTemperatureEffect.Config
java.lang.Object
java.lang.Record
com.github.thedeathlycow.thermoo.api.temperature.effects.ScalingAttributeModifierTemperatureEffect.Config
- Enclosing class:
ScalingAttributeModifierTemperatureEffect
public static record ScalingAttributeModifierTemperatureEffect.Config(float scale, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.resources.ResourceLocation location, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(float scale, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.resources.ResourceLocation location, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> Returns the value of theattributerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Deprecated, for removal: This API element is subject to removal in a future version.This field was named based on Yarn mappings.net.minecraft.resources.ResourceLocationlocation()Returns the value of thelocationrecord component.net.minecraft.world.entity.ai.attributes.AttributeModifier.OperationReturns the value of theoperationrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(float scale, net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.resources.ResourceLocation location, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation) Creates an instance of aConfigrecord class.- Parameters:
scale- the value for thescalerecord componentattribute- the value for theattributerecord componentlocation- the value for thelocationrecord componentoperation- the value for theoperationrecord component
-
-
Method Details
-
id
Deprecated, for removal: This API element is subject to removal in a future version.This field was named based on Yarn mappings. Uselocationto better conform to Official Mappings.- Returns:
- Returns the value of
location
-
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.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute()Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
location
public net.minecraft.resources.ResourceLocation location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
operation
public net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation()Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-