Interface JavaBlockState.Builder
- Enclosing interface:
JavaBlockState
public static interface JavaBlockState.Builder
-
Method Summary
Modifier and TypeMethodDescriptionblockHardness(@org.checkerframework.checker.index.qual.NonNegative float blockHardness) build()canBreakWithHand(boolean canBreakWithHand) collision(JavaBoundingBox[] collision) hasBlockEntity(boolean hasBlockEntity) Deprecated, for removal: This API element is subject to removal in a future version.since 2.4.0: does not have an effect.identifier(String identifier) javaId(@org.checkerframework.checker.index.qual.NonNegative int javaId) Deprecated, for removal: This API element is subject to removal in a future version.pistonBehavior(@Nullable String pistonBehavior) stateGroupId(@org.checkerframework.checker.index.qual.NonNegative int stateGroupId) waterlogged(boolean waterlogged)
-
Method Details
-
identifier
-
javaId
-
stateGroupId
JavaBlockState.Builder stateGroupId(@org.checkerframework.checker.index.qual.NonNegative int stateGroupId) -
blockHardness
JavaBlockState.Builder blockHardness(@org.checkerframework.checker.index.qual.NonNegative float blockHardness) -
waterlogged
-
collision
-
canBreakWithHand
-
pickItem
@Deprecated(since="2.9.0", forRemoval=true) JavaBlockState.Builder pickItem(@Nullable String pickItem) Deprecated, for removal: This API element is subject to removal in a future version.This method is deprecated for removal and will be removed in Geyser 2.13.0. -
pistonBehavior
-
hasBlockEntity
@Deprecated(since="2.4.0", forRemoval=true) JavaBlockState.Builder hasBlockEntity(boolean 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(String)instead.This method is deprecated for removal and will be removed in Geyser 2.13.0. -
build
JavaBlockState build()
-