Record Class ConduitIota.Conduit

java.lang.Object
java.lang.Record
dev.kineticcat.hexportation.fabric.api.casting.iota.ConduitIota.Conduit
Enclosing class:
ConduitIota

public static record ConduitIota.Conduit(net.minecraft.core.BlockPos source, net.minecraft.core.Direction sourceDir, net.minecraft.core.BlockPos sink, net.minecraft.core.Direction sinkDir) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Conduit(net.minecraft.core.BlockPos source, net.minecraft.core.Direction sourceDir, net.minecraft.core.BlockPos sink, net.minecraft.core.Direction sinkDir)
    Creates an instance of a Conduit record class.
    Conduit(net.minecraft.nbt.CompoundTag ctag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Indicates whether some other object is "equal to" this one.
    kotlin.Pair<team.reborn.energy.api.EnergyStorage,team.reborn.energy.api.EnergyStorage>
    getEnergyStoragesOrNull(net.minecraft.server.level.ServerLevel sLevel)
     
    kotlin.Pair<net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant>,net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant>>
    getFluidStoragesOrNull(net.minecraft.server.level.ServerLevel sLevel)
     
    kotlin.Pair<net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>,net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>>
    getItemStoragesOrNull(net.minecraft.server.level.ServerLevel sLevel)
     
    final int
    Returns a hash code value for this object.
    net.minecraft.nbt.CompoundTag
     
    net.minecraft.core.BlockPos
    Returns the value of the sink record component.
    net.minecraft.core.Direction
    Returns the value of the sinkDir record component.
    net.minecraft.core.BlockPos
    Returns the value of the source record component.
    net.minecraft.core.Direction
    Returns the value of the sourceDir record component.
    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

    • Conduit

      public Conduit(net.minecraft.nbt.CompoundTag ctag)
    • Conduit

      public Conduit(net.minecraft.core.BlockPos source, net.minecraft.core.Direction sourceDir, net.minecraft.core.BlockPos sink, net.minecraft.core.Direction sinkDir)
      Creates an instance of a Conduit record class.
      Parameters:
      source - the value for the source record component
      sourceDir - the value for the sourceDir record component
      sink - the value for the sink record component
      sinkDir - the value for the sinkDir record component
  • Method Details

    • equals

      public 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.
    • serialise

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

      public ConduitIota asIota()
    • getItemStoragesOrNull

      public kotlin.Pair<net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>,net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.item.ItemVariant>> getItemStoragesOrNull(net.minecraft.server.level.ServerLevel sLevel)
    • getFluidStoragesOrNull

      public kotlin.Pair<net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant>,net.fabricmc.fabric.api.transfer.v1.storage.Storage<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant>> getFluidStoragesOrNull(net.minecraft.server.level.ServerLevel sLevel)
    • getEnergyStoragesOrNull

      public kotlin.Pair<team.reborn.energy.api.EnergyStorage,team.reborn.energy.api.EnergyStorage> getEnergyStoragesOrNull(net.minecraft.server.level.ServerLevel sLevel)
    • 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
    • source

      public net.minecraft.core.BlockPos source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • sourceDir

      public net.minecraft.core.Direction sourceDir()
      Returns the value of the sourceDir record component.
      Returns:
      the value of the sourceDir record component
    • sink

      public net.minecraft.core.BlockPos sink()
      Returns the value of the sink record component.
      Returns:
      the value of the sink record component
    • sinkDir

      public net.minecraft.core.Direction sinkDir()
      Returns the value of the sinkDir record component.
      Returns:
      the value of the sinkDir record component