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.registry.entry.RegistryEntry<net.minecraft.entity.attribute.EntityAttribute> attribute, net.minecraft.util.Identifier id, net.minecraft.entity.attribute.EntityAttributeModifier.Operation operation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(float scale, net.minecraft.registry.entry.RegistryEntry<net.minecraft.entity.attribute.EntityAttribute> attribute, net.minecraft.util.Identifier id, net.minecraft.entity.attribute.EntityAttributeModifier.Operation operation) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.registry.entry.RegistryEntry<net.minecraft.entity.attribute.EntityAttribute> 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.util.Identifierid()Returns the value of theidrecord 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.
-
Constructor Details
-
Config
public Config(float scale, net.minecraft.registry.entry.RegistryEntry<net.minecraft.entity.attribute.EntityAttribute> attribute, net.minecraft.util.Identifier id, net.minecraft.entity.attribute.EntityAttributeModifier.Operation operation) Creates an instance of aConfigrecord class.- Parameters:
scale- the value for thescalerecord componentattribute- the value for theattributerecord componentid- the value for theidrecord componentoperation- the value for theoperationrecord 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 '=='. -
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
attribute
public net.minecraft.registry.entry.RegistryEntry<net.minecraft.entity.attribute.EntityAttribute> attribute()Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
id
public net.minecraft.util.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
operation
public net.minecraft.entity.attribute.EntityAttributeModifier.Operation operation()Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-