Record Class BiomeModifiers.Spawns
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.Spawns
- Enclosing class:
BiomeModifiers
public static record BiomeModifiers.Spawns(List<BiomeModifiers.SpawnEntry> addSpawns, List<net.minecraft.world.entity.EntityType<?>> removeSpawns, List<BiomeModifiers.ChargeEntry> addCharges, List<net.minecraft.world.entity.EntityType<?>> removeCharges)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeModifiers.Spawns> static final BiomeModifiers.Spawns -
Constructor Summary
ConstructorsConstructorDescriptionSpawns(List<BiomeModifiers.SpawnEntry> addSpawns, List<net.minecraft.world.entity.EntityType<?>> removeSpawns, List<BiomeModifiers.ChargeEntry> addCharges, List<net.minecraft.world.entity.EntityType<?>> removeCharges) Creates an instance of aSpawnsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddChargesrecord component.Returns the value of theaddSpawnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<net.minecraft.world.entity.EntityType<?>> Returns the value of theremoveChargesrecord component.List<net.minecraft.world.entity.EntityType<?>> Returns the value of theremoveSpawnsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
Spawns
public Spawns(List<BiomeModifiers.SpawnEntry> addSpawns, List<net.minecraft.world.entity.EntityType<?>> removeSpawns, List<BiomeModifiers.ChargeEntry> addCharges, List<net.minecraft.world.entity.EntityType<?>> removeCharges) Creates an instance of aSpawnsrecord class.- Parameters:
addSpawns- the value for theaddSpawnsrecord componentremoveSpawns- the value for theremoveSpawnsrecord componentaddCharges- the value for theaddChargesrecord componentremoveCharges- the value for theremoveChargesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
addSpawns
Returns the value of theaddSpawnsrecord component.- Returns:
- the value of the
addSpawnsrecord component
-
removeSpawns
Returns the value of theremoveSpawnsrecord component.- Returns:
- the value of the
removeSpawnsrecord component
-
addCharges
Returns the value of theaddChargesrecord component.- Returns:
- the value of the
addChargesrecord component
-
removeCharges
Returns the value of theremoveChargesrecord component.- Returns:
- the value of the
removeChargesrecord component
-