Package net.minecraft.world.level.block
Record Class WeatheringCopperBlocks
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.WeatheringCopperBlocks
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockThe field for theexposedrecord component.private final BlockThe field for theoxidizedrecord component.private final BlockThe field for theunaffectedrecord component.private final BlockThe field for thewaxedrecord component.private final BlockThe field for thewaxedExposedrecord component.private final BlockThe field for thewaxedOxidizedrecord component.private final BlockThe field for thewaxedWeatheredrecord component.private final BlockThe field for theweatheredrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasList()static <WaxedBlock extends Block,WeatheringBlock extends Block & WeatheringCopper>
WeatheringCopperBlockscreate(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) 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.final StringtoString()Returns a string representation of this record class.Returns the value of theunaffectedrecord component.waxed()Returns the value of thewaxedrecord component.Returns the value of thewaxedExposedrecord component.Returns the value of thewaxedOxidizedrecord component.Returns the value of thewaxedWeatheredrecord 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. -
waxed
The field for thewaxedrecord component. -
waxedExposed
The field for thewaxedExposedrecord component. -
waxedWeathered
The field for thewaxedWeatheredrecord component. -
waxedOxidized
The field for thewaxedOxidizedrecord 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 aWeatheringCopperBlocksrecord class.- Parameters:
unaffected- the value for theunaffectedrecord componentexposed- the value for theexposedrecord componentweathered- the value for theweatheredrecord componentoxidized- the value for theoxidizedrecord componentwaxed- the value for thewaxedrecord componentwaxedExposed- the value for thewaxedExposedrecord componentwaxedWeathered- the value for thewaxedWeatheredrecord componentwaxedOxidized- the value for thewaxedOxidizedrecord 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
-
waxedMapping
-
asList
-
forEach
-
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. -
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. -
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
-
waxed
Returns the value of thewaxedrecord component.- Returns:
- the value of the
waxedrecord component
-
waxedExposed
Returns the value of thewaxedExposedrecord component.- Returns:
- the value of the
waxedExposedrecord component
-
waxedWeathered
Returns the value of thewaxedWeatheredrecord component.- Returns:
- the value of the
waxedWeatheredrecord component
-
waxedOxidized
Returns the value of thewaxedOxidizedrecord component.- Returns:
- the value of the
waxedOxidizedrecord component
-