类 ServerboundUseItemPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundUseItemPacket
- 所有已实现的接口:
Packet<ServerGamePacketListener>
-
字段概要
字段修饰符和类型字段说明private final InteractionHand
private final int
static final StreamCodec
<FriendlyByteBuf, ServerboundUseItemPacket> private final float
private final float
-
构造器概要
构造器限定符构造器说明private
ServerboundUseItemPacket
(FriendlyByteBuf p_179798_) ServerboundUseItemPacket
(InteractionHand p_238011_, int p_238012_, float p_342904_, float p_343639_) -
方法概要
修饰符和类型方法说明getHand()
int
float
getXRot()
float
getYRot()
void
handle
(ServerGamePacketListener p_134716_) type()
private void
write
(FriendlyByteBuf p_134719_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
字段详细资料
-
STREAM_CODEC
-
hand
-
sequence
private final int sequence -
yRot
private final float yRot -
xRot
private final float xRot
-
-
构造器详细资料
-
ServerboundUseItemPacket
public ServerboundUseItemPacket(InteractionHand p_238011_, int p_238012_, float p_342904_, float p_343639_) -
ServerboundUseItemPacket
-
-
方法详细资料
-
write
-
type
- 指定者:
type
在接口中Packet<ServerGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ServerGamePacketListener>
-
getHand
-
getSequence
public int getSequence() -
getYRot
public float getYRot() -
getXRot
public float getXRot()
-