Class SimpleBlockStateProvider

java.lang.Object
com.github.darksoulq.abyssallib.world.gen.state.provider.BlockStateProvider
com.github.darksoulq.abyssallib.world.gen.state.provider.impl.SimpleBlockStateProvider

public class SimpleBlockStateProvider extends BlockStateProvider
A block state provider that always returns a single, unchanging block state.
  • Field Details

  • Constructor Details

    • SimpleBlockStateProvider

      public SimpleBlockStateProvider(BlockInfo state)
      Constructs a new SimpleBlockStateProvider.
      Parameters:
      state - The static block info to provide.
  • Method Details

    • getState

      public BlockInfo getState(Random random, org.bukkit.Location location)
      Returns the configured static block state regardless of location or randomness.
      Specified by:
      getState in class BlockStateProvider
      Parameters:
      random - The random source.
      location - The placement location.
      Returns:
      The static block info.
    • getType

      public BlockStateProviderType<?> getType()
      Retrieves the specific type definition for this provider.
      Specified by:
      getType in class BlockStateProvider
      Returns:
      The block state provider type.