Record Class VanillaBlockCodecs.Brushable
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaBlockCodecs.Brushable
- Enclosing class:
VanillaBlockCodecs
public static record VanillaBlockCodecs.Brushable(net.minecraft.world.level.block.Block turnsInto, net.minecraft.sounds.SoundEvent brushSound, net.minecraft.sounds.SoundEvent brushCompletedSound)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaBlockCodecs.Brushable> -
Constructor Summary
ConstructorsConstructorDescriptionBrushable(net.minecraft.world.level.block.Block turnsInto, net.minecraft.sounds.SoundEvent brushSound, net.minecraft.sounds.SoundEvent brushCompletedSound) Creates an instance of aBrushablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.sounds.SoundEventReturns the value of thebrushCompletedSoundrecord component.net.minecraft.sounds.SoundEventReturns the value of thebrushSoundrecord 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.BlockReturns the value of theturnsIntorecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Brushable
public Brushable(net.minecraft.world.level.block.Block turnsInto, net.minecraft.sounds.SoundEvent brushSound, net.minecraft.sounds.SoundEvent brushCompletedSound) Creates an instance of aBrushablerecord class.- Parameters:
turnsInto- the value for theturnsIntorecord componentbrushSound- the value for thebrushSoundrecord componentbrushCompletedSound- the value for thebrushCompletedSoundrecord 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). -
turnsInto
public net.minecraft.world.level.block.Block turnsInto()Returns the value of theturnsIntorecord component.- Returns:
- the value of the
turnsIntorecord component
-
brushSound
public net.minecraft.sounds.SoundEvent brushSound()Returns the value of thebrushSoundrecord component.- Returns:
- the value of the
brushSoundrecord component
-
brushCompletedSound
public net.minecraft.sounds.SoundEvent brushCompletedSound()Returns the value of thebrushCompletedSoundrecord component.- Returns:
- the value of the
brushCompletedSoundrecord component
-