Record Class BiomeModifiers.PreparedModification
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.PreparedModification
- Enclosing class:
BiomeModifiers
public static record BiomeModifiers.PreparedModification(int priority, boolean datapack, int order, Predicate<net.minecraft.core.Holder.Reference<net.minecraft.world.level.biome.Biome>> targets, BiomeModifiers.Entry modifier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreparedModification(int priority, boolean datapack, int order, Predicate<net.minecraft.core.Holder.Reference<net.minecraft.world.level.biome.Biome>> targets, BiomeModifiers.Entry modifier) Creates an instance of aPreparedModificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandatapack()Returns the value of thedatapackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modifier()Returns the value of themodifierrecord component.intorder()Returns the value of theorderrecord component.intpriority()Returns the value of thepriorityrecord component.Predicate<net.minecraft.core.Holder.Reference<net.minecraft.world.level.biome.Biome>> targets()Returns the value of thetargetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreparedModification
public PreparedModification(int priority, boolean datapack, int order, Predicate<net.minecraft.core.Holder.Reference<net.minecraft.world.level.biome.Biome>> targets, BiomeModifiers.Entry modifier) Creates an instance of aPreparedModificationrecord class.- Parameters:
priority- the value for thepriorityrecord componentdatapack- the value for thedatapackrecord componentorder- the value for theorderrecord componenttargets- the value for thetargetsrecord componentmodifier- the value for themodifierrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
datapack
public boolean datapack()Returns the value of thedatapackrecord component.- Returns:
- the value of the
datapackrecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
targets
public Predicate<net.minecraft.core.Holder.Reference<net.minecraft.world.level.biome.Biome>> targets()Returns the value of thetargetsrecord component.- Returns:
- the value of the
targetsrecord component
-
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-