Record Class BlockSetTypeRegistry.Definition

java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.registry.BlockSetTypeRegistry.Definition
Enclosing class:
BlockSetTypeRegistry

public static record BlockSetTypeRegistry.Definition(boolean canOpenByHand, boolean canOpenByWindCharge, boolean canButtonBeActivatedByArrows, net.minecraft.world.level.block.state.properties.BlockSetType.PressurePlateSensitivity pressurePlateSensitivity, BlockRegistry.SoundType soundType, net.minecraft.sounds.SoundEvent doorClose, net.minecraft.sounds.SoundEvent doorOpen, net.minecraft.sounds.SoundEvent trapdoorClose, net.minecraft.sounds.SoundEvent trapdoorOpen, net.minecraft.sounds.SoundEvent pressurePlateClickOff, net.minecraft.sounds.SoundEvent pressurePlateClickOn, net.minecraft.sounds.SoundEvent buttonClickOff, net.minecraft.sounds.SoundEvent buttonClickOn) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Definition(boolean canOpenByHand, boolean canOpenByWindCharge, boolean canButtonBeActivatedByArrows, net.minecraft.world.level.block.state.properties.BlockSetType.PressurePlateSensitivity pressurePlateSensitivity, BlockRegistry.SoundType soundType, net.minecraft.sounds.SoundEvent doorClose, net.minecraft.sounds.SoundEvent doorOpen, net.minecraft.sounds.SoundEvent trapdoorClose, net.minecraft.sounds.SoundEvent trapdoorOpen, net.minecraft.sounds.SoundEvent pressurePlateClickOff, net.minecraft.sounds.SoundEvent pressurePlateClickOn, net.minecraft.sounds.SoundEvent buttonClickOff, net.minecraft.sounds.SoundEvent buttonClickOn)
    Creates an instance of a Definition record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.sounds.SoundEvent
    Returns the value of the buttonClickOff record component.
    net.minecraft.sounds.SoundEvent
    Returns the value of the buttonClickOn record component.
    boolean
    Returns the value of the canButtonBeActivatedByArrows record component.
    boolean
    Returns the value of the canOpenByHand record component.
    boolean
    Returns the value of the canOpenByWindCharge record component.
    net.minecraft.sounds.SoundEvent
    Returns the value of the doorClose record component.
    net.minecraft.sounds.SoundEvent
    Returns the value of the doorOpen record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.sounds.SoundEvent
    Returns the value of the pressurePlateClickOff record component.
    net.minecraft.sounds.SoundEvent
    Returns the value of the pressurePlateClickOn record component.
    net.minecraft.world.level.block.state.properties.BlockSetType.PressurePlateSensitivity
    Returns the value of the pressurePlateSensitivity record component.
    Returns the value of the soundType record component.
    final String
    Returns a string representation of this record class.
    net.minecraft.sounds.SoundEvent
    Returns the value of the trapdoorClose record component.
    net.minecraft.sounds.SoundEvent
    Returns the value of the trapdoorOpen record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Definition

      public Definition(boolean canOpenByHand, boolean canOpenByWindCharge, boolean canButtonBeActivatedByArrows, net.minecraft.world.level.block.state.properties.BlockSetType.PressurePlateSensitivity pressurePlateSensitivity, BlockRegistry.SoundType soundType, net.minecraft.sounds.SoundEvent doorClose, net.minecraft.sounds.SoundEvent doorOpen, net.minecraft.sounds.SoundEvent trapdoorClose, net.minecraft.sounds.SoundEvent trapdoorOpen, net.minecraft.sounds.SoundEvent pressurePlateClickOff, net.minecraft.sounds.SoundEvent pressurePlateClickOn, net.minecraft.sounds.SoundEvent buttonClickOff, net.minecraft.sounds.SoundEvent buttonClickOn)
      Creates an instance of a Definition record class.
      Parameters:
      canOpenByHand - the value for the canOpenByHand record component
      canOpenByWindCharge - the value for the canOpenByWindCharge record component
      canButtonBeActivatedByArrows - the value for the canButtonBeActivatedByArrows record component
      pressurePlateSensitivity - the value for the pressurePlateSensitivity 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

    • 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 the compare method from their corresponding wrapper classes.
      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.
    • 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 net.minecraft.world.level.block.state.properties.BlockSetType.PressurePlateSensitivity pressurePlateSensitivity()
      Returns the value of the pressurePlateSensitivity record component.
      Returns:
      the value of the pressurePlateSensitivity record component
    • soundType

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

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

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

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

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

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

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

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

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