Package net.minecraft.commands.execution
Record Class ChainModifiers
java.lang.Object
java.lang.Record
net.minecraft.commands.execution.ChainModifiers
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ChainModifiers
private static final byte
private static final byte
private final byte
The field for theflags
record component. -
Constructor Summary
ConstructorDescriptionChainModifiers
(byte flags) Creates an instance of aChainModifiers
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.byte
flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.boolean
isForked()
boolean
isReturn()
private ChainModifiers
setFlag
(byte p_309560_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
flags
private final byte flagsThe field for theflags
record 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 aChainModifiers
record class.- Parameters:
flags
- the value for theflags
record 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 theflags
record component.- Returns:
- the value of the
flags
record component
-