Record Class AbandonedCampStructurePools.AbandonedCampStructure
java.lang.Object
java.lang.Record
net.minecraft.data.worldgen.AbandonedCampStructurePools.AbandonedCampStructure
- Enclosing class:
AbandonedCampStructurePools
public static record AbandonedCampStructurePools.AbandonedCampStructure(ResourceKey<StructureTemplatePool> campStructureDirectory, ResourceKey<StructureTemplatePool> tentStructureDirectory, String name)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<StructureTemplatePool> The field for thecampStructureDirectoryrecord component.private final StringThe field for thenamerecord component.private final ResourceKey<StructureTemplatePool> The field for thetentStructureDirectoryrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAbandonedCampStructure(ResourceKey<StructureTemplatePool> campStructureDirectory, ResourceKey<StructureTemplatePool> tentStructureDirectory, String name) Creates an instance of aAbandonedCampStructurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecampStructureDirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thetentStructureDirectoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
campStructureDirectory
The field for thecampStructureDirectoryrecord component. -
tentStructureDirectory
The field for thetentStructureDirectoryrecord component. -
name
The field for thenamerecord component.
-
-
Constructor Details
-
AbandonedCampStructure
public AbandonedCampStructure(ResourceKey<StructureTemplatePool> campStructureDirectory, ResourceKey<StructureTemplatePool> tentStructureDirectory, String name) Creates an instance of aAbandonedCampStructurerecord class.- Parameters:
campStructureDirectory- the value for thecampStructureDirectoryrecord componenttentStructureDirectory- the value for thetentStructureDirectoryrecord componentname- the value for thenamerecord 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). -
campStructureDirectory
Returns the value of thecampStructureDirectoryrecord component.- Returns:
- the value of the
campStructureDirectoryrecord component
-
tentStructureDirectory
Returns the value of thetentStructureDirectoryrecord component.- Returns:
- the value of the
tentStructureDirectoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-