本文整理汇总了Java中codechicken.lib.data.MCDataOutput.writeInt方法的典型用法代码示例。如果您正苦于以下问题:Java MCDataOutput.writeInt方法的具体用法?Java MCDataOutput.writeInt怎么用?Java MCDataOutput.writeInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codechicken.lib.data.MCDataOutput
的用法示例。
在下文中一共展示了MCDataOutput.writeInt方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet) {
if (hidden == null)
hidden = new boolean[6];
super.writeDesc(packet);
for (int i = 0; i < 6; i++)
packet.writeBoolean(hidden[i]);
for (ForgeDirection d : ForgeDirection.VALID_DIRECTIONS) {
Collection<IFrameSideModifier> c = getSideModifiers(d);
packet.writeInt(c.size());
for (IFrameModifier m : c)
packet.writeString(m.getType());
}
}
示例2: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet) {
super.writeDesc(packet);
packet.writeInt(facePart.getFace());
packet.writeInt(facePart.getRotation());
for (int i = 0; i < 4; i++) {
RedstoneConnection c = ((BPPartFace) getPart()).getConnection(FaceDirection.getDirection(i));
if (c != null) {
packet.writeNBTTagCompound(c.getNBTTag());
} else {
NBTTagCompound t = new NBTTagCompound();
t.setBoolean("___error", true);
packet.writeNBTTagCompound(t);
}
}
}
示例3: 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());
}
}
示例4: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet) {
super.writeDesc(packet);
packet.writeInt(facePart.getFace());
packet.writeInt(facePart.getRotation());
}
示例5: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
public void writeDesc(final MCDataOutput packet) {
packet.writeInt(this.material);
}
示例6: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(final MCDataOutput packet) {
packet.writeInt(this.material);
}
示例7: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput data)
{
data.writeInt(side.ordinal());
data.writeInt(colour.getMetaValue());
}
示例8: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet) {
super.writeDesc(packet);
packet.writeInt(idx);
}
示例9: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Optional.Method(modid = ModIds.FMP)
public void writeDesc(MCDataOutput data){
data.writeInt(dir.ordinal());
}