Record Class FunctionTemperatureEffect.Config
java.lang.Object
java.lang.Record
com.github.thedeathlycow.thermoo.api.temperature.effects.FunctionTemperatureEffect.Config
- Enclosing class:
FunctionTemperatureEffect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<net.minecraft.nbt.CompoundTag> Returns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.commands.CacheableFunctionfunction()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.intinterval()Returns the value of theintervalrecord component.intReturns the value of thepermissionLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(net.minecraft.commands.CacheableFunction function, Optional<net.minecraft.nbt.CompoundTag> arguments, int interval, int permissionLevel) Creates an instance of aConfigrecord class.- Parameters:
function- the value for thefunctionrecord componentarguments- the value for theargumentsrecord componentinterval- the value for theintervalrecord componentpermissionLevel- the value for thepermissionLevelrecord 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 '=='. -
function
public net.minecraft.commands.CacheableFunction function()Returns the value of thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
interval
public int interval()Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
permissionLevel
public int permissionLevel()Returns the value of thepermissionLevelrecord component.- Returns:
- the value of the
permissionLevelrecord component
-