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 hand@NonNull JavaBoundingBox[]Gets the collision of the block statebooleanDeprecated, for removal: This API element is subject to removal in a future version.Does not have an effect.@NonNull StringGets the identifier of the block state@org.checkerframework.checker.index.qual.NonNegative intjavaId()Gets the Java ID of the block state@Nullable StringpickItem()Deprecated.the pick item is sent by the Java server@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
@NonNull 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
@NonNull 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.the pick item is sent by the Java serverGets the pick item of the block state- 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.Does not have an effect. If you were using this to set piston behavior, usepistonBehavior()instead.Gets whether the block state has a block entity- Returns:
- whether the block state has block entity
-
builder
Creates a newJavaBlockState.Builderinstance- Returns:
- a new
JavaBlockState.Builderinstance
-