Record Class BuildingMaterialProperties
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.plugin.builtin.wrapper.BuildingMaterialProperties
public record BuildingMaterialProperties(BuildingMaterialProperties.Blocks blocks, Optional<Boolean> baseBlock, Optional<Boolean> baseBlockSuffix, Consumer<BlockBuilder> properties, Optional<net.minecraft.world.level.block.state.properties.BlockSetType> behaviour, Optional<TickDuration> ticksToStayPressed)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuildingMaterialProperties(BuildingMaterialProperties.Blocks blocks, Optional<Boolean> baseBlock, Optional<Boolean> baseBlockSuffix, Consumer<BlockBuilder> properties, Optional<net.minecraft.world.level.block.state.properties.BlockSetType> behaviour, Optional<TickDuration> ticksToStayPressed) Creates an instance of aBuildingMaterialPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseBlockrecord component.Returns the value of thebaseBlockSuffixrecord component.Optional<net.minecraft.world.level.block.state.properties.BlockSetType> Returns the value of thebehaviourrecord component.blocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.voidregister(dev.latvian.mods.rhino.Context cx, RegistryKubeEvent<net.minecraft.world.level.block.Block> event, KubeResourceLocation id) Returns the value of theticksToStayPressedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE_INFO
public static final dev.latvian.mods.rhino.type.TypeInfo TYPE_INFO
-
-
Constructor Details
-
BuildingMaterialProperties
public BuildingMaterialProperties(BuildingMaterialProperties.Blocks blocks, Optional<Boolean> baseBlock, Optional<Boolean> baseBlockSuffix, Consumer<BlockBuilder> properties, Optional<net.minecraft.world.level.block.state.properties.BlockSetType> behaviour, Optional<TickDuration> ticksToStayPressed) Creates an instance of aBuildingMaterialPropertiesrecord class.- Parameters:
blocks- the value for theblocksrecord componentbaseBlock- the value for thebaseBlockrecord componentbaseBlockSuffix- the value for thebaseBlockSuffixrecord componentproperties- the value for thepropertiesrecord componentbehaviour- the value for thebehaviourrecord componentticksToStayPressed- the value for theticksToStayPressedrecord component
-
-
Method Details
-
register
@HideFromJS public void register(dev.latvian.mods.rhino.Context cx, RegistryKubeEvent<net.minecraft.world.level.block.Block> event, KubeResourceLocation id) -
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
baseBlock
Returns the value of thebaseBlockrecord component.- Returns:
- the value of the
baseBlockrecord component
-
baseBlockSuffix
Returns the value of thebaseBlockSuffixrecord component.- Returns:
- the value of the
baseBlockSuffixrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
behaviour
Returns the value of thebehaviourrecord component.- Returns:
- the value of the
behaviourrecord component
-
ticksToStayPressed
Returns the value of theticksToStayPressedrecord component.- Returns:
- the value of the
ticksToStayPressedrecord component
-