Record Class BlockPileConfig
java.lang.Object
java.lang.Record
com.lightning.northstar.world.features.configuration.BlockPileConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record BlockPileConfig(net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider halfHeight, net.minecraft.util.valueproviders.IntProvider depth, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider airProvider)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionBlockPileConfig(net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider halfHeight, net.minecraft.util.valueproviders.IntProvider depth, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider airProvider) Creates an instance of aBlockPileConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theairProviderrecord component.net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderReturns the value of theblockProviderrecord component.net.minecraft.util.valueproviders.IntProviderdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.util.valueproviders.IntProviderReturns the value of thehalfHeightrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.util.valueproviders.IntProviderradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
Field Details
-
CODEC
-
-
Constructor Details
-
BlockPileConfig
public BlockPileConfig(net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider halfHeight, net.minecraft.util.valueproviders.IntProvider depth, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider airProvider) Creates an instance of aBlockPileConfigrecord class.- Parameters:
radius- the value for theradiusrecord componenthalfHeight- the value for thehalfHeightrecord componentdepth- the value for thedepthrecord componentblockProvider- the value for theblockProviderrecord componentairProvider- the value for theairProviderrecord component
-
-
Method Details
-
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). -
radius
public net.minecraft.util.valueproviders.IntProvider radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
halfHeight
public net.minecraft.util.valueproviders.IntProvider halfHeight()Returns the value of thehalfHeightrecord component.- Returns:
- the value of the
halfHeightrecord component
-
depth
public net.minecraft.util.valueproviders.IntProvider depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
blockProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider blockProvider()Returns the value of theblockProviderrecord component.- Returns:
- the value of the
blockProviderrecord component
-
airProvider
public net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider airProvider()Returns the value of theairProviderrecord component.- Returns:
- the value of the
airProviderrecord component
-