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 Details

    • Builder

      public Builder()
  • Method Details

    • identifier

      public GeyserJavaBlockState.Builder identifier(@NonNull String identifier)
      Specified by:
      identifier in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • javaId

      public GeyserJavaBlockState.Builder javaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
      Specified by:
      javaId in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • stateGroupId

      public GeyserJavaBlockState.Builder stateGroupId(@org.checkerframework.checker.index.qual.NonNegative int stateGroupId)
      Specified by:
      stateGroupId in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • blockHardness

      public GeyserJavaBlockState.Builder blockHardness(@org.checkerframework.checker.index.qual.NonNegative float blockHardness)
      Specified by:
      blockHardness in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • waterlogged

      public GeyserJavaBlockState.Builder waterlogged(boolean waterlogged)
      Specified by:
      waterlogged in interface org.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:
      collision in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • canBreakWithHand

      public GeyserJavaBlockState.Builder canBreakWithHand(boolean canBreakWithHand)
      Specified by:
      canBreakWithHand in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • pickItem

      @Deprecated public GeyserJavaBlockState.Builder pickItem(@Nullable String pickItem)
      Deprecated.
      Specified by:
      pickItem in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • pistonBehavior

      public GeyserJavaBlockState.Builder pistonBehavior(@Nullable String pistonBehavior)
      Specified by:
      pistonBehavior in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • hasBlockEntity

      public GeyserJavaBlockState.Builder hasBlockEntity(boolean hasBlockEntity)
      Specified by:
      hasBlockEntity in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder
    • build

      public org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState build()
      Specified by:
      build in interface org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState.Builder