Record Class WoodTypeRegistry.Definition
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.registry.WoodTypeRegistry.Definition
- Enclosing class:
WoodTypeRegistry
public static record WoodTypeRegistry.Definition(net.minecraft.world.level.block.state.properties.BlockSetType blockSet, BlockRegistry.SoundType soundType, BlockRegistry.SoundType hangingSignSoundType, net.minecraft.sounds.SoundEvent fenceGateClose, net.minecraft.sounds.SoundEvent fenceGateOpen)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDefinition(net.minecraft.world.level.block.state.properties.BlockSetType blockSet, BlockRegistry.SoundType soundType, BlockRegistry.SoundType hangingSignSoundType, net.minecraft.sounds.SoundEvent fenceGateClose, net.minecraft.sounds.SoundEvent fenceGateOpen) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.properties.BlockSetTypeblockSet()Returns the value of theblockSetrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.sounds.SoundEventReturns the value of thefenceGateCloserecord component.net.minecraft.sounds.SoundEventReturns the value of thefenceGateOpenrecord component.Returns the value of thehangingSignSoundTyperecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesoundTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Definition
public Definition(net.minecraft.world.level.block.state.properties.BlockSetType blockSet, BlockRegistry.SoundType soundType, BlockRegistry.SoundType hangingSignSoundType, net.minecraft.sounds.SoundEvent fenceGateClose, net.minecraft.sounds.SoundEvent fenceGateOpen) Creates an instance of aDefinitionrecord class.- Parameters:
blockSet- the value for theblockSetrecord componentsoundType- the value for thesoundTyperecord componenthangingSignSoundType- the value for thehangingSignSoundTyperecord componentfenceGateClose- the value for thefenceGateCloserecord componentfenceGateOpen- the value for thefenceGateOpenrecord 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). -
blockSet
public net.minecraft.world.level.block.state.properties.BlockSetType blockSet()Returns the value of theblockSetrecord component.- Returns:
- the value of the
blockSetrecord component
-
soundType
Returns the value of thesoundTyperecord component.- Returns:
- the value of the
soundTyperecord component
-
hangingSignSoundType
Returns the value of thehangingSignSoundTyperecord component.- Returns:
- the value of the
hangingSignSoundTyperecord component
-
fenceGateClose
public net.minecraft.sounds.SoundEvent fenceGateClose()Returns the value of thefenceGateCloserecord component.- Returns:
- the value of the
fenceGateCloserecord component
-
fenceGateOpen
public net.minecraft.sounds.SoundEvent fenceGateOpen()Returns the value of thefenceGateOpenrecord component.- Returns:
- the value of the
fenceGateOpenrecord component
-