Record Class ItemBlockState
java.lang.Object
java.lang.Record
net.minestom.server.item.component.ItemBlockState
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ItemBlockState
static final BinaryTagSerializer
<ItemBlockState> static final NetworkBuffer.Type
<ItemBlockState> -
Constructor Summary
ConstructorDescriptionItemBlockState
(@NotNull Map<String, String> properties) Creates an instance of aItemBlockState
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Block
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theproperties
record component.final String
toString()
Returns a string representation of this record class.@NotNull ItemBlockState
-
Field Details
-
EMPTY
-
NETWORK_TYPE
-
NBT_TYPE
-
-
Constructor Details
-
ItemBlockState
Creates an instance of aItemBlockState
record class.- Parameters:
properties
- the value for theproperties
record component
-
-
Method Details
-
with
@NotNull public @NotNull ItemBlockState with(@NotNull @NotNull String key, @NotNull @NotNull String value) -
apply
-
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)
. -
properties
Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-