Record Class ItemBlockState
java.lang.Object
java.lang.Record
net.minestom.server.item.component.ItemBlockState
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ItemBlockState
static final BinaryTagSerializer
<ItemBlockState> static final NetworkBuffer.Type
<ItemBlockState> -
Constructor Summary
ConstructorsConstructorDescriptionItemBlockState
(@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
-
-
Method Details
-
with
@NotNull public @NotNull ItemBlockState with(@NotNull @NotNull String key, @NotNull @NotNull String value) -
apply
-
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)
. -
properties
-