Record Class BlockItemTagId
java.lang.Object
java.lang.Record
net.minecraft.tags.BlockItemTagId
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockItemTagId(TagKey<Block> block, TagKey<Item> item) Creates an instance of aBlockItemTagIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.static BlockItemTagIdstatic BlockItemTagIdstatic BlockItemTagIdcreate(Identifier blockId, Identifier itemId) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
block
-
item
-
-
Constructor Details
-
BlockItemTagId
-
-
Method Details
-
create
-
create
-
create
-
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). -
block
-
item
-