Record Class BlockStateParser.TagResult
java.lang.Object
java.lang.Record
net.minecraft.commands.arguments.blocks.BlockStateParser.TagResult
- Enclosing class:
BlockStateParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable CompoundTagThe field for thenbtrecord component.The field for thetagrecord component.The field for thevaguePropertiesrecord component. -
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.@Nullable CompoundTagnbt()Returns the value of thenbtrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevaguePropertiesrecord component.
-
Field Details
-
tag
-
vagueProperties
-
nbt
The field for thenbtrecord component.
-
-
Constructor Details
-
TagResult
public TagResult(HolderSet<Block> tag, Map<String, String> vagueProperties, @Nullable CompoundTag nbt) Creates an instance of aTagResultrecord class.- Parameters:
tag- the value for thetagrecord componentvagueProperties- the value for thevaguePropertiesrecord componentnbt- the value for thenbtrecord 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). -
tag
-
vagueProperties
-
nbt
Returns the value of thenbtrecord component.- Returns:
- the value of the
nbtrecord component
-