本文整理汇总了Java中codechicken.lib.data.MCDataOutput.writeByte方法的典型用法代码示例。如果您正苦于以下问题:Java MCDataOutput.writeByte方法的具体用法?Java MCDataOutput.writeByte怎么用?Java MCDataOutput.writeByte使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codechicken.lib.data.MCDataOutput
的用法示例。
在下文中一共展示了MCDataOutput.writeByte方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToPacket
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeToPacket(MCDataOutput packet) {
int attachmask = 0;
for (int i = 0; i < 6; i++) {
if (attachments[i] != null) {
attachmask |= 1 << i;
}
}
packet.writeByte(attachmask);
for (Attachment a : attachments) {
if (a != null) {
a.write(packet);
}
}
}
示例2: writeToPacket
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeToPacket(MCDataOutput packet) {
super.writeToPacket(packet);
packet.writeByte(rotation);
packet.writeFluidStack(liquid_state.s_liquid);
packet.writeBoolean(pressure_state.a_pressure);
}
示例3: writeToPacket
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeToPacket(MCDataOutput packet) {
packet.writeByte(rotation);
for (ItemStack item : items) {
packet.writeItemStack(item);
}
}
示例4: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet)
{
packet.writeByte(currentTransmitterConnections);
packet.writeByte(currentAcceptorConnections);
for(int i = 0; i < 6; i++)
{
packet.writeInt(connectionTypes[i].ordinal());
}
}
示例5: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet) {
packet.writeByte(state);
}
示例6: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
public void writeDesc(final MCDataOutput packet) {
packet.writeByte((int)this.meta);
packet.writeByte(this.node.pipe_type);
}
示例7: writeToPacket
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeToPacket(MCDataOutput packet) {
super.writeToPacket(packet);
packet.writeByte(rotation);
}
示例8: writeToPacket
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeToPacket(MCDataOutput packet) {
super.writeToPacket(packet);
packet.writeByte(shape.ordinal());
packet.writeByte(radius);
}
示例9: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet) {
packet.writeByte(meta);
}
示例10: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet) {
packet.writeByte(side);
}