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 -
Method Summary
Modifier and TypeMethodDescriptionasIota()booleanIndicates 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 inthashCode()Returns a hash code value for this object.net.minecraft.nbt.CompoundTagnet.minecraft.core.BlockPossink()Returns the value of thesinkrecord component.net.minecraft.core.DirectionsinkDir()Returns the value of thesinkDirrecord component.net.minecraft.core.BlockPossource()Returns the value of thesourcerecord component.net.minecraft.core.DirectionReturns the value of thesourceDirrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aConduitrecord class.- Parameters:
source- the value for thesourcerecord componentsourceDir- the value for thesourceDirrecord componentsink- the value for thesinkrecord componentsinkDir- the value for thesinkDirrecord component
-
-
Method Details
-
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). -
serialise
public net.minecraft.nbt.CompoundTag serialise() -
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
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. -
source
public net.minecraft.core.BlockPos source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
sourceDir
public net.minecraft.core.Direction sourceDir()Returns the value of thesourceDirrecord component.- Returns:
- the value of the
sourceDirrecord component
-
sink
public net.minecraft.core.BlockPos sink()Returns the value of thesinkrecord component.- Returns:
- the value of the
sinkrecord component
-
sinkDir
public net.minecraft.core.Direction sinkDir()Returns the value of thesinkDirrecord component.- Returns:
- the value of the
sinkDirrecord component
-