Record Class GeodeBlockSettings

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.GeodeBlockSettings

public record GeodeBlockSettings(BlockStateProvider fillingProvider, BlockStateProvider innerLayerProvider, BlockStateProvider alternateInnerLayerProvider, BlockStateProvider middleLayerProvider, BlockStateProvider outerLayerProvider, List<BlockState> innerPlacements, HolderSet<Block> cannotReplace, HolderSet<Block> invalidBlocks) extends Record
  • Field Details

    • fillingProvider

      private final BlockStateProvider fillingProvider
      The field for the fillingProvider record component.
    • innerLayerProvider

      private final BlockStateProvider innerLayerProvider
      The field for the innerLayerProvider record component.
    • alternateInnerLayerProvider

      private final BlockStateProvider alternateInnerLayerProvider
      The field for the alternateInnerLayerProvider record component.
    • middleLayerProvider

      private final BlockStateProvider middleLayerProvider
      The field for the middleLayerProvider record component.
    • outerLayerProvider

      private final BlockStateProvider outerLayerProvider
      The field for the outerLayerProvider record component.
    • innerPlacements

      private final List<BlockState> innerPlacements
      The field for the innerPlacements record component.
    • cannotReplace

      private final HolderSet<Block> cannotReplace
      The field for the cannotReplace record component.
    • invalidBlocks

      private final HolderSet<Block> invalidBlocks
      The field for the invalidBlocks record component.
    • CODEC

      public static final com.mojang.serialization.Codec<GeodeBlockSettings> CODEC
  • Constructor Details

    • GeodeBlockSettings

      public GeodeBlockSettings(BlockStateProvider fillingProvider, BlockStateProvider innerLayerProvider, BlockStateProvider alternateInnerLayerProvider, BlockStateProvider middleLayerProvider, BlockStateProvider outerLayerProvider, List<BlockState> innerPlacements, HolderSet<Block> cannotReplace, HolderSet<Block> invalidBlocks)
      Creates an instance of a GeodeBlockSettings record class.
      Parameters:
      fillingProvider - the value for the fillingProvider record component
      innerLayerProvider - the value for the innerLayerProvider record component
      alternateInnerLayerProvider - the value for the alternateInnerLayerProvider record component
      middleLayerProvider - the value for the middleLayerProvider record component
      outerLayerProvider - the value for the outerLayerProvider record component
      innerPlacements - the value for the innerPlacements record component
      cannotReplace - the value for the cannotReplace record component
      invalidBlocks - the value for the invalidBlocks record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fillingProvider

      public BlockStateProvider fillingProvider()
      Returns the value of the fillingProvider record component.
      Returns:
      the value of the fillingProvider record component
    • innerLayerProvider

      public BlockStateProvider innerLayerProvider()
      Returns the value of the innerLayerProvider record component.
      Returns:
      the value of the innerLayerProvider record component
    • alternateInnerLayerProvider

      public BlockStateProvider alternateInnerLayerProvider()
      Returns the value of the alternateInnerLayerProvider record component.
      Returns:
      the value of the alternateInnerLayerProvider record component
    • middleLayerProvider

      public BlockStateProvider middleLayerProvider()
      Returns the value of the middleLayerProvider record component.
      Returns:
      the value of the middleLayerProvider record component
    • outerLayerProvider

      public BlockStateProvider outerLayerProvider()
      Returns the value of the outerLayerProvider record component.
      Returns:
      the value of the outerLayerProvider record component
    • innerPlacements

      public List<BlockState> innerPlacements()
      Returns the value of the innerPlacements record component.
      Returns:
      the value of the innerPlacements record component
    • cannotReplace

      public HolderSet<Block> cannotReplace()
      Returns the value of the cannotReplace record component.
      Returns:
      the value of the cannotReplace record component
    • invalidBlocks

      public HolderSet<Block> invalidBlocks()
      Returns the value of the invalidBlocks record component.
      Returns:
      the value of the invalidBlocks record component