Record Class SimplifiedSpawning
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.spawning.SimplifiedSpawning
public record SimplifiedSpawning(OptionalInt minY, OptionalInt maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimplifiedSpawning
(Optional<Integer> minY, Optional<Integer> maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures) SimplifiedSpawning
(OptionalInt minY, OptionalInt maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures) Creates an instance of aSimplifiedSpawning
record class. -
Method Summary
Modifier and TypeMethodDescriptionList
<net.minecraft.tags.TagEntry> biomes()
Returns the value of thebiomes
record component.static SimplifiedSpawning.Builder
builder()
static SimplifiedSpawning.Builder
builder
(SimplifiedSpawning spawning) combine
(SimplifiedSpawning other) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.maxY()
Returns the value of themaxY
record component.minY()
Returns the value of theminY
record component.Returns the value of thestructures
record component.times()
Returns the value of thetimes
record component.final String
toString()
Returns a string representation of this record class.weathers()
Returns the value of theweathers
record component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
SimplifiedSpawning
-
SimplifiedSpawning
public SimplifiedSpawning(OptionalInt minY, OptionalInt maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures) Creates an instance of aSimplifiedSpawning
record class.- Parameters:
minY
- the value for theminY
record componentmaxY
- the value for themaxY
record componenttimes
- the value for thetimes
record componentweathers
- the value for theweathers
record componentbiomes
- the value for thebiomes
record componentstructures
- the value for thestructures
record component
-
-
Method Details
-
combine
-
builder
-
builder
-
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)
. -
minY
Returns the value of theminY
record component.- Returns:
- the value of the
minY
record component
-
maxY
Returns the value of themaxY
record component.- Returns:
- the value of the
maxY
record component
-
times
Returns the value of thetimes
record component.- Returns:
- the value of the
times
record component
-
weathers
Returns the value of theweathers
record component.- Returns:
- the value of the
weathers
record component
-
biomes
Returns the value of thebiomes
record component.- Returns:
- the value of the
biomes
record component
-
structures
Returns the value of thestructures
record component.- Returns:
- the value of the
structures
record component
-