Package net.minecraft.commands.execution
Record Class ChainModifiers
java.lang.Object
java.lang.Record
net.minecraft.commands.execution.ChainModifiers
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ChainModifiersprivate static final byteprivate static final byteprivate final byteThe field for theflagsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionChainModifiers(byte flags) Creates an instance of aChainModifiersrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.booleanisForked()booleanisReturn()private ChainModifierssetFlag(byte p_309560_) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
flagsprivate final byte flagsThe field for theflagsrecord component.
- 
DEFAULT
- 
FLAG_FORKEDprivate static final byte FLAG_FORKED- See Also:
 
- 
FLAG_IS_RETURNprivate static final byte FLAG_IS_RETURN- See Also:
 
 
- 
- 
Constructor Details- 
ChainModifierspublic ChainModifiers(byte flags) Creates an instance of aChainModifiersrecord class.- Parameters:
- flags- the value for the- flagsrecord component
 
 
- 
- 
Method Details- 
setFlag
- 
isForkedpublic boolean isForked()
- 
setForked
- 
isReturnpublic boolean isReturn()
- 
setReturn
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 with '=='.
- 
flagspublic byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the flagsrecord component
 
 
-