Record Class BlockSetType

java.lang.Object
java.lang.Record
net.minecraft.world.level.block.state.properties.BlockSetType

public record BlockSetType(String name, boolean canOpenByHand, SoundType soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn) extends Record
  • 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.
    • soundType

      private final SoundType 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 Set<BlockSetType> VALUES
    • IRON

      public static final BlockSetType IRON
    • GOLD

      public static final BlockSetType GOLD
    • STONE

      public static final BlockSetType STONE
    • POLISHED_BLACKSTONE

      public static final BlockSetType POLISHED_BLACKSTONE
    • OAK

      public static final BlockSetType OAK
    • SPRUCE

      public static final BlockSetType SPRUCE
    • BIRCH

      public static final BlockSetType BIRCH
    • ACACIA

      public static final BlockSetType ACACIA
    • CHERRY

      public static final BlockSetType CHERRY
    • JUNGLE

      public static final BlockSetType JUNGLE
    • DARK_OAK

      public static final BlockSetType DARK_OAK
    • CRIMSON

      public static final BlockSetType CRIMSON
    • WARPED

      public static final BlockSetType WARPED
    • MANGROVE

      public static final BlockSetType MANGROVE
    • BAMBOO

      public static final BlockSetType BAMBOO
  • Constructor Details

    • BlockSetType

      public BlockSetType(String p_272860_)
    • BlockSetType

      public BlockSetType(String name, boolean canOpenByHand, SoundType soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn)
      Creates an instance of a BlockSetType record class.
      Parameters:
      name - the value for the name record component
      canOpenByHand - the value for the canOpenByHand record component
      soundType - the value for the soundType record component
      doorClose - the value for the doorClose record component
      doorOpen - the value for the doorOpen record component
      trapdoorClose - the value for the trapdoorClose record component
      trapdoorOpen - the value for the trapdoorOpen record component
      pressurePlateClickOff - the value for the pressurePlateClickOff record component
      pressurePlateClickOn - the value for the pressurePlateClickOn record component
      buttonClickOff - the value for the buttonClickOff record component
      buttonClickOn - the value for the buttonClickOn record component
  • Method Details

    • register

      public static BlockSetType register(BlockSetType p_273033_)
    • values

      public static Stream<BlockSetType> values()
    • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o 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
    • soundType

      public SoundType 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