Contents
Record Class ModifyEvents.BiomeEnvironments
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.modifier.event.ModifyEvents.BiomeEnvironments
- All Implemented Interfaces:
ModifyEvent<EnvironmentContainer.EnvironmentContainerEntry>, IBaseEvent<Content.Type>, IEvent<Content.Type>
- Enclosing interface:
ModifyEvents
public static record ModifyEvents.BiomeEnvironments(@Nonnull SeedString<SeedStringResource> seed, @Nonnull BiomeFileContext file, @Nonnull List<EnvironmentContainer.EnvironmentContainerEntry> entries, @Nonnull ModifyEvent.ContentLoader<EnvironmentContainer.EnvironmentContainerEntry> loader)
extends Record
implements ModifyEvent<EnvironmentContainer.EnvironmentContainerEntry>
The biome environment loading event can be used to modify the environment container entries for a biome.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ModifyEvent
ModifyEvent.ContentLoader<T>, ModifyEvent.SeedGenerator<K> -
Constructor Summary
ConstructorsConstructorDescriptionBiomeEnvironments(SeedString<SeedStringResource> seed, BiomeFileContext file, List<EnvironmentContainer.EnvironmentContainerEntry> entries, ModifyEvent.ContentLoader<EnvironmentContainer.EnvironmentContainerEntry> loader) Creates an instance of aBiomeEnvironmentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.loader()Returns the value of theloaderrecord component.seed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.type()Get the type of event.
-
Constructor Details
-
BiomeEnvironments
public BiomeEnvironments(@Nonnull SeedString<SeedStringResource> seed, @Nonnull BiomeFileContext file, @Nonnull List<EnvironmentContainer.EnvironmentContainerEntry> entries, @Nonnull ModifyEvent.ContentLoader<EnvironmentContainer.EnvironmentContainerEntry> loader) Creates an instance of aBiomeEnvironmentsrecord class.- Parameters:
seed- the value for theseedrecord componentfile- the value for thefilerecord componententries- the value for theentriesrecord componentloader- the value for theloaderrecord component
-
-
Method Details
-
type
Description copied from interface:ModifyEventGet the type of event.- Specified by:
typein interfaceModifyEvent<EnvironmentContainer.EnvironmentContainerEntry>- Returns:
- the type of event.
-
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). -
seed
Returns the value of theseedrecord component.- Specified by:
seedin interfaceModifyEvent<EnvironmentContainer.EnvironmentContainerEntry>- Returns:
- the value of the
seedrecord component
-
file
Returns the value of thefilerecord component.- Specified by:
filein interfaceModifyEvent<EnvironmentContainer.EnvironmentContainerEntry>- Returns:
- the value of the
filerecord component
-
entries
Returns the value of theentriesrecord component.- Specified by:
entriesin interfaceModifyEvent<EnvironmentContainer.EnvironmentContainerEntry>- Returns:
- the value of the
entriesrecord component
-
loader
Returns the value of theloaderrecord component.- Specified by:
loaderin interfaceModifyEvent<EnvironmentContainer.EnvironmentContainerEntry>- Returns:
- the value of the
loaderrecord component
-