Package net.minecraft.structure
Record Class StructureContext
java.lang.Object
java.lang.Record
net.minecraft.structure.StructureContext
- Record Components:
resourceManager-registryManager-structureTemplateManager-
public record StructureContext(ResourceManager resourceManager, DynamicRegistryManager registryManager, StructureTemplateManager structureTemplateManager)
extends Record
- Mappings:
Namespace Name official dsnintermediary net/minecraft/class_6625named net/minecraft/structure/StructureContextofficial aintermediary comp_133named resourceManagerofficial bintermediary comp_134named registryManagerofficial cintermediary comp_135named structureTemplateManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DynamicRegistryManagerThe field for theregistryManagerrecord component.private final ResourceManagerThe field for theresourceManagerrecord component.private final StructureTemplateManagerThe field for thestructureTemplateManagerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStructureContext(ResourceManager resourceManager, DynamicRegistryManager dynamicRegistryManager, StructureTemplateManager structureTemplateManager) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static StructureContextfrom(ServerWorld world) final inthashCode()Returns a hash code value for this object.Returns the value of theregistryManagerrecord component.Returns the value of theresourceManagerrecord component.Returns the value of thestructureTemplateManagerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
resourceManager
The field for theresourceManagerrecord component. -
registryManager
The field for theregistryManagerrecord component. -
structureTemplateManager
The field for thestructureTemplateManagerrecord component.
-
-
Constructor Details
-
StructureContext
public StructureContext(ResourceManager resourceManager, DynamicRegistryManager dynamicRegistryManager, StructureTemplateManager structureTemplateManager)
-
-
Method Details
-
from
- Mappings:
Namespace Name Mixin selector official aLdsn;a(Laif;)Ldsn;intermediary method_38713Lnet/minecraft/class_6625;method_38713(Lnet/minecraft/class_3218;)Lnet/minecraft/class_6625;named fromLnet/minecraft/structure/StructureContext;from(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/structure/StructureContext;
-
toString
Returns 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. -
hashCode
public 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. -
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). -
resourceManager
Returns the value of theresourceManagerrecord component.- Returns:
- the value of the
resourceManagerrecord component
-
registryManager
Returns the value of theregistryManagerrecord component.- Returns:
- the value of the
registryManagerrecord component
-
structureTemplateManager
Returns the value of thestructureTemplateManagerrecord component.- Returns:
- the value of the
structureTemplateManagerrecord component
-