public static BlockAction Piston(CoordInt pos, Face face, bool extend) { BlockAction ba = new BlockAction(); ba.Position = pos; ba.TypeState = extend ? (byte)0 : (byte)1; ba.PitchDirection = (byte)face; return ba; }
public static BlockAction Chest(CoordInt pos, bool open) { BlockAction ba = new BlockAction(); ba.Position = pos; ba.TypeState = 1; ba.PitchDirection = open ? (byte)1 : (byte)0; return ba; }
public static BlockAction Piston(CoordInt pos, Face face, bool extend) { BlockAction ba = new BlockAction(); ba.Position = pos; ba.TypeState = extend ? (byte)0 : (byte)1; ba.PitchDirection = (byte)face; return(ba); }
public static BlockAction Chest(CoordInt pos, bool open) { BlockAction ba = new BlockAction(); ba.Position = pos; ba.TypeState = 1; ba.PitchDirection = open ? (byte)1 : (byte)0; return(ba); }
/// <param name='note'> /// 0 - 24 /// </param> public static BlockAction NoteBlock(CoordInt pos, Instrument ins, byte note) { BlockAction ba = new BlockAction(); ba.Position = pos; ba.TypeState = (byte)ins; if (note < 0 || note > 24) ba.PitchDirection = 0; else ba.PitchDirection = (byte)note; return ba; }
/// <param name='note'> /// 0 - 24 /// </param> public static BlockAction NoteBlock(CoordInt pos, Instrument ins, byte note) { BlockAction ba = new BlockAction(); ba.Position = pos; ba.TypeState = (byte)ins; if (note < 0 || note > 24) { ba.PitchDirection = 0; } else { ba.PitchDirection = (byte)note; } return(ba); }