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 named net/minecraft/world/gen/feature/DiskFeatureConfig
intermediary net/minecraft/class_6577
official eeb
named stateProvider
intermediary comp_715
official b
named target
intermediary comp_716
official c
named radius
intermediary comp_81
official d
named halfHeight
intermediary comp_82
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DiskFeatureConfig> private final int
The field for thehalfHeight
record component.private final IntProvider
The field for theradius
record component.private final PredicatedStateProvider
The field for thestateProvider
record component.private final BlockPredicate
The field for thetarget
record component.Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfig
DEFAULT
-
Constructor Summary
ConstructorDescriptionDiskFeatureConfig
(PredicatedStateProvider predicatedStateProvider, BlockPredicate blockPredicate, IntProvider intProvider, int int2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thehalfHeight
record component.final int
hashCode()
Returns a hash code value for this object.radius()
Returns the value of theradius
record component.Returns the value of thestateProvider
record component.target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.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
-
stateProvider
The field for thestateProvider
record component. -
target
The field for thetarget
record component. -
radius
The field for theradius
record component. -
halfHeight
private final int halfHeightThe field for thehalfHeight
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/feature/DiskFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_34698
Lnet/minecraft/class_6577;field_34698:Lcom/mojang/serialization/Codec;
official a
Leeb;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DiskFeatureConfig
public DiskFeatureConfig(PredicatedStateProvider predicatedStateProvider, BlockPredicate blockPredicate, IntProvider intProvider, int int2)
-
-
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 '=='. -
stateProvider
Returns the value of thestateProvider
record component.- Returns:
- the value of the
stateProvider
record component
-
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-
radius
Returns the value of theradius
record component.- Returns:
- the value of the
radius
record component
-
halfHeight
public int halfHeight()Returns the value of thehalfHeight
record component.- Returns:
- the value of the
halfHeight
record component
-