Record Class ChainModifiers
java.lang.Object
java.lang.Record
net.minecraft.commands.execution.ChainModifiers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChainModifiersprivate static final byteprivate static final byteprivate final byteThe field for theflagsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChainModifiers(byte flags) Creates an instance of aChainModifiersrecord class. -
Method Summary
Modifier 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 flag) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
flags
private final byte flagsThe field for theflagsrecord component. -
DEFAULT
-
FLAG_FORKED
private static final byte FLAG_FORKED- See Also:
-
FLAG_IS_RETURN
private static final byte FLAG_IS_RETURN- See Also:
-
-
Constructor Details
-
ChainModifiers
public ChainModifiers(byte flags) Creates an instance of aChainModifiersrecord class.- Parameters:
flags- the value for theflagsrecord component
-
-
Method Details
-
setFlag
-
isForked
public boolean isForked() -
setForked
-
isReturn
public boolean isReturn() -
setReturn
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-