Record Class IProvidingInventoryListener.TileEntityAndFace
java.lang.Object
java.lang.Record
me.desht.pneumaticcraft.common.semiblock.IProvidingInventoryListener.TileEntityAndFace
- Enclosing interface:
- IProvidingInventoryListener
public static record IProvidingInventoryListener.TileEntityAndFace(net.minecraft.world.level.block.entity.BlockEntity te, net.minecraft.core.Direction face)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTileEntityAndFace(net.minecraft.world.level.block.entity.BlockEntity te, net.minecraft.core.Direction face) Creates an instance of aTileEntityAndFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.net.minecraft.core.Directionface()Returns the value of thefacerecord component.inthashCode()Returns a hash code value for this object.net.minecraft.world.level.block.entity.BlockEntityte()Returns the value of theterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TileEntityAndFace
public TileEntityAndFace(net.minecraft.world.level.block.entity.BlockEntity te, net.minecraft.core.Direction face) Creates an instance of aTileEntityAndFacerecord class.- Parameters:
te- the value for theterecord componentface- the value for thefacerecord 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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
te
public net.minecraft.world.level.block.entity.BlockEntity te()Returns the value of theterecord component.- Returns:
- the value of the
terecord component
-
face
public net.minecraft.core.Direction face()Returns the value of thefacerecord component.- Returns:
- the value of the
facerecord component
-