Record Class VanillaBlockCodecs.WeatheringSet
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaBlockCodecs.WeatheringSet
- Enclosing class:
VanillaBlockCodecs
public static record VanillaBlockCodecs.WeatheringSet(net.minecraft.world.level.block.state.properties.BlockSetType blockSetType, net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaBlockCodecs.WeatheringSet> -
Constructor Summary
ConstructorsConstructorDescriptionWeatheringSet(net.minecraft.world.level.block.state.properties.BlockSetType blockSetType, net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState) Creates an instance of aWeatheringSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.properties.BlockSetTypeReturns the value of theblockSetTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.net.minecraft.world.level.block.WeatheringCopper.WeatherStateReturns the value of theweatherStaterecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
WeatheringSet
public WeatheringSet(net.minecraft.world.level.block.state.properties.BlockSetType blockSetType, net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState) Creates an instance of aWeatheringSetrecord class.- Parameters:
blockSetType- the value for theblockSetTyperecord componentweatherState- the value for theweatherStaterecord component
-
-
Method Details
-
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). -
blockSetType
public net.minecraft.world.level.block.state.properties.BlockSetType blockSetType()Returns the value of theblockSetTyperecord component.- Returns:
- the value of the
blockSetTyperecord component
-
weatherState
public net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState()Returns the value of theweatherStaterecord component.- Returns:
- the value of the
weatherStaterecord component
-