Record Class ConfiguredWorldCarver.Custom
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.carver.ConfiguredWorldCarver.Custom
- All Implemented Interfaces:
Wrapper, ConfiguredWorldCarver
- Enclosing interface:
ConfiguredWorldCarver
@AsOf("2.3.0")
public static record ConfiguredWorldCarver.Custom(WorldCarverType type, CarverConfiguration config)
extends Record
implements ConfiguredWorldCarver
A configured carver authored from a vanilla algorithm and a custom config.
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface ConfiguredWorldCarver
ConfiguredWorldCarver.Custom, ConfiguredWorldCarver.Factory, ConfiguredWorldCarver.ReferenceNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface ConfiguredWorldCarver
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionCustom(WorldCarverType type, CarverConfiguration config) Creates an instance of aCustomrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from interface ConfiguredWorldCarver
toMinecraft
-
Constructor Details
-
Custom
Creates an instance of aCustomrecord class.- Parameters:
type- the value for thetyperecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-