Record Class SurfaceRules.BiomeConditionSource
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.SurfaceRules.BiomeConditionSource
- All Implemented Interfaces:
Function<SurfaceRules.Context, SurfaceRules.Condition>, SurfaceRules.ConditionSource
- Enclosing class:
SurfaceRules
private static record SurfaceRules.BiomeConditionSource(HolderSet<Biome> biomes)
extends Record
implements SurfaceRules.ConditionSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebiomesrecord component.private static final com.mojang.serialization.MapCodec<SurfaceRules.BiomeConditionSource> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBiomeConditionSource(HolderSet<Biome> biomes) Creates an instance of aBiomeConditionSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(SurfaceRules.Context ruleContext) biomes()Returns the value of thebiomesrecord component.private booleancanNeverMatch(Set<Holder<Biome>> possibleBiomes) com.mojang.serialization.MapCodec<SurfaceRules.BiomeConditionSource> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.private booleanwillAlwaysMatch(Set<Holder<Biome>> possibleBiomes)
-
Field Details
-
biomes
-
CODEC
-
-
Constructor Details
-
BiomeConditionSource
-
-
Method Details
-
codec
- Specified by:
codecin interfaceSurfaceRules.ConditionSource
-
apply
- Specified by:
applyin interfaceFunction<SurfaceRules.Context, SurfaceRules.Condition>
-
canNeverMatch
-
willAlwaysMatch
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
biomes
-