Record Class BlockEntityProviders
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.content.BlockEntityProviders
public record BlockEntityProviders(BlockEntityProvider<AbstractDiskDriveBlockEntity> diskDrive, BlockEntityProvider<AbstractPortableGridBlockEntity> portableGrid, BlockEntityProvider<AbstractPortableGridBlockEntity> creativePortableGrid, BlockEntityProvider<AbstractDiskInterfaceBlockEntity> diskInterface, BlockEntityProvider<AbstractCableBlockEntity> cable, BlockEntityProvider<AbstractExternalStorageBlockEntity> externalStorage, BlockEntityProvider<AbstractExporterBlockEntity> exporter, BlockEntityProvider<AbstractImporterBlockEntity> importer, BlockEntityProvider<AbstractConstructorBlockEntity> constructor, BlockEntityProvider<AbstractDestructorBlockEntity> destructor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityProviders
(BlockEntityProvider<AbstractDiskDriveBlockEntity> diskDrive, BlockEntityProvider<AbstractPortableGridBlockEntity> portableGrid, BlockEntityProvider<AbstractPortableGridBlockEntity> creativePortableGrid, BlockEntityProvider<AbstractDiskInterfaceBlockEntity> diskInterface, BlockEntityProvider<AbstractCableBlockEntity> cable, BlockEntityProvider<AbstractExternalStorageBlockEntity> externalStorage, BlockEntityProvider<AbstractExporterBlockEntity> exporter, BlockEntityProvider<AbstractImporterBlockEntity> importer, BlockEntityProvider<AbstractConstructorBlockEntity> constructor, BlockEntityProvider<AbstractDestructorBlockEntity> destructor) Creates an instance of aBlockEntityProviders
record class. -
Method Summary
Modifier and TypeMethodDescriptioncable()
Returns the value of thecable
record component.Returns the value of theconstructor
record component.Returns the value of thecreativePortableGrid
record component.Returns the value of thedestructor
record component.Returns the value of thediskDrive
record component.Returns the value of thediskInterface
record component.final boolean
Indicates whether some other object is "equal to" this one.exporter()
Returns the value of theexporter
record component.Returns the value of theexternalStorage
record component.final int
hashCode()
Returns a hash code value for this object.importer()
Returns the value of theimporter
record component.Returns the value of theportableGrid
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BlockEntityProviders
public BlockEntityProviders(BlockEntityProvider<AbstractDiskDriveBlockEntity> diskDrive, BlockEntityProvider<AbstractPortableGridBlockEntity> portableGrid, BlockEntityProvider<AbstractPortableGridBlockEntity> creativePortableGrid, BlockEntityProvider<AbstractDiskInterfaceBlockEntity> diskInterface, BlockEntityProvider<AbstractCableBlockEntity> cable, BlockEntityProvider<AbstractExternalStorageBlockEntity> externalStorage, BlockEntityProvider<AbstractExporterBlockEntity> exporter, BlockEntityProvider<AbstractImporterBlockEntity> importer, BlockEntityProvider<AbstractConstructorBlockEntity> constructor, BlockEntityProvider<AbstractDestructorBlockEntity> destructor) Creates an instance of aBlockEntityProviders
record class.- Parameters:
diskDrive
- the value for thediskDrive
record componentportableGrid
- the value for theportableGrid
record componentcreativePortableGrid
- the value for thecreativePortableGrid
record componentdiskInterface
- the value for thediskInterface
record componentcable
- the value for thecable
record componentexternalStorage
- the value for theexternalStorage
record componentexporter
- the value for theexporter
record componentimporter
- the value for theimporter
record componentconstructor
- the value for theconstructor
record componentdestructor
- the value for thedestructor
record component
-
-
Method Details
-
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)
. -
diskDrive
Returns the value of thediskDrive
record component.- Returns:
- the value of the
diskDrive
record component
-
portableGrid
Returns the value of theportableGrid
record component.- Returns:
- the value of the
portableGrid
record component
-
creativePortableGrid
Returns the value of thecreativePortableGrid
record component.- Returns:
- the value of the
creativePortableGrid
record component
-
diskInterface
Returns the value of thediskInterface
record component.- Returns:
- the value of the
diskInterface
record component
-
cable
Returns the value of thecable
record component.- Returns:
- the value of the
cable
record component
-
externalStorage
Returns the value of theexternalStorage
record component.- Returns:
- the value of the
externalStorage
record component
-
exporter
Returns the value of theexporter
record component.- Returns:
- the value of the
exporter
record component
-
importer
Returns the value of theimporter
record component.- Returns:
- the value of the
importer
record component
-
constructor
Returns the value of theconstructor
record component.- Returns:
- the value of the
constructor
record component
-
destructor
Returns the value of thedestructor
record component.- Returns:
- the value of the
destructor
record component
-