Package net.minecraft.commands.execution
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 p_312898_) 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
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 with '=='. -
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-