Record Class VanillaBlockCodecs.WeatheringStairs
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaBlockCodecs.WeatheringStairs
- Enclosing class:
VanillaBlockCodecs
public static record VanillaBlockCodecs.WeatheringStairs(net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState, net.minecraft.world.level.block.state.BlockState baseState)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaBlockCodecs.WeatheringStairs> -
Constructor Summary
ConstructorsConstructorDescriptionWeatheringStairs(net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState, net.minecraft.world.level.block.state.BlockState baseState) Creates an instance of aWeatheringStairsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStateReturns the value of thebaseStaterecord 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
-
WeatheringStairs
public WeatheringStairs(net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState, net.minecraft.world.level.block.state.BlockState baseState) Creates an instance of aWeatheringStairsrecord class.- Parameters:
weatherState- the value for theweatherStaterecord componentbaseState- the value for thebaseStaterecord 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). -
weatherState
public net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState()Returns the value of theweatherStaterecord component.- Returns:
- the value of the
weatherStaterecord component
-
baseState
public net.minecraft.world.level.block.state.BlockState baseState()Returns the value of thebaseStaterecord component.- Returns:
- the value of the
baseStaterecord component
-