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 aBlockEntityProvidersrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncable()Returns the value of thecablerecord component.Returns the value of theconstructorrecord component.Returns the value of thecreativePortableGridrecord component.Returns the value of thedestructorrecord component.Returns the value of thediskDriverecord component.Returns the value of thediskInterfacerecord component.final booleanIndicates whether some other object is "equal to" this one.exporter()Returns the value of theexporterrecord component.Returns the value of theexternalStoragerecord component.final inthashCode()Returns a hash code value for this object.importer()Returns the value of theimporterrecord component.Returns the value of theportableGridrecord component.final StringtoString()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 aBlockEntityProvidersrecord class.- Parameters:
diskDrive- the value for thediskDriverecord componentportableGrid- the value for theportableGridrecord componentcreativePortableGrid- the value for thecreativePortableGridrecord componentdiskInterface- the value for thediskInterfacerecord componentcable- the value for thecablerecord componentexternalStorage- the value for theexternalStoragerecord componentexporter- the value for theexporterrecord componentimporter- the value for theimporterrecord componentconstructor- the value for theconstructorrecord componentdestructor- the value for thedestructorrecord 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 thediskDriverecord component.- Returns:
- the value of the
diskDriverecord component
-
portableGrid
Returns the value of theportableGridrecord component.- Returns:
- the value of the
portableGridrecord component
-
creativePortableGrid
Returns the value of thecreativePortableGridrecord component.- Returns:
- the value of the
creativePortableGridrecord component
-
diskInterface
Returns the value of thediskInterfacerecord component.- Returns:
- the value of the
diskInterfacerecord component
-
cable
Returns the value of thecablerecord component.- Returns:
- the value of the
cablerecord component
-
externalStorage
Returns the value of theexternalStoragerecord component.- Returns:
- the value of the
externalStoragerecord component
-
exporter
Returns the value of theexporterrecord component.- Returns:
- the value of the
exporterrecord component
-
importer
Returns the value of theimporterrecord component.- Returns:
- the value of the
importerrecord component
-
constructor
Returns the value of theconstructorrecord component.- Returns:
- the value of the
constructorrecord component
-
destructor
Returns the value of thedestructorrecord component.- Returns:
- the value of the
destructorrecord component
-