Interface JavaBlockState
public interface JavaBlockState
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.checker.index.qual.NonNegative floatGets the block hardness of the block statestatic JavaBlockState.Builderbuilder()Creates a newJavaBlockState.BuilderinstancebooleanGets whether the block state can be broken with handGets the collision of the block statebooleanDeprecated, for removal: This API element is subject to removal in a future version.since 2.4.0: does not have an effect.Gets the identifier of the block state@org.checkerframework.checker.index.qual.NonNegative intjavaId()Gets the Java ID of the block state@Nullable StringpickItem()Deprecated, for removal: This API element is subject to removal in a future version.since 2.9.0: the pick item is sent by the Java server since Java Edition 1.21.9@Nullable StringGets the piston behavior of the block state@org.checkerframework.checker.index.qual.NonNegative intGets the state group ID of the block statebooleanGets whether the block state is waterlogged
-
Method Details
-
identifier
String identifier()Gets the identifier of the block state- Returns:
- the identifier of the block state
-
javaId
@org.checkerframework.checker.index.qual.NonNegative int javaId()Gets the Java ID of the block state- Returns:
- the Java ID of the block state
-
stateGroupId
@org.checkerframework.checker.index.qual.NonNegative int stateGroupId()Gets the state group ID of the block state- Returns:
- the state group ID of the block state
-
blockHardness
@org.checkerframework.checker.index.qual.NonNegative float blockHardness()Gets the block hardness of the block state- Returns:
- the block hardness of the block state
-
waterlogged
boolean waterlogged()Gets whether the block state is waterlogged- Returns:
- whether the block state is waterlogged
-
collision
JavaBoundingBox[] collision()Gets the collision of the block state- Returns:
- the collision of the block state
-
canBreakWithHand
boolean canBreakWithHand()Gets whether the block state can be broken with hand- Returns:
- whether the block state can be broken with hand
-
pickItem
Deprecated, for removal: This API element is subject to removal in a future version.since 2.9.0: the pick item is sent by the Java server since Java Edition 1.21.9Gets the pick item of the block stateThis method is deprecated for removal and will be removed in Geyser 2.13.0.
- Returns:
- the pick item of the block state
-
pistonBehavior
@Nullable String pistonBehavior()Gets the piston behavior of the block state- Returns:
- the piston behavior of the block state
-
hasBlockEntity
Deprecated, for removal: This API element is subject to removal in a future version.since 2.4.0: does not have an effect. If you were using this to set piston behavior, usepistonBehavior()instead.Gets whether the block state has a block entityThis method is deprecated for removal and will be removed in Geyser 2.13.0.
- Returns:
- whether the block state has block entity
-
builder
Creates a newJavaBlockState.Builderinstance- Returns:
- a new
JavaBlockState.Builderinstance
-