Record Class ChainConveyorBlockEntity.ConnectedPort
java.lang.Object
java.lang.Record
com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity.ConnectedPort
- Enclosing class:
ChainConveyorBlockEntity
-
Constructor Summary
ConstructorsConstructorDescriptionConnectedPort(float chainPosition, net.minecraft.core.BlockPos connection, String filter) Creates an instance of aConnectedPortrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thechainPositionrecord component.net.minecraft.core.BlockPosReturns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectedPort
public ConnectedPort(float chainPosition, @Nullable net.minecraft.core.BlockPos connection, String filter) Creates an instance of aConnectedPortrecord class.- Parameters:
chainPosition- the value for thechainPositionrecord componentconnection- the value for theconnectionrecord componentfilter- the value for thefilterrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
chainPosition
public float chainPosition()Returns the value of thechainPositionrecord component.- Returns:
- the value of the
chainPositionrecord component
-
connection
@Nullable public net.minecraft.core.BlockPos connection()Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-