Record Class WeatheringCopperBlocks

java.lang.Object
java.lang.Record
net.minecraft.world.level.block.WeatheringCopperBlocks

public record WeatheringCopperBlocks(Block unaffected, Block exposed, Block weathered, Block oxidized, Block waxed, Block waxedExposed, Block waxedWeathered, Block waxedOxidized) extends Record
  • Field Details

    • unaffected

      private final Block unaffected
      The field for the unaffected record component.
    • exposed

      private final Block exposed
      The field for the exposed record component.
    • weathered

      private final Block weathered
      The field for the weathered record component.
    • oxidized

      private final Block oxidized
      The field for the oxidized record component.
    • waxed

      private final Block waxed
      The field for the waxed record component.
    • waxedExposed

      private final Block waxedExposed
      The field for the waxedExposed record component.
    • waxedWeathered

      private final Block waxedWeathered
      The field for the waxedWeathered record component.
    • waxedOxidized

      private final Block waxedOxidized
      The field for the waxedOxidized record component.
  • Constructor Details

    • WeatheringCopperBlocks

      public WeatheringCopperBlocks(Block unaffected, Block exposed, Block weathered, Block oxidized, Block waxed, Block waxedExposed, Block waxedWeathered, Block waxedOxidized)
      Creates an instance of a WeatheringCopperBlocks record class.
      Parameters:
      unaffected - the value for the unaffected record component
      exposed - the value for the exposed record component
      weathered - the value for the weathered record component
      oxidized - the value for the oxidized record component
      waxed - the value for the waxed record component
      waxedExposed - the value for the waxedExposed record component
      waxedWeathered - the value for the waxedWeathered record component
      waxedOxidized - the value for the waxedOxidized record component
  • Method Details

    • create

      public static <WaxedBlock extends Block, WeatheringBlock extends Block & WeatheringCopper> WeatheringCopperBlocks create(String pId, org.apache.commons.lang3.function.TriFunction<String,Function<BlockBehaviour.Properties,Block>,BlockBehaviour.Properties,Block> pRegister, Function<BlockBehaviour.Properties,WaxedBlock> pWaxedBlockGetter, BiFunction<WeatheringCopper.WeatherState,BlockBehaviour.Properties,WeatheringBlock> pWeatheredBlockGetter, Function<WeatheringCopper.WeatherState,BlockBehaviour.Properties> pPropertiesGetter)
    • weatheringMapping

      public ImmutableBiMap<Block,Block> weatheringMapping()
    • waxedMapping

      public ImmutableBiMap<Block,Block> waxedMapping()
    • asList

      public ImmutableList<Block> asList()
    • forEach

      public void forEach(Consumer<Block> pAction)
    • 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.
    • unaffected

      public Block unaffected()
      Returns the value of the unaffected record component.
      Returns:
      the value of the unaffected record component
    • exposed

      public Block exposed()
      Returns the value of the exposed record component.
      Returns:
      the value of the exposed record component
    • weathered

      public Block weathered()
      Returns the value of the weathered record component.
      Returns:
      the value of the weathered record component
    • oxidized

      public Block oxidized()
      Returns the value of the oxidized record component.
      Returns:
      the value of the oxidized record component
    • waxed

      public Block waxed()
      Returns the value of the waxed record component.
      Returns:
      the value of the waxed record component
    • waxedExposed

      public Block waxedExposed()
      Returns the value of the waxedExposed record component.
      Returns:
      the value of the waxedExposed record component
    • waxedWeathered

      public Block waxedWeathered()
      Returns the value of the waxedWeathered record component.
      Returns:
      the value of the waxedWeathered record component
    • waxedOxidized

      public Block waxedOxidized()
      Returns the value of the waxedOxidized record component.
      Returns:
      the value of the waxedOxidized record component