本文整理汇总了Java中codechicken.lib.data.MCDataOutput.writeBoolean方法的典型用法代码示例。如果您正苦于以下问题:Java MCDataOutput.writeBoolean方法的具体用法?Java MCDataOutput.writeBoolean怎么用?Java MCDataOutput.writeBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codechicken.lib.data.MCDataOutput
的用法示例。
在下文中一共展示了MCDataOutput.writeBoolean方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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.writeBoolean(active);
packet.writeBoolean(owner != null);
if (owner != null) {
packet.writeString(owner);
}
}
示例4: write
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void write(MCDataOutput packet) {
super.write(packet);
packet.writeBoolean(regulate);
packet.writeBoolean(signal);
packet.writeBoolean(a_powering);
}
示例5: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet)
{
packet.writeBoolean(false);
super.writeDesc(packet);
}
示例6: writeDesc
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
@Override
public void writeDesc(MCDataOutput packet){
for(int i = 0; i < 6; i++) {
packet.writeBoolean(tube.sidesConnected[i]);
}
NBTTagCompound tag = new NBTTagCompound();
tube.writeToNBT(tag);
packet.writeNBTTagCompound(tag);
}
示例7: write
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
public void write(MCDataOutput packet) {
packet.writeBoolean(a_eject);
packet.writeBoolean(redstone);
packet.writeBoolean(fast);
}
示例8: sendTemp
import codechicken.lib.data.MCDataOutput; //导入方法依赖的package包/类
public void sendTemp()
{
MCDataOutput packet = getWriteStream();
packet.writeBoolean(true);
packet.writeDouble(getTransmitter().temperature);
}