Package net.minecraft.entity.spawn
Record Class BiomeSpawnCondition
java.lang.Object
java.lang.Record
net.minecraft.entity.spawn.BiomeSpawnCondition
- Record Components:
requiredBiomes-
- All Implemented Interfaces:
Predicate<SpawnContext>,SpawnCondition,VariantSelectorProvider.SelectorCondition<SpawnContext>
public record BiomeSpawnCondition(RegistryEntryList<Biome> requiredBiomes)
extends Record
implements SpawnCondition
- Mappings:
Namespace Name named net/minecraft/entity/spawn/BiomeSpawnConditionintermediary net/minecraft/class_10692official cuinamed requiredBiomesintermediary comp_3571official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BiomeSpawnCondition> private final RegistryEntryList<Biome> The field for therequiredBiomesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<BiomeSpawnCondition> getCodec()final inthashCode()Returns a hash code value for this object.Returns the value of therequiredBiomesrecord component.booleantest(SpawnContext spawnContext) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
requiredBiomes
The field for therequiredBiomesrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/spawn/BiomeSpawnCondition;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_56281Lnet/minecraft/class_10692;field_56281:Lcom/mojang/serialization/MapCodec;official aLcui;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
BiomeSpawnCondition
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<SpawnContext>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/entity/spawn/BiomeSpawnCondition;test(Lnet/minecraft/entity/spawn/SpawnContext;)Zintermediary method_67153Lnet/minecraft/class_10692;method_67153(Lnet/minecraft/class_10701;)Zofficial aLcui;a(Lcuo;)Z
-
getCodec
- Specified by:
getCodecin interfaceSpawnCondition- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/entity/spawn/SpawnCondition;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_67151Lnet/minecraft/class_10699;method_67151()Lcom/mojang/serialization/MapCodec;official aLcum;a()Lcom/mojang/serialization/MapCodec;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
requiredBiomes
Returns the value of therequiredBiomesrecord component.- Returns:
- the value of the
requiredBiomesrecord component
-