本文整理汇总了Java中net.minecraft.network.PacketBuffer.readUuid方法的典型用法代码示例。如果您正苦于以下问题:Java PacketBuffer.readUuid方法的具体用法?Java PacketBuffer.readUuid怎么用?Java PacketBuffer.readUuid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.network.PacketBuffer
的用法示例。
在下文中一共展示了PacketBuffer.readUuid方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityId = buf.readVarIntFromBuffer();
this.uniqueId = buf.readUuid();
this.type = buf.readByte();
this.x = buf.readDouble();
this.y = buf.readDouble();
this.z = buf.readDouble();
this.pitch = buf.readByte();
this.yaw = buf.readByte();
this.data = buf.readInt();
this.speedX = buf.readShort();
this.speedY = buf.readShort();
this.speedZ = buf.readShort();
}
示例2: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityId = buf.readVarIntFromBuffer();
int i = buf.readInt();
for (int j = 0; j < i; ++j)
{
String s = buf.readStringFromBuffer(64);
double d0 = buf.readDouble();
List<AttributeModifier> list = Lists.<AttributeModifier>newArrayList();
int k = buf.readVarIntFromBuffer();
for (int l = 0; l < k; ++l)
{
UUID uuid = buf.readUuid();
list.add(new AttributeModifier(uuid, "Unknown synced attribute modifier", buf.readDouble(), buf.readByte()));
}
this.field_149444_b.add(new S20PacketEntityProperties.Snapshot(s, d0, list));
}
}
示例3: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityId = buf.readVarIntFromBuffer();
this.uniqueId = buf.readUuid();
this.type = buf.readByte() & 255;
this.x = buf.readDouble();
this.y = buf.readDouble();
this.z = buf.readDouble();
this.yaw = buf.readByte();
this.pitch = buf.readByte();
this.headPitch = buf.readByte();
this.velocityX = buf.readShort();
this.velocityY = buf.readShort();
this.velocityZ = buf.readShort();
this.dataManagerEntries = EntityDataManager.readEntries(buf);
}
示例4: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityId = buf.readVarIntFromBuffer();
int i = buf.readInt();
for (int j = 0; j < i; ++j)
{
String s = buf.readStringFromBuffer(64);
double d0 = buf.readDouble();
List<AttributeModifier> list = Lists.<AttributeModifier>newArrayList();
int k = buf.readVarIntFromBuffer();
for (int l = 0; l < k; ++l)
{
UUID uuid = buf.readUuid();
list.add(new AttributeModifier(uuid, "Unknown synced attribute modifier", buf.readDouble(), buf.readByte()));
}
this.snapshots.add(new SPacketEntityProperties.Snapshot(s, d0, list));
}
}
示例5: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityId = buf.readVarIntFromBuffer();
this.uniqueId = buf.readUuid();
this.type = buf.readVarIntFromBuffer();
this.x = buf.readDouble();
this.y = buf.readDouble();
this.z = buf.readDouble();
this.yaw = buf.readByte();
this.pitch = buf.readByte();
this.headPitch = buf.readByte();
this.velocityX = buf.readShort();
this.velocityY = buf.readShort();
this.velocityZ = buf.readShort();
this.dataManagerEntries = EntityDataManager.readEntries(buf);
}
示例6: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityId = buf.readVarIntFromBuffer();
this.playerId = buf.readUuid();
this.x = buf.readInt();
this.y = buf.readInt();
this.z = buf.readInt();
this.yaw = buf.readByte();
this.pitch = buf.readByte();
this.currentItem = buf.readShort();
this.field_148958_j = DataWatcher.readWatchedListFromPacketBuffer(buf);
}
示例7: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityId = buf.readVarIntFromBuffer();
this.uniqueId = buf.readUuid();
this.x = buf.readDouble();
this.y = buf.readDouble();
this.z = buf.readDouble();
this.yaw = buf.readByte();
this.pitch = buf.readByte();
this.dataManagerEntries = EntityDataManager.readEntries(buf);
}
示例8: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.entityID = buf.readVarIntFromBuffer();
this.uniqueId = buf.readUuid();
this.title = buf.readStringFromBuffer(EntityPainting.EnumArt.MAX_NAME_LENGTH);
this.position = buf.readBlockPos();
this.facing = EnumFacing.getHorizontal(buf.readUnsignedByte());
}
示例9: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.uniqueId = buf.readUuid();
this.operation = (SPacketUpdateBossInfo.Operation)buf.readEnumValue(SPacketUpdateBossInfo.Operation.class);
switch (this.operation)
{
case ADD:
this.name = buf.readTextComponent();
this.percent = buf.readFloat();
this.color = (BossInfo.Color)buf.readEnumValue(BossInfo.Color.class);
this.overlay = (BossInfo.Overlay)buf.readEnumValue(BossInfo.Overlay.class);
this.setFlags(buf.readUnsignedByte());
case REMOVE:
default:
break;
case UPDATE_PCT:
this.percent = buf.readFloat();
break;
case UPDATE_NAME:
this.name = buf.readTextComponent();
break;
case UPDATE_STYLE:
this.color = (BossInfo.Color)buf.readEnumValue(BossInfo.Color.class);
this.overlay = (BossInfo.Overlay)buf.readEnumValue(BossInfo.Overlay.class);
break;
case UPDATE_PROPERTIES:
this.setFlags(buf.readUnsignedByte());
}
}
示例10: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.uniqueId = buf.readUuid();
this.operation = (SPacketUpdateBossInfo.Operation)buf.readEnumValue(SPacketUpdateBossInfo.Operation.class);
switch (this.operation)
{
case ADD:
this.name = buf.readTextComponent();
this.percent = buf.readFloat();
this.color = (BossInfo.Color)buf.readEnumValue(BossInfo.Color.class);
this.overlay = (BossInfo.Overlay)buf.readEnumValue(BossInfo.Overlay.class);
this.setFlags(buf.readUnsignedByte());
case REMOVE:
default:
break;
case UPDATE_PCT:
this.percent = buf.readFloat();
break;
case UPDATE_NAME:
this.name = buf.readTextComponent();
break;
case UPDATE_STYLE:
this.color = (BossInfo.Color)buf.readEnumValue(BossInfo.Color.class);
this.overlay = (BossInfo.Overlay)buf.readEnumValue(BossInfo.Overlay.class);
break;
case UPDATE_PROPERTIES:
this.setFlags(buf.readUnsignedByte());
}
}
示例11: readPacketData
import net.minecraft.network.PacketBuffer; //导入方法依赖的package包/类
/**
* Reads the raw packet data from the data stream.
*/
public void readPacketData(PacketBuffer buf) throws IOException
{
this.id = buf.readUuid();
}