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
ConstructorsConstructorDescriptionDefinition(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 aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.sounds.SoundEventReturns the value of thebuttonClickOffrecord component.net.minecraft.sounds.SoundEventReturns the value of thebuttonClickOnrecord component.booleanReturns the value of thecanButtonBeActivatedByArrowsrecord component.booleanReturns the value of thecanOpenByHandrecord component.booleanReturns the value of thecanOpenByWindChargerecord component.net.minecraft.sounds.SoundEventReturns the value of thedoorCloserecord component.net.minecraft.sounds.SoundEventdoorOpen()Returns the value of thedoorOpenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.sounds.SoundEventReturns the value of thepressurePlateClickOffrecord component.net.minecraft.sounds.SoundEventReturns the value of thepressurePlateClickOnrecord component.net.minecraft.world.level.block.state.properties.BlockSetType.PressurePlateSensitivityReturns the value of thepressurePlateSensitivityrecord component.Returns the value of thesoundTyperecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.sounds.SoundEventReturns the value of thetrapdoorCloserecord component.net.minecraft.sounds.SoundEventReturns the value of thetrapdoorOpenrecord component.
-
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 aDefinitionrecord class.- Parameters:
canOpenByHand- the value for thecanOpenByHandrecord componentcanOpenByWindCharge- the value for thecanOpenByWindChargerecord componentcanButtonBeActivatedByArrows- the value for thecanButtonBeActivatedByArrowsrecord componentpressurePlateSensitivity- the value for thepressurePlateSensitivityrecord componentsoundType- the value for thesoundTyperecord componentdoorClose- the value for thedoorCloserecord componentdoorOpen- the value for thedoorOpenrecord componenttrapdoorClose- the value for thetrapdoorCloserecord componenttrapdoorOpen- the value for thetrapdoorOpenrecord componentpressurePlateClickOff- the value for thepressurePlateClickOffrecord componentpressurePlateClickOn- the value for thepressurePlateClickOnrecord componentbuttonClickOff- the value for thebuttonClickOffrecord componentbuttonClickOn- the value for thebuttonClickOnrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
canOpenByHand
public boolean canOpenByHand()Returns the value of thecanOpenByHandrecord component.- Returns:
- the value of the
canOpenByHandrecord component
-
canOpenByWindCharge
public boolean canOpenByWindCharge()Returns the value of thecanOpenByWindChargerecord component.- Returns:
- the value of the
canOpenByWindChargerecord component
-
canButtonBeActivatedByArrows
public boolean canButtonBeActivatedByArrows()Returns the value of thecanButtonBeActivatedByArrowsrecord component.- Returns:
- the value of the
canButtonBeActivatedByArrowsrecord component
-
pressurePlateSensitivity
public net.minecraft.world.level.block.state.properties.BlockSetType.PressurePlateSensitivity pressurePlateSensitivity()Returns the value of thepressurePlateSensitivityrecord component.- Returns:
- the value of the
pressurePlateSensitivityrecord component
-
soundType
Returns the value of thesoundTyperecord component.- Returns:
- the value of the
soundTyperecord component
-
doorClose
public net.minecraft.sounds.SoundEvent doorClose()Returns the value of thedoorCloserecord component.- Returns:
- the value of the
doorCloserecord component
-
doorOpen
public net.minecraft.sounds.SoundEvent doorOpen()Returns the value of thedoorOpenrecord component.- Returns:
- the value of the
doorOpenrecord component
-
trapdoorClose
public net.minecraft.sounds.SoundEvent trapdoorClose()Returns the value of thetrapdoorCloserecord component.- Returns:
- the value of the
trapdoorCloserecord component
-
trapdoorOpen
public net.minecraft.sounds.SoundEvent trapdoorOpen()Returns the value of thetrapdoorOpenrecord component.- Returns:
- the value of the
trapdoorOpenrecord component
-
pressurePlateClickOff
public net.minecraft.sounds.SoundEvent pressurePlateClickOff()Returns the value of thepressurePlateClickOffrecord component.- Returns:
- the value of the
pressurePlateClickOffrecord component
-
pressurePlateClickOn
public net.minecraft.sounds.SoundEvent pressurePlateClickOn()Returns the value of thepressurePlateClickOnrecord component.- Returns:
- the value of the
pressurePlateClickOnrecord component
-
buttonClickOff
public net.minecraft.sounds.SoundEvent buttonClickOff()Returns the value of thebuttonClickOffrecord component.- Returns:
- the value of the
buttonClickOffrecord component
-
buttonClickOn
public net.minecraft.sounds.SoundEvent buttonClickOn()Returns the value of thebuttonClickOnrecord component.- Returns:
- the value of the
buttonClickOnrecord component
-