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 named net/minecraft/world/gen/feature/RandomPatchFeatureConfig
intermediary net/minecraft/class_4638
official ejm
named tries
intermediary comp_149
official b
named xzSpread
intermediary comp_150
official c
named ySpread
intermediary comp_151
official d
named feature
intermediary comp_155
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<RandomPatchFeatureConfig> private final RegistryEntry
<PlacedFeature> The field for thefeature
record component.private final int
The field for thetries
record component.private final int
The field for thexzSpread
record component.private final int
The field for theySpread
record component.Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfig
DEFAULT
-
Constructor Summary
ConstructorDescriptionRandomPatchFeatureConfig
(int int2, int int3, int int4, RegistryEntry<PlacedFeature> registryEntry) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.feature()
Returns the value of thefeature
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
tries()
Returns the value of thetries
record component.int
xzSpread()
Returns the value of thexzSpread
record component.int
ySpread()
Returns the value of theySpread
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.gen.feature.FeatureConfig
getDecoratedFeatures
-
Field Details
-
tries
private final int triesThe field for thetries
record component. -
xzSpread
private final int xzSpreadThe field for thexzSpread
record component. -
ySpread
private final int ySpreadThe field for theySpread
record component. -
feature
The field for thefeature
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/feature/RandomPatchFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_24902
Lnet/minecraft/class_4638;field_24902:Lcom/mojang/serialization/Codec;
official a
Lejm;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RandomPatchFeatureConfig
public RandomPatchFeatureConfig(int int2, int int3, int int4, RegistryEntry<PlacedFeature> registryEntry)
-
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
tries
public int tries()Returns the value of thetries
record component.- Returns:
- the value of the
tries
record component
-
xzSpread
public int xzSpread()Returns the value of thexzSpread
record component.- Returns:
- the value of the
xzSpread
record component
-
ySpread
public int ySpread()Returns the value of theySpread
record component.- Returns:
- the value of the
ySpread
record component
-
feature
Returns the value of thefeature
record component.- Returns:
- the value of the
feature
record component
-