Package org.geysermc.geyser.level.block
Class GeyserJavaBlockState.Builder
java.lang.Object
org.geysermc.geyser.level.block.GeyserJavaBlockState.Builder
- All Implemented Interfaces:
org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
- Enclosing class:
GeyserJavaBlockState
public static class GeyserJavaBlockState.Builder
extends Object
implements org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockHardness(@org.checkerframework.checker.index.qual.NonNegative float blockHardness) org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockStatebuild()canBreakWithHand(boolean canBreakWithHand) collision(@NonNull org.geysermc.geyser.api.block.custom.nonvanilla.JavaBoundingBox[] collision) hasBlockEntity(boolean hasBlockEntity) identifier(@NonNull String identifier) javaId(@org.checkerframework.checker.index.qual.NonNegative int javaId) Deprecated.pistonBehavior(@Nullable String pistonBehavior) stateGroupId(@org.checkerframework.checker.index.qual.NonNegative int stateGroupId) waterlogged(boolean waterlogged)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identifier
- Specified by:
identifierin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
javaId
public GeyserJavaBlockState.Builder javaId(@org.checkerframework.checker.index.qual.NonNegative int javaId) - Specified by:
javaIdin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
stateGroupId
public GeyserJavaBlockState.Builder stateGroupId(@org.checkerframework.checker.index.qual.NonNegative int stateGroupId) - Specified by:
stateGroupIdin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
blockHardness
public GeyserJavaBlockState.Builder blockHardness(@org.checkerframework.checker.index.qual.NonNegative float blockHardness) - Specified by:
blockHardnessin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
waterlogged
- Specified by:
waterloggedin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
collision
public GeyserJavaBlockState.Builder collision(@NonNull org.geysermc.geyser.api.block.custom.nonvanilla.JavaBoundingBox[] collision) - Specified by:
collisionin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
canBreakWithHand
- Specified by:
canBreakWithHandin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
pickItem
Deprecated.- Specified by:
pickItemin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
pistonBehavior
- Specified by:
pistonBehaviorin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
hasBlockEntity
- Specified by:
hasBlockEntityin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-
build
public org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState build()- Specified by:
buildin interfaceorg.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
-