Record Class ConfiguredWorldCarver.Reference
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.carver.ConfiguredWorldCarver.Reference
- All Implemented Interfaces:
Wrapper, ConfiguredWorldCarver
- Enclosing interface:
ConfiguredWorldCarver
@AsOf("2.3.0")
public static record ConfiguredWorldCarver.Reference(ResourceKey key)
extends Record
implements ConfiguredWorldCarver
A reference to an already-registered configured carver.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface ConfiguredWorldCarver
toMinecraft
-
Constructor Details
-
Reference
Creates an instance of aReferencerecord class.- Parameters:
key- the value for thekeyrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-