Record Class BiomeCondition
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.material.condition.BiomeCondition
- All Implemented Interfaces:
MaterialCondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface MaterialCondition
MaterialCondition.HolderHolder -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebiomesrecord component.static final com.mojang.serialization.MapCodec<BiomeCondition> Fields inherited from interface MaterialCondition
DIRECT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBiomeCondition(HolderSet<Biome> biomes) Creates an instance of aBiomeConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbiomes()Returns the value of thebiomesrecord component.private booleancanNeverMatch(Set<Holder<Biome>> possibleBiomes) com.mojang.serialization.MapCodec<BiomeCondition> codec()compile(MaterialRuleContext ruleContext) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.private booleanwillAlwaysMatch(Set<Holder<Biome>> possibleBiomes)
-
Field Details
-
biomes
-
CODEC
-
-
Constructor Details
-
BiomeCondition
-
-
Method Details
-
codec
- Specified by:
codecin interfaceMaterialCondition
-
compile
- Specified by:
compilein interfaceMaterialCondition
-
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
-