Record Class WoodType
java.lang.Object
java.lang.Record
net.minecraft.world.level.block.state.properties.WoodType
public record WoodType(String name, BlockSetType setType, SoundType soundType, SoundType hangingSignSoundType, SoundEvent fenceGateClose, SoundEvent fenceGateOpen)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final WoodType
static final WoodType
static final WoodType
static final WoodType
static final WoodType
static final WoodType
private final SoundEvent
The field for thefenceGateClose
record component.private final SoundEvent
The field for thefenceGateOpen
record component.private final SoundType
The field for thehangingSignSoundType
record component.static final WoodType
static final WoodType
private final String
The field for thename
record component.static final WoodType
private final BlockSetType
The field for thesetType
record component.private final SoundType
The field for thesoundType
record component.static final WoodType
static final WoodType
-
Constructor Summary
ConstructorDescriptionWoodType
(String p_273766_, BlockSetType p_273104_) WoodType
(String name, BlockSetType setType, SoundType soundType, SoundType hangingSignSoundType, SoundEvent fenceGateClose, SoundEvent fenceGateOpen) Creates an instance of aWoodType
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefenceGateClose
record component.Returns the value of thefenceGateOpen
record component.Returns the value of thehangingSignSoundType
record component.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.static WoodType
setType()
Returns the value of thesetType
record component.Returns the value of thesoundType
record component.final String
toString()
Returns a string representation of this record class.values()
-
Field Details
-
name
The field for thename
record component. -
setType
The field for thesetType
record component. -
soundType
The field for thesoundType
record component. -
hangingSignSoundType
The field for thehangingSignSoundType
record component. -
fenceGateClose
The field for thefenceGateClose
record component. -
fenceGateOpen
The field for thefenceGateOpen
record component. -
VALUES
-
OAK
-
SPRUCE
-
BIRCH
-
ACACIA
-
CHERRY
-
JUNGLE
-
DARK_OAK
-
CRIMSON
-
WARPED
-
MANGROVE
-
BAMBOO
-
-
Constructor Details
-
WoodType
-
WoodType
public WoodType(String name, BlockSetType setType, SoundType soundType, SoundType hangingSignSoundType, SoundEvent fenceGateClose, SoundEvent fenceGateOpen) Creates an instance of aWoodType
record class.- Parameters:
name
- the value for thename
record componentsetType
- the value for thesetType
record componentsoundType
- the value for thesoundType
record componenthangingSignSoundType
- the value for thehangingSignSoundType
record componentfenceGateClose
- the value for thefenceGateClose
record componentfenceGateOpen
- the value for thefenceGateOpen
record component
-
-
Method Details
-
register
-
values
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
setType
Returns the value of thesetType
record component.- Returns:
- the value of the
setType
record component
-
soundType
Returns the value of thesoundType
record component.- Returns:
- the value of the
soundType
record component
-
hangingSignSoundType
Returns the value of thehangingSignSoundType
record component.- Returns:
- the value of the
hangingSignSoundType
record component
-
fenceGateClose
Returns the value of thefenceGateClose
record component.- Returns:
- the value of the
fenceGateClose
record component
-
fenceGateOpen
Returns the value of thefenceGateOpen
record component.- Returns:
- the value of the
fenceGateOpen
record component
-