Record Class MaterialRules.StoneDepthMaterialCondition
java.lang.Object
java.lang.Record
net.minecraft.world.gen.surfacebuilder.MaterialRules.StoneDepthMaterialCondition
- Record Components:
- offset-
- addSurfaceDepth-
- secondaryDepthRange-
- surfaceType-
- All Implemented Interfaces:
- Function<MaterialRules.MaterialRuleContext,,- MaterialRules.BooleanSupplier> - MaterialRules.MaterialCondition
- Enclosing class:
- MaterialRules
private static record MaterialRules.StoneDepthMaterialCondition(int offset, boolean addSurfaceDepth, int secondaryDepthRange, VerticalSurfaceType surfaceType)
extends Record
implements MaterialRules.MaterialCondition
- Mappings:
- Namespace - Name - official - dib$t- intermediary - net/minecraft/class_6686$class_6713- named - net/minecraft/world/gen/surfacebuilder/MaterialRules$StoneDepthMaterialCondition- official - a- intermediary - comp_276- named - offset- official - c- intermediary - comp_211- named - addSurfaceDepth- official - d- intermediary - comp_277- named - secondaryDepthRange- official - e- intermediary - comp_212- named - surfaceType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theaddSurfaceDepthrecord component.(package private) static final CodecHolder<MaterialRules.StoneDepthMaterialCondition>private final intThe field for theoffsetrecord component.private final intThe field for thesecondaryDepthRangerecord component.private final VerticalSurfaceTypeThe field for thesurfaceTyperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStoneDepthMaterialCondition(int int2, boolean bool, int int3, VerticalSurfaceType verticalSurfaceType) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the value of theaddSurfaceDepthrecord component.apply(MaterialRules.MaterialRuleContext materialRuleContext) CodecHolder<? extends MaterialRules.MaterialCondition>codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffset()Returns the value of theoffsetrecord component.intReturns the value of thesecondaryDepthRangerecord component.Returns the value of thesurfaceTyperecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
offsetprivate final int offsetThe field for theoffsetrecord component.
- 
addSurfaceDepthprivate final boolean addSurfaceDepthThe field for theaddSurfaceDepthrecord component.
- 
secondaryDepthRangeprivate final int secondaryDepthRangeThe field for thesecondaryDepthRangerecord component.
- 
surfaceTypeThe field for thesurfaceTyperecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldib$t;f:Laou;- intermediary - field_35257- Lnet/minecraft/class_6686$class_6713;field_35257:Lnet/minecraft/class_7243;- named - CODEC- Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$StoneDepthMaterialCondition;CODEC:Lnet/minecraft/util/dynamic/CodecHolder;
 
 
- 
- 
Constructor Details- 
StoneDepthMaterialConditionStoneDepthMaterialCondition(int int2, boolean bool, int int3, VerticalSurfaceType verticalSurfaceType) 
 
- 
- 
Method Details- 
codec- Specified by:
- codecin interface- MaterialRules.MaterialCondition
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldib$f;a()Laou;- intermediary - method_39064- Lnet/minecraft/class_6686$class_6693;method_39064()Lnet/minecraft/class_7243;- named - codec- Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialCondition;codec()Lnet/minecraft/util/dynamic/CodecHolder;
 
- 
apply- Specified by:
- applyin interface- Function<MaterialRules.MaterialRuleContext,- MaterialRules.BooleanSupplier> 
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldib$t;a(Ldib$g;)Ldib$e;- intermediary - method_39090- Lnet/minecraft/class_6686$class_6713;method_39090(Lnet/minecraft/class_6686$class_6694;)Lnet/minecraft/class_6686$class_6692;- named - apply- Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$StoneDepthMaterialCondition;apply(Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$MaterialRuleContext;)Lnet/minecraft/world/gen/surfacebuilder/MaterialRules$BooleanSupplier;
 
- 
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 '=='.
- 
offsetpublic int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the offsetrecord component
 
- 
addSurfaceDepthpublic boolean addSurfaceDepth()Returns the value of theaddSurfaceDepthrecord component.- Returns:
- the value of the addSurfaceDepthrecord component
 
- 
secondaryDepthRangepublic int secondaryDepthRange()Returns the value of thesecondaryDepthRangerecord component.- Returns:
- the value of the secondaryDepthRangerecord component
 
- 
surfaceTypeReturns the value of thesurfaceTyperecord component.- Returns:
- the value of the surfaceTyperecord component
 
 
-