Package net.minecraft.world.gen.feature
Record Class DiskFeatureConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.DiskFeatureConfig
- Record Components:
state-radius-halfHeight-targets-
- All Implemented Interfaces:
FeatureConfig
public record DiskFeatureConfig(BlockState state, IntProvider radius, int halfHeight, List<BlockState> targets)
extends Record
implements FeatureConfig
- Mappings:
Namespace Name official czwintermediary net/minecraft/class_6577named net/minecraft/world/gen/feature/DiskFeatureConfigofficial bintermediary comp_80named stateofficial cintermediary comp_81named radiusofficial dintermediary comp_82named halfHeightofficial eintermediary comp_83named targets
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DiskFeatureConfig>private final intThe field for thehalfHeightrecord component.private final IntProviderThe field for theradiusrecord component.private final BlockStateThe field for thestaterecord component.private final List<BlockState>The field for thetargetsrecord component.Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfig
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionDiskFeatureConfig(BlockState blockState, IntProvider intProvider, int int2, List<BlockState> list) -
Method Summary
Modifier 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.state()Returns the value of thestaterecord component.targets()Returns the value of thetargetsrecord 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.gen.feature.FeatureConfig
getDecoratedFeatures
-
Field Details
-
state
The field for thestaterecord component. -
radius
The field for theradiusrecord component. -
halfHeight
private final int halfHeightThe field for thehalfHeightrecord component. -
targets
The field for thetargetsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLczw;a:Lcom/mojang/serialization/Codec;intermediary field_34698Lnet/minecraft/class_6577;field_34698:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/feature/DiskFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DiskFeatureConfig
public DiskFeatureConfig(BlockState blockState, IntProvider intProvider, int int2, List<BlockState> list)
-
-
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 '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
radius
Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
halfHeight
public int halfHeight()Returns the value of thehalfHeightrecord component.- Returns:
- the value of the
halfHeightrecord component
-
targets
Returns the value of thetargetsrecord component.- Returns:
- the value of the
targetsrecord component
-