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 - dlr- intermediary - net/minecraft/class_6625- named - net/minecraft/structure/StructureContext- official - a- intermediary - comp_133- named - resourceManager- official - b- intermediary - comp_134- named - registryManager- official - c- intermediary - comp_135- named - structureTemplateManager
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DynamicRegistryManagerThe field for theregistryManagerrecord component.private final ResourceManagerThe field for theresourceManagerrecord component.private final StructureTemplateManagerThe field for thestructureTemplateManagerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStructureContext(ResourceManager resourceManager, DynamicRegistryManager dynamicRegistryManager, StructureTemplateManager structureTemplateManager) 
- 
Method SummaryModifier 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- 
resourceManagerThe field for theresourceManagerrecord component.
- 
registryManagerThe field for theregistryManagerrecord component.
- 
structureTemplateManagerThe field for thestructureTemplateManagerrecord component.
 
- 
- 
Constructor Details- 
StructureContextpublic StructureContext(ResourceManager resourceManager, DynamicRegistryManager dynamicRegistryManager, StructureTemplateManager structureTemplateManager) 
 
- 
- 
Method Details- 
from- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldlr;a(Lagg;)Ldlr;- intermediary - method_38713- Lnet/minecraft/class_6625;method_38713(Lnet/minecraft/class_3218;)Lnet/minecraft/class_6625;- named - from- Lnet/minecraft/structure/StructureContext;from(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/structure/StructureContext;
 
- 
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).
- 
resourceManagerReturns the value of theresourceManagerrecord component.- Returns:
- the value of the resourceManagerrecord component
 
- 
registryManagerReturns the value of theregistryManagerrecord component.- Returns:
- the value of the registryManagerrecord component
 
- 
structureTemplateManagerReturns the value of thestructureTemplateManagerrecord component.- Returns:
- the value of the structureTemplateManagerrecord component
 
 
-