Record Class BlockBlobConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.BlockBlobConfiguration
- All Implemented Interfaces:
FeatureConfiguration
public record BlockBlobConfiguration(BlockState state, BlockPredicate canPlaceOn)
extends Record
implements FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPredicateThe field for thecanPlaceOnrecord component.static final com.mojang.serialization.Codec<BlockBlobConfiguration> private final BlockStateThe field for thestaterecord component.Fields inherited from interface FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionBlockBlobConfiguration(BlockState state, BlockPredicate canPlaceOn) Creates an instance of aBlockBlobConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanPlaceOnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface FeatureConfiguration
getFeatures
-
Field Details
-
state
The field for thestaterecord component. -
canPlaceOn
The field for thecanPlaceOnrecord component. -
CODEC
-
-
Constructor Details
-
BlockBlobConfiguration
Creates an instance of aBlockBlobConfigurationrecord class.- Parameters:
state- the value for thestaterecord componentcanPlaceOn- the value for thecanPlaceOnrecord 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). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
canPlaceOn
Returns the value of thecanPlaceOnrecord component.- Returns:
- the value of the
canPlaceOnrecord component
-