Package net.minecraft.structure
Record Class StructureTemplate.StructureBlockInfo
java.lang.Object
java.lang.Record
net.minecraft.structure.StructureTemplate.StructureBlockInfo
- Record Components:
- pos-
- state-
- nbt-
- Enclosing class:
- StructureTemplate
public static record StructureTemplate.StructureBlockInfo(BlockPos pos, BlockState state, @Nullable NbtCompound nbt)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/structure/StructureTemplate$StructureBlockInfo- intermediary - net/minecraft/class_3499$class_3501- official - erp$d- named - pos- intermediary - comp_1341- official - a- named - state- intermediary - comp_1342- official - b- named - nbt- intermediary - comp_1343- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final @Nullable NbtCompoundThe field for thenbtrecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStructureBlockInfo(BlockPos pos, BlockState state, @Nullable NbtCompound nbt) Creates an instance of aStructureBlockInforecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nbt()Returns the value of thenbtrecord component.pos()Returns the value of theposrecord component.state()Returns the value of thestaterecord component.toString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details
- 
Method Details- 
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).
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
stateReturns the value of thestaterecord component.- Returns:
- the value of the staterecord component
 
- 
nbtReturns the value of thenbtrecord component.- Returns:
- the value of the nbtrecord component
 
 
-