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/WoodType
intermediary net/minecraft/class_4719
official dun
named name
intermediary comp_1299
official m
named setType
intermediary comp_1300
official n
named soundType
intermediary comp_1301
official o
named hangingSignSoundType
intermediary comp_1302
official p
named fenceGateClose
intermediary comp_1303
official q
named fenceGateOpen
intermediary comp_1304
official r
  • Field Details

    • name

      private final String name
      The field for the name record component.
    • setType

      private final BlockSetType setType
      The field for the setType record component.
    • soundType

      private final BlockSoundGroup soundType
      The field for the soundType record component.
    • hangingSignSoundType

      private final BlockSoundGroup hangingSignSoundType
      The field for the hangingSignSoundType record component.
    • fenceGateClose

      private final SoundEvent fenceGateClose
      The field for the fenceGateClose record component.
    • fenceGateOpen

      private final SoundEvent fenceGateOpen
      The field for the fenceGateOpen record component.
    • VALUES

      private static final Map<String,WoodType> VALUES
      Mappings:
      Namespace Name Mixin selector
      named VALUES Lnet/minecraft/block/WoodType;VALUES:Ljava/util/Map;
      intermediary field_46536 Lnet/minecraft/class_4719;field_46536:Ljava/util/Map;
      official s Ldun;s:Ljava/util/Map;
    • CODEC

      public static final com.mojang.serialization.Codec<WoodType> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/WoodType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_46535 Lnet/minecraft/class_4719;field_46535:Lcom/mojang/serialization/Codec;
      official a Ldun;a:Lcom/mojang/serialization/Codec;
    • OAK

      public static final WoodType OAK
      Mappings:
      Namespace Name Mixin selector
      named OAK Lnet/minecraft/block/WoodType;OAK:Lnet/minecraft/block/WoodType;
      intermediary field_21676 Lnet/minecraft/class_4719;field_21676:Lnet/minecraft/class_4719;
      official b Ldun;b:Ldun;
    • SPRUCE

      public static final WoodType SPRUCE
      Mappings:
      Namespace Name Mixin selector
      named SPRUCE Lnet/minecraft/block/WoodType;SPRUCE:Lnet/minecraft/block/WoodType;
      intermediary field_21677 Lnet/minecraft/class_4719;field_21677:Lnet/minecraft/class_4719;
      official c Ldun;c:Ldun;
    • BIRCH

      public static final WoodType BIRCH
      Mappings:
      Namespace Name Mixin selector
      named BIRCH Lnet/minecraft/block/WoodType;BIRCH:Lnet/minecraft/block/WoodType;
      intermediary field_21678 Lnet/minecraft/class_4719;field_21678:Lnet/minecraft/class_4719;
      official d Ldun;d:Ldun;
    • ACACIA

      public static final WoodType ACACIA
      Mappings:
      Namespace Name Mixin selector
      named ACACIA Lnet/minecraft/block/WoodType;ACACIA:Lnet/minecraft/block/WoodType;
      intermediary field_21679 Lnet/minecraft/class_4719;field_21679:Lnet/minecraft/class_4719;
      official e Ldun;e:Ldun;
    • CHERRY

      public static final WoodType CHERRY
      Mappings:
      Namespace Name Mixin selector
      named CHERRY Lnet/minecraft/block/WoodType;CHERRY:Lnet/minecraft/block/WoodType;
      intermediary field_42837 Lnet/minecraft/class_4719;field_42837:Lnet/minecraft/class_4719;
      official f Ldun;f:Ldun;
    • JUNGLE

      public static final WoodType JUNGLE
      Mappings:
      Namespace Name Mixin selector
      named JUNGLE Lnet/minecraft/block/WoodType;JUNGLE:Lnet/minecraft/block/WoodType;
      intermediary field_21680 Lnet/minecraft/class_4719;field_21680:Lnet/minecraft/class_4719;
      official g Ldun;g:Ldun;
    • DARK_OAK

      public static final WoodType DARK_OAK
      Mappings:
      Namespace Name Mixin selector
      named DARK_OAK Lnet/minecraft/block/WoodType;DARK_OAK:Lnet/minecraft/block/WoodType;
      intermediary field_21681 Lnet/minecraft/class_4719;field_21681:Lnet/minecraft/class_4719;
      official h Ldun;h:Ldun;
    • CRIMSON

      public static final WoodType CRIMSON
      Mappings:
      Namespace Name Mixin selector
      named CRIMSON Lnet/minecraft/block/WoodType;CRIMSON:Lnet/minecraft/block/WoodType;
      intermediary field_22183 Lnet/minecraft/class_4719;field_22183:Lnet/minecraft/class_4719;
      official i Ldun;i:Ldun;
    • WARPED

      public static final WoodType WARPED
      Mappings:
      Namespace Name Mixin selector
      named WARPED Lnet/minecraft/block/WoodType;WARPED:Lnet/minecraft/block/WoodType;
      intermediary field_22184 Lnet/minecraft/class_4719;field_22184:Lnet/minecraft/class_4719;
      official j Ldun;j:Ldun;
    • MANGROVE

      public static final WoodType MANGROVE
      Mappings:
      Namespace Name Mixin selector
      named MANGROVE Lnet/minecraft/block/WoodType;MANGROVE:Lnet/minecraft/block/WoodType;
      intermediary field_37657 Lnet/minecraft/class_4719;field_37657:Lnet/minecraft/class_4719;
      official k Ldun;k:Ldun;
    • BAMBOO

      public static final WoodType BAMBOO
      Mappings:
      Namespace Name Mixin selector
      named BAMBOO Lnet/minecraft/block/WoodType;BAMBOO:Lnet/minecraft/block/WoodType;
      intermediary field_40350 Lnet/minecraft/class_4719;field_40350:Lnet/minecraft/class_4719;
      official l Ldun;l:Ldun;
  • Constructor Details

    • WoodType

      public WoodType(String name, BlockSetType setType)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/WoodType;<init>(Ljava/lang/String;Lnet/minecraft/block/BlockSetType;)V
      intermediary <init> Lnet/minecraft/class_4719;<init>(Ljava/lang/String;Lnet/minecraft/class_8177;)V
      official <init> Ldun;<init>(Ljava/lang/String;Ldtp;)V
    • WoodType

      public WoodType(String string, BlockSetType blockSetType, BlockSoundGroup blockSoundGroup, BlockSoundGroup blockSoundGroup2, SoundEvent soundEvent, SoundEvent soundEvent2)
  • Method Details

    • register

      private static WoodType register(WoodType type)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/block/WoodType;register(Lnet/minecraft/block/WoodType;)Lnet/minecraft/block/WoodType;
      intermediary method_24027 Lnet/minecraft/class_4719;method_24027(Lnet/minecraft/class_4719;)Lnet/minecraft/class_4719;
      official a Ldun;a(Ldun;)Ldun;
    • stream

      public static Stream<WoodType> stream()
      Mappings:
      Namespace Name Mixin selector
      named stream Lnet/minecraft/block/WoodType;stream()Ljava/util/stream/Stream;
      intermediary method_24026 Lnet/minecraft/class_4719;method_24026()Ljava/util/stream/Stream;
      official a Ldun;a()Ljava/util/stream/Stream;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • setType

      public BlockSetType setType()
      Returns the value of the setType record component.
      Returns:
      the value of the setType record component
    • soundType

      public BlockSoundGroup soundType()
      Returns the value of the soundType record component.
      Returns:
      the value of the soundType record component
    • hangingSignSoundType

      public BlockSoundGroup hangingSignSoundType()
      Returns the value of the hangingSignSoundType record component.
      Returns:
      the value of the hangingSignSoundType record component
    • fenceGateClose

      public SoundEvent fenceGateClose()
      Returns the value of the fenceGateClose record component.
      Returns:
      the value of the fenceGateClose record component
    • fenceGateOpen

      public SoundEvent fenceGateOpen()
      Returns the value of the fenceGateOpen record component.
      Returns:
      the value of the fenceGateOpen record component