Record Class PartOffsetsClientNotifier.Entry
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.network.PartOffsetsClientNotifier.Entry
- Enclosing class:
PartOffsetsClientNotifier
public static record PartOffsetsClientNotifier.Entry(net.minecraft.core.BlockPos source, net.minecraft.core.Direction sourceSide, net.minecraft.core.Vec3i targetOffset, net.minecraft.core.Direction targetSide)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(net.minecraft.core.BlockPos source, net.minecraft.core.Direction sourceSide, net.minecraft.core.Vec3i targetOffset, net.minecraft.core.Direction targetSide) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPossource()Returns the value of thesourcerecord component.net.minecraft.core.DirectionReturns the value of thesourceSiderecord component.net.minecraft.core.Vec3iReturns the value of thetargetOffsetrecord component.net.minecraft.core.DirectionReturns the value of thetargetSiderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(net.minecraft.core.BlockPos source, net.minecraft.core.Direction sourceSide, net.minecraft.core.Vec3i targetOffset, net.minecraft.core.Direction targetSide) Creates an instance of aEntryrecord class.- Parameters:
source- the value for thesourcerecord componentsourceSide- the value for thesourceSiderecord componenttargetOffset- the value for thetargetOffsetrecord componenttargetSide- the value for thetargetSiderecord component
-
-
Method Details
-
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). -
source
public net.minecraft.core.BlockPos source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
sourceSide
public net.minecraft.core.Direction sourceSide()Returns the value of thesourceSiderecord component.- Returns:
- the value of the
sourceSiderecord component
-
targetOffset
public net.minecraft.core.Vec3i targetOffset()Returns the value of thetargetOffsetrecord component.- Returns:
- the value of the
targetOffsetrecord component
-
targetSide
public net.minecraft.core.Direction targetSide()Returns the value of thetargetSiderecord component.- Returns:
- the value of the
targetSiderecord component
-