Package net.minecraft.block
Record Class WoodType
java.lang.Object
java.lang.Record
net.minecraft.block.WoodType
- Record Components:
name-setType-soundType-hangingSignSoundType-fenceGateClose-fenceGateOpen-
public record WoodType(String name, BlockSetType setType, BlockSoundGroup soundType, BlockSoundGroup hangingSignSoundType, SoundEvent fenceGateClose, SoundEvent fenceGateOpen)
extends Record
- Mappings:
Namespace Name official ddlintermediary net/minecraft/class_4719named net/minecraft/block/WoodTypeofficial lintermediary comp_1299named nameofficial mintermediary comp_1300named setTypeofficial nintermediary comp_1301named soundTypeofficial ointermediary comp_1302named hangingSignSoundTypeofficial pintermediary comp_1303named fenceGateCloseofficial qintermediary comp_1304named fenceGateOpen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WoodTypestatic final WoodTypestatic final WoodTypestatic final WoodTypestatic final WoodTypestatic final WoodTypeprivate final SoundEventThe field for thefenceGateCloserecord component.private final SoundEventThe field for thefenceGateOpenrecord component.private final BlockSoundGroupThe field for thehangingSignSoundTyperecord component.static final WoodTypestatic final WoodTypeprivate final StringThe field for thenamerecord component.static final WoodTypeprivate final BlockSetTypeThe field for thesetTyperecord component.private final BlockSoundGroupThe field for thesoundTyperecord component.static final WoodTypestatic final WoodType -
Constructor Summary
ConstructorsConstructorDescriptionWoodType(String name, BlockSetType setType) WoodType(String string, BlockSetType blockSetType, BlockSoundGroup blockSoundGroup, BlockSoundGroup blockSoundGroup2, SoundEvent soundEvent, SoundEvent soundEvent2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefenceGateCloserecord component.Returns the value of thefenceGateOpenrecord component.Returns the value of thehangingSignSoundTyperecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.private static WoodTypesetType()Returns the value of thesetTyperecord component.Returns the value of thesoundTyperecord component.stream()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
setType
The field for thesetTyperecord component. -
soundType
The field for thesoundTyperecord component. -
hangingSignSoundType
The field for thehangingSignSoundTyperecord component. -
fenceGateClose
The field for thefenceGateCloserecord component. -
fenceGateOpen
The field for thefenceGateOpenrecord component. -
VALUES
- Mappings:
Namespace Name Mixin selector official rLddl;r:Ljava/util/Set;intermediary field_21682Lnet/minecraft/class_4719;field_21682:Ljava/util/Set;named VALUESLnet/minecraft/block/WoodType;VALUES:Ljava/util/Set;
-
OAK
- Mappings:
Namespace Name Mixin selector official aLddl;a:Lddl;intermediary field_21676Lnet/minecraft/class_4719;field_21676:Lnet/minecraft/class_4719;named OAKLnet/minecraft/block/WoodType;OAK:Lnet/minecraft/block/WoodType;
-
SPRUCE
- Mappings:
Namespace Name Mixin selector official bLddl;b:Lddl;intermediary field_21677Lnet/minecraft/class_4719;field_21677:Lnet/minecraft/class_4719;named SPRUCELnet/minecraft/block/WoodType;SPRUCE:Lnet/minecraft/block/WoodType;
-
BIRCH
- Mappings:
Namespace Name Mixin selector official cLddl;c:Lddl;intermediary field_21678Lnet/minecraft/class_4719;field_21678:Lnet/minecraft/class_4719;named BIRCHLnet/minecraft/block/WoodType;BIRCH:Lnet/minecraft/block/WoodType;
-
ACACIA
- Mappings:
Namespace Name Mixin selector official dLddl;d:Lddl;intermediary field_21679Lnet/minecraft/class_4719;field_21679:Lnet/minecraft/class_4719;named ACACIALnet/minecraft/block/WoodType;ACACIA:Lnet/minecraft/block/WoodType;
-
CHERRY
- Mappings:
Namespace Name Mixin selector official eLddl;e:Lddl;intermediary field_42837Lnet/minecraft/class_4719;field_42837:Lnet/minecraft/class_4719;named CHERRYLnet/minecraft/block/WoodType;CHERRY:Lnet/minecraft/block/WoodType;
-
JUNGLE
- Mappings:
Namespace Name Mixin selector official fLddl;f:Lddl;intermediary field_21680Lnet/minecraft/class_4719;field_21680:Lnet/minecraft/class_4719;named JUNGLELnet/minecraft/block/WoodType;JUNGLE:Lnet/minecraft/block/WoodType;
-
DARK_OAK
- Mappings:
Namespace Name Mixin selector official gLddl;g:Lddl;intermediary field_21681Lnet/minecraft/class_4719;field_21681:Lnet/minecraft/class_4719;named DARK_OAKLnet/minecraft/block/WoodType;DARK_OAK:Lnet/minecraft/block/WoodType;
-
CRIMSON
- Mappings:
Namespace Name Mixin selector official hLddl;h:Lddl;intermediary field_22183Lnet/minecraft/class_4719;field_22183:Lnet/minecraft/class_4719;named CRIMSONLnet/minecraft/block/WoodType;CRIMSON:Lnet/minecraft/block/WoodType;
-
WARPED
- Mappings:
Namespace Name Mixin selector official iLddl;i:Lddl;intermediary field_22184Lnet/minecraft/class_4719;field_22184:Lnet/minecraft/class_4719;named WARPEDLnet/minecraft/block/WoodType;WARPED:Lnet/minecraft/block/WoodType;
-
MANGROVE
- Mappings:
Namespace Name Mixin selector official jLddl;j:Lddl;intermediary field_37657Lnet/minecraft/class_4719;field_37657:Lnet/minecraft/class_4719;named MANGROVELnet/minecraft/block/WoodType;MANGROVE:Lnet/minecraft/block/WoodType;
-
BAMBOO
- Mappings:
Namespace Name Mixin selector official kLddl;k:Lddl;intermediary field_40350Lnet/minecraft/class_4719;field_40350:Lnet/minecraft/class_4719;named BAMBOOLnet/minecraft/block/WoodType;BAMBOO:Lnet/minecraft/block/WoodType;
-
-
Constructor Details
-
WoodType
- Mappings:
Namespace Name Mixin selector official <init>Lddl;<init>(Ljava/lang/String;Ldcn;)Vintermediary <init>Lnet/minecraft/class_4719;<init>(Ljava/lang/String;Lnet/minecraft/class_8177;)Vnamed <init>Lnet/minecraft/block/WoodType;<init>(Ljava/lang/String;Lnet/minecraft/block/BlockSetType;)V
-
WoodType
public WoodType(String string, BlockSetType blockSetType, BlockSoundGroup blockSoundGroup, BlockSoundGroup blockSoundGroup2, SoundEvent soundEvent, SoundEvent soundEvent2)
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official aLddl;a(Lddl;)Lddl;intermediary method_24027Lnet/minecraft/class_4719;method_24027(Lnet/minecraft/class_4719;)Lnet/minecraft/class_4719;named registerLnet/minecraft/block/WoodType;register(Lnet/minecraft/block/WoodType;)Lnet/minecraft/block/WoodType;
-
stream
- Mappings:
Namespace Name Mixin selector official aLddl;a()Ljava/util/stream/Stream;intermediary method_24026Lnet/minecraft/class_4719;method_24026()Ljava/util/stream/Stream;named streamLnet/minecraft/block/WoodType;stream()Ljava/util/stream/Stream;
-
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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
setType
Returns the value of thesetTyperecord component.- Returns:
- the value of the
setTyperecord 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
Returns the value of thefenceGateCloserecord component.- Returns:
- the value of the
fenceGateCloserecord component
-
fenceGateOpen
Returns the value of thefenceGateOpenrecord component.- Returns:
- the value of the
fenceGateOpenrecord component
-