Package net.minecraft.world.gen.feature
Record Class DiskFeatureConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.DiskFeatureConfig
- Record Components:
- stateProvider-
- target-
- radius-
- halfHeight-
- All Implemented Interfaces:
- FeatureConfig
public record DiskFeatureConfig(PredicatedStateProvider stateProvider, BlockPredicate target, IntProvider radius, int halfHeight)
extends Record
implements FeatureConfig
- Mappings:
- Namespace - Name - official - dmp- intermediary - net/minecraft/class_6577- named - net/minecraft/world/gen/feature/DiskFeatureConfig- official - b- intermediary - comp_715- named - stateProvider- official - c- intermediary - comp_716- named - target- official - d- intermediary - comp_81- named - radius- official - e- intermediary - comp_82- named - halfHeight
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DiskFeatureConfig>private final intThe field for thehalfHeightrecord component.private final IntProviderThe field for theradiusrecord component.private final PredicatedStateProviderThe field for thestateProviderrecord component.private final BlockPredicateThe field for thetargetrecord component.Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfigDEFAULT
- 
Constructor SummaryConstructorsConstructorDescriptionDiskFeatureConfig(PredicatedStateProvider predicatedStateProvider, BlockPredicate blockPredicate, IntProvider intProvider, int int2) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thehalfHeightrecord component.final inthashCode()Returns a hash code value for this object.radius()Returns the value of theradiusrecord component.Returns the value of thestateProviderrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.feature.FeatureConfiggetDecoratedFeatures
- 
Field Details- 
stateProviderThe field for thestateProviderrecord component.
- 
targetThe field for thetargetrecord component.
- 
radiusThe field for theradiusrecord component.
- 
halfHeightprivate final int halfHeightThe field for thehalfHeightrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldmp;a:Lcom/mojang/serialization/Codec;- intermediary - field_34698- Lnet/minecraft/class_6577;field_34698:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/world/gen/feature/DiskFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
DiskFeatureConfigpublic DiskFeatureConfig(PredicatedStateProvider predicatedStateProvider, BlockPredicate blockPredicate, IntProvider intProvider, int int2) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
stateProviderReturns the value of thestateProviderrecord component.- Returns:
- the value of the stateProviderrecord component
 
- 
targetReturns the value of thetargetrecord component.- Returns:
- the value of the targetrecord component
 
- 
radiusReturns the value of theradiusrecord component.- Returns:
- the value of the radiusrecord component
 
- 
halfHeightpublic int halfHeight()Returns the value of thehalfHeightrecord component.- Returns:
- the value of the halfHeightrecord component
 
 
-