Contents
Record Class RailPathRefreshResolver.RefreshDecision
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.npc.movement.controllers.RailPathRefreshResolver.RefreshDecision
- Enclosing class:
RailPathRefreshResolver
public static record RailPathRefreshResolver.RefreshDecision(boolean blocked, boolean unreachable, boolean replaced, boolean committedAnchor, @Nonnull RailPath.SegmentCommitType commitType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshDecision(boolean blocked, boolean unreachable, boolean replaced, boolean committedAnchor, RailPath.SegmentCommitType commitType) Creates an instance of aRefreshDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanblocked()Returns the value of theblockedrecord component.booleanReturns the value of thecommittedAnchorrecord component.Returns the value of thecommitTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanreplaced()Returns the value of thereplacedrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunreachablerecord component.
-
Constructor Details
-
RefreshDecision
public RefreshDecision(boolean blocked, boolean unreachable, boolean replaced, boolean committedAnchor, @Nonnull RailPath.SegmentCommitType commitType) Creates an instance of aRefreshDecisionrecord class.- Parameters:
blocked- the value for theblockedrecord componentunreachable- the value for theunreachablerecord componentreplaced- the value for thereplacedrecord componentcommittedAnchor- the value for thecommittedAnchorrecord componentcommitType- the value for thecommitTyperecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
blocked
public boolean blocked()Returns the value of theblockedrecord component.- Returns:
- the value of the
blockedrecord component
-
unreachable
public boolean unreachable()Returns the value of theunreachablerecord component.- Returns:
- the value of the
unreachablerecord component
-
replaced
public boolean replaced()Returns the value of thereplacedrecord component.- Returns:
- the value of the
replacedrecord component
-
committedAnchor
public boolean committedAnchor()Returns the value of thecommittedAnchorrecord component.- Returns:
- the value of the
committedAnchorrecord component
-
commitType
Returns the value of thecommitTyperecord component.- Returns:
- the value of the
commitTyperecord component
-