Record Class StorageViewIota.GenericStorageView

java.lang.Object
java.lang.Record
dev.kineticcat.hexportation.fabric.api.casting.iota.StorageViewIota.GenericStorageView
Enclosing class:
StorageViewIota

public static record StorageViewIota.GenericStorageView(dev.kineticcat.hexportation.fabric.api.Storage.Modes mode, Long amount, Long capacity, String InternalName, net.minecraft.network.chat.Component DisplayName) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    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 a GenericStorageView record 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 Type
    Method
    Description
    Returns the value of the amount record component.
    Returns the value of the capacity record component.
    net.minecraft.network.chat.Component
    Returns the value of the DisplayName record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the InternalName record component.
    dev.kineticcat.hexportation.fabric.api.Storage.Modes
    Returns the value of the mode record component.
    net.minecraft.nbt.CompoundTag
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a GenericStorageView record class.
      Parameters:
      mode - the value for the mode record component
      amount - the value for the amount record component
      capacity - the value for the capacity record component
      InternalName - the value for the InternalName record component
      DisplayName - the value for the DisplayName record component
  • Method Details

    • serialise

      public net.minecraft.nbt.CompoundTag serialise()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • mode

      public dev.kineticcat.hexportation.fabric.api.Storage.Modes mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • amount

      public Long amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component
    • capacity

      public Long capacity()
      Returns the value of the capacity record component.
      Returns:
      the value of the capacity record component
    • InternalName

      public String InternalName()
      Returns the value of the InternalName record component.
      Returns:
      the value of the InternalName record component
    • DisplayName

      public net.minecraft.network.chat.Component DisplayName()
      Returns the value of the DisplayName record component.
      Returns:
      the value of the DisplayName record component