Interface SpikeConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface SpikeConfiguration extends FeatureConfiguration
An ice spike.
Since:
3.0.0
See Also:
  • Method Details

    • state

      @AsOf("3.0.0") BlockData state()
      The block to use.
      Returns:
      the block state
      Since:
      3.0.0
    • canPlaceOn

      @AsOf("3.0.0") BlockPredicate canPlaceOn()
      The predicate that defines which blocks the spike can be placed on.
      Returns:
      the predicate
      Since:
      3.0.0
    • canReplace

      @AsOf("3.0.0") BlockPredicate canReplace()
      The predicate that defines which blocks the spike can replace.
      Returns:
      the predicate
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default SpikeConfiguration.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a new builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static SpikeConfiguration of(BlockData state, BlockPredicate canPlaceOn, BlockPredicate canReplace)
      Creates a new spike configuration.
      Parameters:
      state - the block state
      canPlaceOn - the predicate that defines which blocks the spike can be placed on
      canReplace - the predicate that defines which blocks the spike can replace
      Returns:
      a new spike configuration
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static SpikeConfiguration.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0