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-allowedOn-disallowedOn-onlyInAir-feature-
- All Implemented Interfaces:
FeatureConfig
public record RandomPatchFeatureConfig(int tries, int xzSpread, int ySpread, Set<Block> allowedOn, Set<BlockState> disallowedOn, boolean onlyInAir, Supplier<ConfiguredFeature<?,?>> feature)
extends Record
implements FeatureConfig
- Mappings:
Namespace Name official cyeintermediary net/minecraft/class_4638named net/minecraft/world/gen/feature/RandomPatchFeatureConfigofficial bintermediary comp_149named triesofficial cintermediary comp_150named xzSpreadofficial dintermediary comp_151named ySpreadofficial eintermediary comp_152named allowedOnofficial fintermediary comp_153named disallowedOnofficial gintermediary comp_154named onlyInAirofficial hintermediary comp_155named feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theallowedOnrecord component.static final com.mojang.serialization.Codec<RandomPatchFeatureConfig>private final Set<BlockState>The field for thedisallowedOnrecord component.private final Supplier<ConfiguredFeature<?,?>> The field for thefeaturerecord component.private final booleanThe field for theonlyInAirrecord 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.FeatureConfig
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionRandomPatchFeatureConfig(int int2, int int3, int int4, Set<Block> blacklist, Set<BlockState> set, boolean bool, Supplier<ConfiguredFeature<?, ?>> supplier) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedOnrecord component.Returns the value of thedisallowedOnrecord component.final booleanIndicates whether some other object is "equal to" this one.Supplier<ConfiguredFeature<?,?>> feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theonlyInAirrecord component.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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.feature.FeatureConfig
getDecoratedFeatures
-
Field Details
-
tries
private final int triesThe field for thetriesrecord component. -
xzSpread
private final int xzSpreadThe field for thexzSpreadrecord component. -
ySpread
private final int ySpreadThe field for theySpreadrecord component. -
allowedOn
The field for theallowedOnrecord component. -
disallowedOn
The field for thedisallowedOnrecord component. -
onlyInAir
private final boolean onlyInAirThe field for theonlyInAirrecord component. -
feature
The field for thefeaturerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLcye;a:Lcom/mojang/serialization/Codec;intermediary field_24902Lnet/minecraft/class_4638;field_24902:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/feature/RandomPatchFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RandomPatchFeatureConfig
public RandomPatchFeatureConfig(int int2, int int3, int int4, Set<Block> blacklist, Set<BlockState> set, boolean bool, Supplier<ConfiguredFeature<?, ?>> supplier) - Mappings:
Namespace Name Mixin selector official <init>Lcye;<init>(IIILjava/util/Set;Ljava/util/Set;ZLjava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_4638;<init>(IIILjava/util/Set;Ljava/util/Set;ZLjava/util/function/Supplier;)Vnamed <init>Lnet/minecraft/world/gen/feature/RandomPatchFeatureConfig;<init>(IIILjava/util/Set;Ljava/util/Set;ZLjava/util/function/Supplier;)V
-
-
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 thetriesrecord component.- Returns:
- the value of the
triesrecord component
-
xzSpread
public int xzSpread()Returns the value of thexzSpreadrecord component.- Returns:
- the value of the
xzSpreadrecord component
-
ySpread
public int ySpread()Returns the value of theySpreadrecord component.- Returns:
- the value of the
ySpreadrecord component
-
allowedOn
Returns the value of theallowedOnrecord component.- Returns:
- the value of the
allowedOnrecord component
-
disallowedOn
Returns the value of thedisallowedOnrecord component.- Returns:
- the value of the
disallowedOnrecord component
-
onlyInAir
public boolean onlyInAir()Returns the value of theonlyInAirrecord component.- Returns:
- the value of the
onlyInAirrecord component
-
feature
Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-