Record Class BlockSetType

java.lang.Object
java.lang.Record
net.minecraft.block.BlockSetType
Record Components:
name -
canOpenByHand -
canOpenByWindCharge -
canButtonBeActivatedByArrows -
pressurePlateSensitivity -
soundType -
doorClose -
doorOpen -
trapdoorClose -
trapdoorOpen -
pressurePlateClickOff -
pressurePlateClickOn -
buttonClickOff -
buttonClickOn -

public record BlockSetType(String name, boolean canOpenByHand, boolean canOpenByWindCharge, boolean canButtonBeActivatedByArrows, BlockSetType.ActivationRule pressurePlateSensitivity, BlockSoundGroup soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn) extends Record
Mappings:
Namespace Name
official djw
intermediary net/minecraft/class_8177
named net/minecraft/block/BlockSetType
official r
intermediary comp_1289
named name
official s
intermediary comp_1471
named canOpenByHand
official t
intermediary comp_2112
named canOpenByWindCharge
official u
intermediary comp_1972
named canButtonBeActivatedByArrows
official v
intermediary comp_1973
named pressurePlateSensitivity
official w
intermediary comp_1290
named soundType
official x
intermediary comp_1291
named doorClose
official y
intermediary comp_1292
named doorOpen
official z
intermediary comp_1293
named trapdoorClose
official A
intermediary comp_1294
named trapdoorOpen
official B
intermediary comp_1295
named pressurePlateClickOff
official C
intermediary comp_1296
named pressurePlateClickOn
official D
intermediary comp_1297
named buttonClickOff
official E
intermediary comp_1298
named buttonClickOn
  • Field Details

    • name

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

      private final boolean canOpenByHand
      The field for the canOpenByHand record component.
    • canOpenByWindCharge

      private final boolean canOpenByWindCharge
      The field for the canOpenByWindCharge record component.
    • canButtonBeActivatedByArrows

      private final boolean canButtonBeActivatedByArrows
      The field for the canButtonBeActivatedByArrows record component.
    • pressurePlateSensitivity

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

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

      private final SoundEvent doorClose
      The field for the doorClose record component.
    • doorOpen

      private final SoundEvent doorOpen
      The field for the doorOpen record component.
    • trapdoorClose

      private final SoundEvent trapdoorClose
      The field for the trapdoorClose record component.
    • trapdoorOpen

      private final SoundEvent trapdoorOpen
      The field for the trapdoorOpen record component.
    • pressurePlateClickOff

      private final SoundEvent pressurePlateClickOff
      The field for the pressurePlateClickOff record component.
    • pressurePlateClickOn

      private final SoundEvent pressurePlateClickOn
      The field for the pressurePlateClickOn record component.
    • buttonClickOff

      private final SoundEvent buttonClickOff
      The field for the buttonClickOff record component.
    • buttonClickOn

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

      private static final Map<String,BlockSetType> VALUES
      Mappings:
      Namespace Name Mixin selector
      official F Ldjw;F:Ljava/util/Map;
      intermediary field_46533 Lnet/minecraft/class_8177;field_46533:Ljava/util/Map;
      named VALUES Lnet/minecraft/block/BlockSetType;VALUES:Ljava/util/Map;
    • CODEC

      public static final com.mojang.serialization.Codec<BlockSetType> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldjw;a:Lcom/mojang/serialization/Codec;
      intermediary field_46534 Lnet/minecraft/class_8177;field_46534:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/block/BlockSetType;CODEC:Lcom/mojang/serialization/Codec;
    • IRON

      public static final BlockSetType IRON
      Mappings:
      Namespace Name Mixin selector
      official b Ldjw;b:Ldjw;
      intermediary field_42819 Lnet/minecraft/class_8177;field_42819:Lnet/minecraft/class_8177;
      named IRON Lnet/minecraft/block/BlockSetType;IRON:Lnet/minecraft/block/BlockSetType;
    • COPPER

      public static final BlockSetType COPPER
      Mappings:
      Namespace Name Mixin selector
      official c Ldjw;c:Ldjw;
      intermediary field_47100 Lnet/minecraft/class_8177;field_47100:Lnet/minecraft/class_8177;
      named COPPER Lnet/minecraft/block/BlockSetType;COPPER:Lnet/minecraft/block/BlockSetType;
    • GOLD

      public static final BlockSetType GOLD
      Mappings:
      Namespace Name Mixin selector
      official d Ldjw;d:Ldjw;
      intermediary field_42820 Lnet/minecraft/class_8177;field_42820:Lnet/minecraft/class_8177;
      named GOLD Lnet/minecraft/block/BlockSetType;GOLD:Lnet/minecraft/block/BlockSetType;
    • STONE

      public static final BlockSetType STONE
      Mappings:
      Namespace Name Mixin selector
      official e Ldjw;e:Ldjw;
      intermediary field_42821 Lnet/minecraft/class_8177;field_42821:Lnet/minecraft/class_8177;
      named STONE Lnet/minecraft/block/BlockSetType;STONE:Lnet/minecraft/block/BlockSetType;
    • POLISHED_BLACKSTONE

      public static final BlockSetType POLISHED_BLACKSTONE
      Mappings:
      Namespace Name Mixin selector
      official f Ldjw;f:Ldjw;
      intermediary field_42822 Lnet/minecraft/class_8177;field_42822:Lnet/minecraft/class_8177;
      named POLISHED_BLACKSTONE Lnet/minecraft/block/BlockSetType;POLISHED_BLACKSTONE:Lnet/minecraft/block/BlockSetType;
    • OAK

      public static final BlockSetType OAK
      Mappings:
      Namespace Name Mixin selector
      official g Ldjw;g:Ldjw;
      intermediary field_42823 Lnet/minecraft/class_8177;field_42823:Lnet/minecraft/class_8177;
      named OAK Lnet/minecraft/block/BlockSetType;OAK:Lnet/minecraft/block/BlockSetType;
    • SPRUCE

      public static final BlockSetType SPRUCE
      Mappings:
      Namespace Name Mixin selector
      official h Ldjw;h:Ldjw;
      intermediary field_42824 Lnet/minecraft/class_8177;field_42824:Lnet/minecraft/class_8177;
      named SPRUCE Lnet/minecraft/block/BlockSetType;SPRUCE:Lnet/minecraft/block/BlockSetType;
    • BIRCH

      public static final BlockSetType BIRCH
      Mappings:
      Namespace Name Mixin selector
      official i Ldjw;i:Ldjw;
      intermediary field_42825 Lnet/minecraft/class_8177;field_42825:Lnet/minecraft/class_8177;
      named BIRCH Lnet/minecraft/block/BlockSetType;BIRCH:Lnet/minecraft/block/BlockSetType;
    • ACACIA

      public static final BlockSetType ACACIA
      Mappings:
      Namespace Name Mixin selector
      official j Ldjw;j:Ldjw;
      intermediary field_42826 Lnet/minecraft/class_8177;field_42826:Lnet/minecraft/class_8177;
      named ACACIA Lnet/minecraft/block/BlockSetType;ACACIA:Lnet/minecraft/block/BlockSetType;
    • CHERRY

      public static final BlockSetType CHERRY
      Mappings:
      Namespace Name Mixin selector
      official k Ldjw;k:Ldjw;
      intermediary field_42827 Lnet/minecraft/class_8177;field_42827:Lnet/minecraft/class_8177;
      named CHERRY Lnet/minecraft/block/BlockSetType;CHERRY:Lnet/minecraft/block/BlockSetType;
    • JUNGLE

      public static final BlockSetType JUNGLE
      Mappings:
      Namespace Name Mixin selector
      official l Ldjw;l:Ldjw;
      intermediary field_42828 Lnet/minecraft/class_8177;field_42828:Lnet/minecraft/class_8177;
      named JUNGLE Lnet/minecraft/block/BlockSetType;JUNGLE:Lnet/minecraft/block/BlockSetType;
    • DARK_OAK

      public static final BlockSetType DARK_OAK
      Mappings:
      Namespace Name Mixin selector
      official m Ldjw;m:Ldjw;
      intermediary field_42829 Lnet/minecraft/class_8177;field_42829:Lnet/minecraft/class_8177;
      named DARK_OAK Lnet/minecraft/block/BlockSetType;DARK_OAK:Lnet/minecraft/block/BlockSetType;
    • CRIMSON

      public static final BlockSetType CRIMSON
      Mappings:
      Namespace Name Mixin selector
      official n Ldjw;n:Ldjw;
      intermediary field_42830 Lnet/minecraft/class_8177;field_42830:Lnet/minecraft/class_8177;
      named CRIMSON Lnet/minecraft/block/BlockSetType;CRIMSON:Lnet/minecraft/block/BlockSetType;
    • WARPED

      public static final BlockSetType WARPED
      Mappings:
      Namespace Name Mixin selector
      official o Ldjw;o:Ldjw;
      intermediary field_42831 Lnet/minecraft/class_8177;field_42831:Lnet/minecraft/class_8177;
      named WARPED Lnet/minecraft/block/BlockSetType;WARPED:Lnet/minecraft/block/BlockSetType;
    • MANGROVE

      public static final BlockSetType MANGROVE
      Mappings:
      Namespace Name Mixin selector
      official p Ldjw;p:Ldjw;
      intermediary field_42832 Lnet/minecraft/class_8177;field_42832:Lnet/minecraft/class_8177;
      named MANGROVE Lnet/minecraft/block/BlockSetType;MANGROVE:Lnet/minecraft/block/BlockSetType;
    • BAMBOO

      public static final BlockSetType BAMBOO
      Mappings:
      Namespace Name Mixin selector
      official q Ldjw;q:Ldjw;
      intermediary field_42833 Lnet/minecraft/class_8177;field_42833:Lnet/minecraft/class_8177;
      named BAMBOO Lnet/minecraft/block/BlockSetType;BAMBOO:Lnet/minecraft/block/BlockSetType;
  • Constructor Details

  • Method Details

    • register

      private static BlockSetType register(BlockSetType blockSetType)
      Mappings:
      Namespace Name Mixin selector
      official a Ldjw;a(Ldjw;)Ldjw;
      intermediary method_49233 Lnet/minecraft/class_8177;method_49233(Lnet/minecraft/class_8177;)Lnet/minecraft/class_8177;
      named register Lnet/minecraft/block/BlockSetType;register(Lnet/minecraft/block/BlockSetType;)Lnet/minecraft/block/BlockSetType;
    • stream

      public static Stream<BlockSetType> stream()
      Mappings:
      Namespace Name Mixin selector
      official a Ldjw;a()Ljava/util/stream/Stream;
      intermediary method_49232 Lnet/minecraft/class_8177;method_49232()Ljava/util/stream/Stream;
      named stream Lnet/minecraft/block/BlockSetType;stream()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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • canOpenByHand

      public boolean canOpenByHand()
      Returns the value of the canOpenByHand record component.
      Returns:
      the value of the canOpenByHand record component
    • canOpenByWindCharge

      public boolean canOpenByWindCharge()
      Returns the value of the canOpenByWindCharge record component.
      Returns:
      the value of the canOpenByWindCharge record component
    • canButtonBeActivatedByArrows

      public boolean canButtonBeActivatedByArrows()
      Returns the value of the canButtonBeActivatedByArrows record component.
      Returns:
      the value of the canButtonBeActivatedByArrows record component
    • pressurePlateSensitivity

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

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

      public SoundEvent doorClose()
      Returns the value of the doorClose record component.
      Returns:
      the value of the doorClose record component
    • doorOpen

      public SoundEvent doorOpen()
      Returns the value of the doorOpen record component.
      Returns:
      the value of the doorOpen record component
    • trapdoorClose

      public SoundEvent trapdoorClose()
      Returns the value of the trapdoorClose record component.
      Returns:
      the value of the trapdoorClose record component
    • trapdoorOpen

      public SoundEvent trapdoorOpen()
      Returns the value of the trapdoorOpen record component.
      Returns:
      the value of the trapdoorOpen record component
    • pressurePlateClickOff

      public SoundEvent pressurePlateClickOff()
      Returns the value of the pressurePlateClickOff record component.
      Returns:
      the value of the pressurePlateClickOff record component
    • pressurePlateClickOn

      public SoundEvent pressurePlateClickOn()
      Returns the value of the pressurePlateClickOn record component.
      Returns:
      the value of the pressurePlateClickOn record component
    • buttonClickOff

      public SoundEvent buttonClickOff()
      Returns the value of the buttonClickOff record component.
      Returns:
      the value of the buttonClickOff record component
    • buttonClickOn

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