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 named net/minecraft/block/WoodTypeintermediary net/minecraft/class_4719official dupnamed nameintermediary comp_1299official mnamed setTypeintermediary comp_1300official nnamed soundTypeintermediary comp_1301official onamed hangingSignSoundTypeintermediary comp_1302official pnamed fenceGateCloseintermediary comp_1303official qnamed fenceGateOpenintermediary comp_1304official r
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WoodTypestatic final WoodTypestatic final WoodTypestatic final WoodTypestatic final com.mojang.serialization.Codec<WoodType> static 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 named VALUESLnet/minecraft/block/WoodType;VALUES:Ljava/util/Map;intermediary field_46536Lnet/minecraft/class_4719;field_46536:Ljava/util/Map;official sLdup;s:Ljava/util/Map;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/WoodType;CODEC:Lcom/mojang/serialization/Codec;intermediary field_46535Lnet/minecraft/class_4719;field_46535:Lcom/mojang/serialization/Codec;official aLdup;a:Lcom/mojang/serialization/Codec;
-
OAK
- Mappings:
Namespace Name Mixin selector named OAKLnet/minecraft/block/WoodType;OAK:Lnet/minecraft/block/WoodType;intermediary field_21676Lnet/minecraft/class_4719;field_21676:Lnet/minecraft/class_4719;official bLdup;b:Ldup;
-
SPRUCE
- Mappings:
Namespace Name Mixin selector named SPRUCELnet/minecraft/block/WoodType;SPRUCE:Lnet/minecraft/block/WoodType;intermediary field_21677Lnet/minecraft/class_4719;field_21677:Lnet/minecraft/class_4719;official cLdup;c:Ldup;
-
BIRCH
- Mappings:
Namespace Name Mixin selector named BIRCHLnet/minecraft/block/WoodType;BIRCH:Lnet/minecraft/block/WoodType;intermediary field_21678Lnet/minecraft/class_4719;field_21678:Lnet/minecraft/class_4719;official dLdup;d:Ldup;
-
ACACIA
- Mappings:
Namespace Name Mixin selector named ACACIALnet/minecraft/block/WoodType;ACACIA:Lnet/minecraft/block/WoodType;intermediary field_21679Lnet/minecraft/class_4719;field_21679:Lnet/minecraft/class_4719;official eLdup;e:Ldup;
-
CHERRY
- Mappings:
Namespace Name Mixin selector named CHERRYLnet/minecraft/block/WoodType;CHERRY:Lnet/minecraft/block/WoodType;intermediary field_42837Lnet/minecraft/class_4719;field_42837:Lnet/minecraft/class_4719;official fLdup;f:Ldup;
-
JUNGLE
- Mappings:
Namespace Name Mixin selector named JUNGLELnet/minecraft/block/WoodType;JUNGLE:Lnet/minecraft/block/WoodType;intermediary field_21680Lnet/minecraft/class_4719;field_21680:Lnet/minecraft/class_4719;official gLdup;g:Ldup;
-
DARK_OAK
- Mappings:
Namespace Name Mixin selector named DARK_OAKLnet/minecraft/block/WoodType;DARK_OAK:Lnet/minecraft/block/WoodType;intermediary field_21681Lnet/minecraft/class_4719;field_21681:Lnet/minecraft/class_4719;official hLdup;h:Ldup;
-
CRIMSON
- Mappings:
Namespace Name Mixin selector named CRIMSONLnet/minecraft/block/WoodType;CRIMSON:Lnet/minecraft/block/WoodType;intermediary field_22183Lnet/minecraft/class_4719;field_22183:Lnet/minecraft/class_4719;official iLdup;i:Ldup;
-
WARPED
- Mappings:
Namespace Name Mixin selector named WARPEDLnet/minecraft/block/WoodType;WARPED:Lnet/minecraft/block/WoodType;intermediary field_22184Lnet/minecraft/class_4719;field_22184:Lnet/minecraft/class_4719;official jLdup;j:Ldup;
-
MANGROVE
- Mappings:
Namespace Name Mixin selector named MANGROVELnet/minecraft/block/WoodType;MANGROVE:Lnet/minecraft/block/WoodType;intermediary field_37657Lnet/minecraft/class_4719;field_37657:Lnet/minecraft/class_4719;official kLdup;k:Ldup;
-
BAMBOO
- Mappings:
Namespace Name Mixin selector named BAMBOOLnet/minecraft/block/WoodType;BAMBOO:Lnet/minecraft/block/WoodType;intermediary field_40350Lnet/minecraft/class_4719;field_40350:Lnet/minecraft/class_4719;official lLdup;l:Ldup;
-
-
Constructor Details
-
WoodType
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/WoodType;<init>(Ljava/lang/String;Lnet/minecraft/block/BlockSetType;)Vintermediary <init>Lnet/minecraft/class_4719;<init>(Ljava/lang/String;Lnet/minecraft/class_8177;)Vofficial <init>Ldup;<init>(Ljava/lang/String;Ldtr;)V
-
WoodType
public WoodType(String string, BlockSetType blockSetType, BlockSoundGroup blockSoundGroup, BlockSoundGroup blockSoundGroup2, SoundEvent soundEvent, SoundEvent soundEvent2)
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/block/WoodType;register(Lnet/minecraft/block/WoodType;)Lnet/minecraft/block/WoodType;intermediary method_24027Lnet/minecraft/class_4719;method_24027(Lnet/minecraft/class_4719;)Lnet/minecraft/class_4719;official aLdup;a(Ldup;)Ldup;
-
stream
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/block/WoodType;stream()Ljava/util/stream/Stream;intermediary method_24026Lnet/minecraft/class_4719;method_24026()Ljava/util/stream/Stream;official aLdup;a()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
-