Record Class StructureMusicImpl.MusicAndRequirement
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.client.helper.StructureMusicImpl.MusicAndRequirement
- Enclosing class:
StructureMusicImpl
public static record StructureMusicImpl.MusicAndRequirement(net.minecraft.world.attribute.BackgroundMusic music, boolean useFulLBox)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMusicAndRequirement(net.minecraft.world.attribute.BackgroundMusic music, boolean useFulLBox) Creates an instance of aMusicAndRequirementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.attribute.BackgroundMusicmusic()Returns the value of themusicrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseFulLBoxrecord component.
-
Constructor Details
-
MusicAndRequirement
public MusicAndRequirement(net.minecraft.world.attribute.BackgroundMusic music, boolean useFulLBox) Creates an instance of aMusicAndRequirementrecord class.- Parameters:
music- the value for themusicrecord componentuseFulLBox- the value for theuseFulLBoxrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
music
public net.minecraft.world.attribute.BackgroundMusic music()Returns the value of themusicrecord component.- Returns:
- the value of the
musicrecord component
-
useFulLBox
public boolean useFulLBox()Returns the value of theuseFulLBoxrecord component.- Returns:
- the value of the
useFulLBoxrecord component
-