Package net.minecraft.world.gen.feature
Record Class RandomPatchFeatureConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.RandomPatchFeatureConfig
- Record Components:
- tries-
- xzSpread-
- ySpread-
- feature-
- All Implemented Interfaces:
- FeatureConfig
public record RandomPatchFeatureConfig(int tries, int xzSpread, int ySpread, RegistryEntry<PlacedFeature> feature)
extends Record
implements FeatureConfig
- Mappings:
- Namespace - Name - official - dnf- intermediary - net/minecraft/class_4638- named - net/minecraft/world/gen/feature/RandomPatchFeatureConfig- official - b- intermediary - comp_149- named - tries- official - c- intermediary - comp_150- named - xzSpread- official - d- intermediary - comp_151- named - ySpread- official - e- intermediary - comp_155- named - feature
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomPatchFeatureConfig>private final RegistryEntry<PlacedFeature>The field for thefeaturerecord component.private final intThe field for thetriesrecord component.private final intThe field for thexzSpreadrecord component.private final intThe field for theySpreadrecord component.Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfigDEFAULT
- 
Constructor SummaryConstructorsConstructorDescriptionRandomPatchFeatureConfig(int int2, int int3, int int4, RegistryEntry<PlacedFeature> registryEntry) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.inttries()Returns the value of thetriesrecord component.intxzSpread()Returns the value of thexzSpreadrecord component.intySpread()Returns the value of theySpreadrecord component.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- 
triesprivate final int triesThe field for thetriesrecord component.
- 
xzSpreadprivate final int xzSpreadThe field for thexzSpreadrecord component.
- 
ySpreadprivate final int ySpreadThe field for theySpreadrecord component.
- 
featureThe field for thefeaturerecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldnf;a:Lcom/mojang/serialization/Codec;- intermediary - field_24902- Lnet/minecraft/class_4638;field_24902:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/world/gen/feature/RandomPatchFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
RandomPatchFeatureConfigpublic RandomPatchFeatureConfig(int int2, int int3, int int4, RegistryEntry<PlacedFeature> registryEntry) 
 
- 
- 
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 '=='.
- 
triespublic int tries()Returns the value of thetriesrecord component.- Returns:
- the value of the triesrecord component
 
- 
xzSpreadpublic int xzSpread()Returns the value of thexzSpreadrecord component.- Returns:
- the value of the xzSpreadrecord component
 
- 
ySpreadpublic int ySpread()Returns the value of theySpreadrecord component.- Returns:
- the value of the ySpreadrecord component
 
- 
featureReturns the value of thefeaturerecord component.- Returns:
- the value of the featurerecord component
 
 
-