Record Class BreachPortalConfiguration
java.lang.Object
java.lang.Record
com.blamejared.the_breach.world.level.levelgen.feature.configurations.BreachPortalConfiguration
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record BreachPortalConfiguration(boolean complete)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BreachPortalConfiguration> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionBreachPortalConfiguration(boolean complete) Creates an instance of aBreachPortalConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete()Returns the value of thecompleterecord component.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.Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getSubFeatures
-
Field Details
-
CODEC
-
-
Constructor Details
-
BreachPortalConfiguration
public BreachPortalConfiguration(boolean complete) Creates an instance of aBreachPortalConfigurationrecord class.- Parameters:
complete- the value for thecompleterecord 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 with thecomparemethod from their corresponding wrapper classes. -
complete
public boolean complete()Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-