记录类 ClientboundCommandsPacket.Entry
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundCommandsPacket.Entry
static record ClientboundCommandsPacket.Entry(@Nullable ClientboundCommandsPacket.NodeStub stub, int flags, int redirect, int[] children)
extends Record
-
字段概要
字段修饰符和类型字段说明private final int[]
children
记录组件的字段。private final int
flags
记录组件的字段。private final int
redirect
记录组件的字段。private final ClientboundCommandsPacket.NodeStub
stub
记录组件的字段。 -
构造器概要
构造器构造器说明Entry
(ClientboundCommandsPacket.NodeStub stub, int flags, int redirect, int[] children) 创建Entry
记录类的实例。 -
方法概要
修饰符和类型方法说明boolean
canBuild
(it.unimi.dsi.fastutil.ints.IntSet p_237673_) boolean
canResolve
(it.unimi.dsi.fastutil.ints.IntSet p_237677_) int[]
children()
返回children
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。int
flags()
返回flags
记录组件的值。final int
hashCode()
返回此对象的哈希代码值。int
redirect()
返回redirect
记录组件的值。stub()
返回stub
记录组件的值。final String
toString()
返回此记录类的字符串表示形式。void
write
(FriendlyByteBuf p_237675_)
-
字段详细资料
-
stub
stub
记录组件的字段。 -
flags
private final int flagsflags
记录组件的字段。 -
redirect
private final int redirectredirect
记录组件的字段。 -
children
private final int[] childrenchildren
记录组件的字段。
-
-
构造器详细资料
-
Entry
Entry(@Nullable ClientboundCommandsPacket.NodeStub stub, int flags, int redirect, int[] children) 创建Entry
记录类的实例。- 参数:
stub
-stub
记录组件的值flags
-flags
记录组件的值redirect
-redirect
记录组件的值children
-children
记录组件的值
-
-
方法详细资料
-
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
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
stub
返回stub
记录组件的值。- 返回:
stub
记录组件的值
-
flags
public int flags()返回flags
记录组件的值。- 返回:
flags
记录组件的值
-
redirect
public int redirect()返回redirect
记录组件的值。- 返回:
redirect
记录组件的值
-
children
public int[] children()返回children
记录组件的值。- 返回:
children
记录组件的值
-