Record Class VanillaBlockCodecs.WeatheringChest
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaBlockCodecs.WeatheringChest
- Enclosing class:
VanillaBlockCodecs
public static record VanillaBlockCodecs.WeatheringChest(net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState, net.minecraft.sounds.SoundEvent openSound, net.minecraft.sounds.SoundEvent closeSound)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaBlockCodecs.WeatheringChest> -
Constructor Summary
ConstructorsConstructorDescriptionWeatheringChest(net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState, net.minecraft.sounds.SoundEvent openSound, net.minecraft.sounds.SoundEvent closeSound) Creates an instance of aWeatheringChestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.sounds.SoundEventReturns the value of thecloseSoundrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.sounds.SoundEventReturns the value of theopenSoundrecord component.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
-
WeatheringChest
public WeatheringChest(net.minecraft.world.level.block.WeatheringCopper.WeatherState weatherState, net.minecraft.sounds.SoundEvent openSound, net.minecraft.sounds.SoundEvent closeSound) Creates an instance of aWeatheringChestrecord class.- Parameters:
weatherState- the value for theweatherStaterecord componentopenSound- the value for theopenSoundrecord componentcloseSound- the value for thecloseSoundrecord 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
-
openSound
public net.minecraft.sounds.SoundEvent openSound()Returns the value of theopenSoundrecord component.- Returns:
- the value of the
openSoundrecord component
-
closeSound
public net.minecraft.sounds.SoundEvent closeSound()Returns the value of thecloseSoundrecord component.- Returns:
- the value of the
closeSoundrecord component
-