Record Class ClientboundCommandsPacket.Entry
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundCommandsPacket.Entry
- Enclosing class:
ClientboundCommandsPacket
static record ClientboundCommandsPacket.Entry(@Nullable ClientboundCommandsPacket.NodeStub stub, int flags, int redirect, int[] children)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]
The field for thechildren
record component.private final int
The field for theflags
record component.private final int
The field for theredirect
record component.private final ClientboundCommandsPacket.NodeStub
The field for thestub
record component. -
Constructor Summary
ConstructorsConstructorDescriptionEntry
(ClientboundCommandsPacket.NodeStub stub, int flags, int redirect, int[] children) Creates an instance of aEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBuild
(it.unimi.dsi.fastutil.ints.IntSet p_237673_) boolean
canResolve
(it.unimi.dsi.fastutil.ints.IntSet p_237677_) int[]
children()
Returns the value of thechildren
record component.final boolean
Indicates whether some other object is "equal to" this one.int
flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.int
redirect()
Returns the value of theredirect
record component.stub()
Returns the value of thestub
record component.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf pBuffer)
-
Field Details
-
stub
The field for thestub
record component. -
flags
private final int flagsThe field for theflags
record component. -
redirect
private final int redirectThe field for theredirect
record component. -
children
private final int[] childrenThe field for thechildren
record component.
-
-
Constructor Details
-
Entry
Entry(@Nullable ClientboundCommandsPacket.NodeStub stub, int flags, int redirect, int[] children) Creates an instance of aEntry
record class.- Parameters:
stub
- the value for thestub
record componentflags
- the value for theflags
record componentredirect
- the value for theredirect
record componentchildren
- the value for thechildren
record component
-
-
Method Details
-
write
-
canBuild
public boolean canBuild(it.unimi.dsi.fastutil.ints.IntSet p_237673_) -
canResolve
public boolean canResolve(it.unimi.dsi.fastutil.ints.IntSet p_237677_) -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
stub
Returns the value of thestub
record component.- Returns:
- the value of the
stub
record component
-
flags
public int flags()Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-
redirect
public int redirect()Returns the value of theredirect
record component.- Returns:
- the value of the
redirect
record component
-
children
public int[] children()Returns the value of thechildren
record component.- Returns:
- the value of the
children
record component
-