Record Class WeatheringCopperItems

java.lang.Object
java.lang.Record
net.minecraft.world.item.WeatheringCopperItems

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

    • unaffected

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

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

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

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

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

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

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

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

    • WeatheringCopperItems

      public WeatheringCopperItems(Item unaffected, Item exposed, Item weathered, Item oxidized, Item waxed, Item waxedExposed, Item waxedWeathered, Item waxedOxidized)
      Creates an instance of a WeatheringCopperItems 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 WeatheringCopperItems create(WeatheringCopperBlocks pBlocks, Function<Block,Item> pItemGetter)
    • waxedMapping

      public ImmutableBiMap<Item,Item> waxedMapping()
    • forEach

      public void forEach(Consumer<Item> 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 Item unaffected()
      Returns the value of the unaffected record component.
      Returns:
      the value of the unaffected record component
    • exposed

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

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

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

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

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

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

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