Record Class StorageViewIota.GenericStorageView
java.lang.Object
java.lang.Record
dev.kineticcat.hexportation.fabric.api.casting.iota.StorageViewIota.GenericStorageView
- Enclosing class:
- StorageViewIota
-
Constructor Summary
ConstructorsConstructorDescriptionGenericStorageView(dev.kineticcat.hexportation.fabric.api.Storage.Modes mode, Long amount, Long capacity, String InternalName, net.minecraft.network.chat.Component DisplayName) Creates an instance of aGenericStorageViewrecord class.GenericStorageView(net.fabricmc.fabric.api.transfer.v1.storage.StorageView<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> view, Double kys) GenericStorageView(net.fabricmc.fabric.api.transfer.v1.storage.StorageView<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant> view, Long kys) GenericStorageView(net.minecraft.nbt.CompoundTag ctag) GenericStorageView(team.reborn.energy.api.EnergyStorage view) -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.capacity()Returns the value of thecapacityrecord component.net.minecraft.network.chat.ComponentReturns the value of theDisplayNamerecord 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 theInternalNamerecord component.dev.kineticcat.hexportation.fabric.api.Storage.Modesmode()Returns the value of themoderecord component.net.minecraft.nbt.CompoundTagfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GenericStorageView
public GenericStorageView() -
GenericStorageView
public GenericStorageView(net.fabricmc.fabric.api.transfer.v1.storage.StorageView<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant> view, Long kys) -
GenericStorageView
public GenericStorageView(net.fabricmc.fabric.api.transfer.v1.storage.StorageView<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> view, Double kys) -
GenericStorageView
public GenericStorageView(team.reborn.energy.api.EnergyStorage view) -
GenericStorageView
public GenericStorageView(net.minecraft.nbt.CompoundTag ctag) -
GenericStorageView
public GenericStorageView(dev.kineticcat.hexportation.fabric.api.Storage.Modes mode, Long amount, Long capacity, String InternalName, net.minecraft.network.chat.Component DisplayName) Creates an instance of aGenericStorageViewrecord class.- Parameters:
mode- the value for themoderecord componentamount- the value for theamountrecord componentcapacity- the value for thecapacityrecord componentInternalName- the value for theInternalNamerecord componentDisplayName- the value for theDisplayNamerecord component
-
-
Method Details
-
serialise
public net.minecraft.nbt.CompoundTag serialise() -
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). -
mode
public dev.kineticcat.hexportation.fabric.api.Storage.Modes mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
capacity
Returns the value of thecapacityrecord component.- Returns:
- the value of the
capacityrecord component
-
InternalName
Returns the value of theInternalNamerecord component.- Returns:
- the value of the
InternalNamerecord component
-
DisplayName
public net.minecraft.network.chat.Component DisplayName()Returns the value of theDisplayNamerecord component.- Returns:
- the value of the
DisplayNamerecord component
-