Record Class WeatheringCopperCollection.ByState<T>
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.WeatheringCopperCollection.ByState<T>
- Enclosing class:
WeatheringCopperCollection<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> WeatheringCopperCollection.ByState<T> create(T value) final booleanIndicates whether some other object is "equal to" this one.exposed()Returns the value of theexposedrecord component.voidfinal inthashCode()Returns a hash code value for this object.oxidized()Returns the value of theoxidizedrecord component.voidprogressMapping(BiConsumer<T, T> consumer) final StringtoString()Returns a string representation of this record class.Returns the value of theunaffectedrecord component.Returns the value of theweatheredrecord component.
-
Field Details
-
unaffected
The field for theunaffectedrecord component. -
exposed
The field for theexposedrecord component. -
weathered
The field for theweatheredrecord component. -
oxidized
The field for theoxidizedrecord component.
-
-
Constructor Details
-
ByState
Creates an instance of aByStaterecord class.- Parameters:
unaffected- the value for theunaffectedrecord componentexposed- the value for theexposedrecord componentweathered- the value for theweatheredrecord componentoxidized- the value for theoxidizedrecord component
-
-
Method Details
-
create
-
map
-
pick
-
forEach
-
progressMapping
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
unaffected
Returns the value of theunaffectedrecord component.- Returns:
- the value of the
unaffectedrecord component
-
exposed
Returns the value of theexposedrecord component.- Returns:
- the value of the
exposedrecord component
-
weathered
Returns the value of theweatheredrecord component.- Returns:
- the value of the
weatheredrecord component
-
oxidized
Returns the value of theoxidizedrecord component.- Returns:
- the value of the
oxidizedrecord component
-