Record Class SurfaceRules.NotConditionSource
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.SurfaceRules.NotConditionSource
- All Implemented Interfaces:
- Function<SurfaceRules.Context,,- SurfaceRules.Condition> - SurfaceRules.ConditionSource
- Enclosing class:
- SurfaceRules
static record SurfaceRules.NotConditionSource(SurfaceRules.ConditionSource target)
extends Record
implements SurfaceRules.ConditionSource
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final KeyDispatchDataCodec<SurfaceRules.NotConditionSource>private final SurfaceRules.ConditionSourceThe field for thetargetrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aNotConditionSourcerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionapply(SurfaceRules.Context p_189674_) KeyDispatchDataCodec<? extends SurfaceRules.ConditionSource>codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
targetThe field for thetargetrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
NotConditionSourceNotConditionSource(SurfaceRules.ConditionSource target) Creates an instance of aNotConditionSourcerecord class.- Parameters:
- target- the value for the- targetrecord component
 
 
- 
- 
Method Details- 
codec- Specified by:
- codecin interface- SurfaceRules.ConditionSource
 
- 
apply- Specified by:
- applyin interface- Function<SurfaceRules.Context,- SurfaceRules.Condition> 
 
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
targetReturns the value of thetargetrecord component.- Returns:
- the value of the targetrecord component
 
 
-